Setting vm.swappiness=5 parameter in /etc/sysctl.conf (tried with space and without space multiple times) and doing (sudo) sysctl -p applies the kernel parameter without problem yet after reboot it always decides to go back to the stock 60; can’t see any dmesg messages about it. Would appreciate help; I also don’t know how to set sysctl to debug mode
You might want to review what was suggested for a similar issue an AskUbuntu https://askubuntu.com/questions/962634/how-to-permanently-change-swappiness
Nope… Not issue at hand sry… Mine is about the value just going back to 60 back even when everything is set up correctly.
I experienced the same problem after using Ubuntu 24.10 and found this related issue: Bug #2084376 “[Ubuntu 24.10 Oracular; systemd-sysctl service] Fi...” : Bugs : systemd package : Ubuntu
The file /etc/sysctl.conf
is not processed anymore, you can simply add a new file in /etc/sysctl.d/
with vm.swappiness = 5
.
Thanks, worked. It’s dumb of the developers to remove the symlink though, in my opinion, especially since manually instructing sysctl to apply the parameters works flawlessly.
I’m sorry, but why did you mess with that? Wouldn’t it be much easier, even better, to add more RAM?