In a vain attempt to improve the performance of my low-end VM, I've been trying to reduce the amount of memory swapping and thus disc I/O activity.
CentOS release 5.8 (Final) 32-bit
Yet..
Yes, setting the same thing in /etc/sysctl.conf and rebooting does absolutely nothing too. Has anyone else noticed that this directive is being ignored?
To really illustrate that something is amiss..
EJ
CentOS release 5.8 (Final) 32-bit
Code:
[email protected] [~]# sysctl vm.swappiness vm.swappiness = 0
Code:
[email protected] [~]# free -m total used free shared buffers cached Mem: 512 184 327 0 0 14 -/+ buffers/cache: 168 343 Swap: 1023 147 876
To really illustrate that something is amiss..
Code:
[email protected] [~]# swapoff -a swapoff: /dev/mapper/VolGroup00-LogVol01: Cannot allocate memory [email protected] [~]# swapon -s Filename Type Size Used Priority /dev/mapper/VolGroup00-LogVol01 partition 1048568 157000 -1 [email protected] [~]# sync; echo 3 > /proc/sys/vm/drop_caches [email protected] [~]# free -m total used free shared buffers cached Mem: 512 141 370 0 0 7 -/+ buffers/cache: 133 378 Swap: 1023 195 828
Comment