-----
- add some swapspace
-----
1. check existing swap: swapon --show
2. create swap file: use fallocate -l 5G /swapfile5G
3. set permission: chmod 600 /swapfile5G
4. format: mkswap /swapfile5G
5. enable: swapon /swapfile5G
6. be persistent after reboot, add entry to /etc/fstab: /swapfile5G none swap sw 0 0
7. verfiy: cat /proc/swaps or free -h or swapon --show

computer2know :: thank you for your visit :: have a nice day :: © 2025