{{tag>linux debian swap setup disable enable configure partition fstab}} =====SWAP Files===== As I have a computer with enough memory I see no need or value in a SWAP partition. In fact as I am using a SSD for the system drive a SWAP is a concern to the reliability of his drive. The following is a list of method to check and disable SWAP function. *The command ''sudo swapoff -a"''turns of an existing SWAP partition. (''sudo swapon -a'' turns it back on) *To prevent a SWAP partition being mounted at boot comment out the swap partition in /etc/fstab, ''sudo vim /etc/fstab''. (Another open is to instead use the swapoff -a command in a boot cron job. This allows the swapon -a option to be later used.) *The command ''free -hw'' shows the current memory status. *Some links: *[[http://askubuntu.com/questions/214805/how-do-i-disable-swap|How do I disable swap?]] This article also refers to another that explains why turning of SWAP, even with a lot of RAM, may not be best, however this was written at a time SSD were not common and system RAM availability were in general significantly lower. *[[https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04|How To Add Swap Space on Ubuntu 16.04]]. It is interesting that this article also warns against use of SWAP partitions with SSD storage. This article also mentions the swappiness and vfs_cache_pressure setting. See: *[[https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04|How To Add Swap Space on Ubuntu 16.04]] section on cache pressure on how to adjust this parameter. *[[https://www.howtogeek.com/449691/what-is-swapiness-on-linux-and-how-to-change-it/|What Is Swappiness on Linux? (and How to Change It)]] *[[https://ahmedzbyr.gitlab.io/hadoop/linux/swapiness-set/|How To Configure Swappiness]] ---- <- home_server:home_server_setup:other_services:aptcache|Prev ^ home_server:home_server_setup:other_services:index|Start page ^ home_server:home_server_setup:other_services:webmin|Next ->