Swap Partition in Linux
URL :- https://www.tecmint.com/disable-swap-partition/
Swapping or swap space represents a physical memory page that lives on top of a disk partition or a special disk file used for extending the RAM memory of a system when the physical memory fills up.
Some suggest that the swap space should be set as twice the amount of machine RAM. However, on systems with more than 4 GB of RAM, swap space should be set between 2 or 4 GB.
In case your server has sufficient RAM memory or does not require the use of swap space or the swapping greatly decreases your system performance, you should consider disabling the swap area.
How to Check Swap Space in Linux
How to Check Swap Partition in Linux
How to Disable Swap in Linux
How to Disable Swap Permanently in Linux
In order to permanently disable swap space in Linux, open /etc/fstab file, search for the swap line and comment on the entire line by adding a # (hashtag) sign in front of the line, as shown in the below screenshot.
Afterward, reboot the system in order to apply the new swap setting or issue mount -a command in some cases might do the trick.
After the system reboot, issuing the commands presented at the beginning of this tutorial should reflect that the swap area has been completely and permanently disabled in your system.
Comments
Post a Comment