I tried setting the swappiness by doing:
# sysctl -w vm.swappiness=10
# echo 10 > /proc/sys/vm/swappiness
but bwhenever I reboot, the swapiness value is back to its default of 60 (as reported by sysctl) and the file /proc/sys/vm/swapiness also contains 60 again.
yes, that's why they call it the default. If you want to change it on boot up, add a line (before exit 0) in
that calls your script. Make sure to make your script executable (chmod +x) and, of
course, make sure the owner is root.