faster linux server
December 27, 2019
9:58 AM
Reduce Swappiness
Most laptops have enough RAM installed that the swap space on the hard disk shouldn’t really be used. Yet the default setting for swappiness in Ubuntu is 60. By lowering it to 10 we can reduce the number of read/writes the the hard disk. This is especially handy for netbooks with solid state drives in them. To reduce the swappiness, follow these steps:
sudo sysctl -w vm.swappiness=10
Add the following line to [file]
vm.swappiness=10