In the previous version of openSuse (13.1) swappiness could be adjusted by editing,
/etc/sysctl.conf
to include
vm.swappiness=1.
Now,
/etc/sysctl.conf
contains,
/etc/sysctl.conf is meant for local sysctl settings
sysctl reads settings from the following locations:
/boot/sysctl.conf-<kernelversion>
/lib/sysctl.d/*.conf
/usr/lib/sysctl.d/*.conf
/usr/local/lib/sysctl.d/*.conf
/etc/sysctl.d/*.conf
/run/sysctl.d/*.conf
/etc/sysctl.conf
To disable or override a distribution provided file just place a
file with the same name in /etc/sysctl.d/
See sysctl.conf(5), sysctl.d(5) and sysctl(8) for more information
So, what is the best way to adjust swappiness in 13.2? Thanks.