swappiness is set to 0 and I can't change it.
I have tried changing the swappiness setting in /etc/sysctl.conf
and /etc/sysfs.conf
- both are ignored after reboot (Ubuntu 12.04):
$ sudo gedit /etc/sysctl.conf
vm.swappiness=60
$ sudo gedit /etc/sysfs.conf
vm.swappiness=60
/etc/sysctl.d/60-my-swappiness.conf
vm.swappiness=60
$ sudo cat /proc/sys/vm/swappiness
0
$ rgrep swappiness /etc/sysctl.*
/etc/sysctl.conf:# swappiness
/etc/sysctl.conf:vm.swappiness=60
/etc/sysctl.conf~:# swappiness
/etc/sysctl.conf~:vm.swappiness = 60
/etc/sysctl.d/60-my-swappiness.conf:vm.swappiness = 60
$ sudo sysctl -p
vm.swappiness = 60
$ sudo cat /proc/sys/vm/swappiness
60
After reboot, swappiness is again set to zero:
$ sudo cat /proc/sys/vm/swappiness
0
Why are my settings in /etc/sysctl.conf
are not loading after reboot?
Is there something wrong with procps?
What should I check?
I looked for answer in askubuntu and on other sites, but I have not found the answer.
I saw this, but there is no answer: Swappiness setting ignored in systcl.conf
How can I resolve this issue?
lsb_release -a
to the question. Can you also add an explanation of how you got to the point of swappiness becoming 0. – mikewhatever Mar 19 '13 at 12:53Yes I know it's 60, this is why I wanted to change it from 0 to default 60.
' $ lsb_release -a'
– Bartek Mar 19 '13 at 12:56