Page 1 of 1

How to configure swappiness in SalixOS ?

Posted: 4. Feb 2020, 21:30
by salix_user

Code: Select all

$ cat /proc/sys/vm/swappiness
60
$ 
I need a step-by-step, simple and easy way to configure swappiness in SalixOS 14.2
Please, help.

p.s.
It was possible in ubuntu

Code: Select all

sudo bash -c "echo 'vm.swappiness = 15' >> /etc/sysctl.conf"

Re: How to configure swappiness in SalixOS ?

Posted: 5. Feb 2020, 18:54
by galmei
Simple and easy four-step instructions

1. As root user, open or create the file /etc/sysctl.conf .
2. Then modify or add the line:

Code: Select all

vm.swappiness = 10
3. Save the file.
4. Boot the operating system.

The following statement is suitable for temporary changes:

Code: Select all

sudo sysctl vm.swappiness=10

Re: How to configure swappiness in SalixOS ?

Posted: 5. Feb 2020, 19:48
by salix_user
galmei wrote: 5. Feb 2020, 18:54 1. As root user, open or create the file /etc/sysctl.conf .
SalixOS does not have the file. I have created it.
Thanks for the answer.

Re: How to configure swappiness in SalixOS ?

Posted: 6. Feb 2020, 10:47
by laprjns
A similar question was asked in the Slackware forum. See here;
https://www.linuxquestions.org/question ... 175669080/