How to configure swappiness in SalixOS ?

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
salix_user
Posts: 13
Joined: 23. Jan 2019, 13:15

How to configure swappiness in SalixOS ?

Post by salix_user » 4. Feb 2020, 21:30

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"

galmei
Posts: 70
Joined: 1. Jun 2018, 21:54

Re: How to configure swappiness in SalixOS ?

Post by galmei » 5. Feb 2020, 18:54

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

salix_user
Posts: 13
Joined: 23. Jan 2019, 13:15

Re: How to configure swappiness in SalixOS ?

Post by salix_user » 5. Feb 2020, 19:48

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.

User avatar
laprjns
Salix Warrior
Posts: 1044
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: How to configure swappiness in SalixOS ?

Post by laprjns » 6. Feb 2020, 10:47

A similar question was asked in the Slackware forum. See here;
https://www.linuxquestions.org/question ... 175669080/
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"

Post Reply