reduce_swappiness
This is an old revision of the document!
Reduce swappiness
If you have enough RAM, then you can reduce swappiness and thus avoid writes to swap.
- Check current setting:
cat /proc/sys/vm/swappiness
- Change setting, edit /etc/sysctl.d/swappiness.conf.
mkdir -p /etc/sysctl.d vi /etc/sysctl.d/swappiness.conf
vm.swappiness=1 vm.vfs_cache_pressure=50
- Then activate the change.
sysctl -p /etc/sysctl.d/swappiness.conf
reduce_swappiness.1400746488.txt.gz · Last modified: 2014/05/22 08:14 by admin