Services and User Management
An administrator ran sysctl -w vm.swappiness=10 on a database server and performance improved, but after a reboot the value returned to 60. Which action makes the setting persistent across reboots?
Show the answer
Correct answerC. Put vm.swappiness=10 in /etc/sysctl.d/99-swap.conf, then run sysctl --system
Files ending in .conf under /etc/sysctl.d/ are read at boot, and sysctl --system loads them immediately. Writing to /proc/sys changes only the running kernel, just as sysctl -w does, so the value is lost at reboot.