Adjusting swappiness for SSD optimization in openSuse 13.2

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.

On Fri 07 Nov 2014 05:46:01 AM CST, portsample wrote:

In the previous version of openSuse (13.1) swappiness could be adjusted
by editing,
/etc/sysctl.conf
to include
vm.swappiness=1.

So, what is the best way to adjust swappiness in 13.2? Thanks.

Hi
Use the same file, it works… :wink:

I also set the vm.vfs_cache_pressure=50, edit your file as you have
done, you can then verify via;


sysctl -a |grep 'swap\|pressure'


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!