This has been asked a number of times before. However, at the risk of being flagged a duplicate I thought I would ask again, as I have not seen answers specific to Ubuntu 19.10, and none of these recommended answers works for me.
vm.swappiness = 10 directly in
/etc/sysctl.conf, or creating a file
/etc/sysctl.d/60-my-swappiness.conf with the content
vm.swappiness = 10, does not change the swappiness on boot; it remains at the default value of 60:
$ cat /proc/sys/vm/swappiness 60
sysctl -p with
sudo permissions changes it for the given session, but on reboot it resets back to the default.
$ sudo sysctl -p [sudo] password for user: vm.swappiness = 10 ... $ cat /proc/sys/vm/swappiness 10
How do you change the swappiness so that it persists between reboots in Ubuntu 19.10?