How do I reduce swappiness in EOS? In Linux Mint this is done by editing sysctl.conf thus:
xed admin:///etc/sysctl.conf.

Can’t do the same in EOS because xed cannot find etc/sysctl.conf. A search shows that swappiness only exists in /proc/sys/vm/swappiness, with a value of 60. I want to reduce it to 10, but I can’t change this file, even as root.

You can use this line:

echo vm.swappiness=10 | sudo tee /etc/sysctl.d/99-swappiness.conf

Then reboot and your swappiness has been changed into 10.

Thanks. This is exactly what I needed.

(Strange. I’ve tried several times to send this reply, but failed each time and I got a “network protocol violation” instead.)

You’re welcome. The network error had to do with a forum software update that was causing me a headache, so I had to rebuild the forum again. Therefore it was offline for a couple of minutes.


Wow, so fast.