Artix Linux Forum

Init systems => runit => Topic started by: whoami on 24 August 2019, 16:53:02

Title: Swappiness
Post by: whoami on 24 August 2019, 16:53:02
How do I change swappiness on an runit artix install?  - /etc/sysctl.conf doesn't exist.

Swappiness is set to 60 which is standard, but I have an ssd and a large amount of ram, so it should be set to 10 or below to prevent disk wear.

TIA
Title: Re: Swappiness
Post by: phoenix_king_rus on 24 August 2019, 18:12:06
Just create this file
Title: Re: Swappiness
Post by: whoami on 24 August 2019, 21:09:37
You know I thought about doing that, but then thought again, no it can't be that easy, but it was!
Thanks
Title: Re: Swappiness
Post by: artoo on 25 August 2019, 11:08:35
Put it in either /etc/sysctl.d/ or /usr/lib/sysctl.d/.

The /etc/sysctl.conf is deprecated.
Title: Re: Swappiness
Post by: whoami on 25 August 2019, 12:02:42
Put it in either /etc/sysctl.d/ or /usr/lib/sysctl.d/.

The /etc/sysctl.conf is deprecated.

Thanks artoo, I did that and it still works.
Title: Re: Swappiness
Post by: mrbrklyn on 27 August 2019, 21:47:01
Two questions:  What is swappiness?  and what is the function of sysctl.d
Title: Re: Swappiness
Post by: Everyone on 28 August 2019, 12:56:06
Two questions:  What is swappiness?
Swappiness (https://en.wikipedia.org/wiki/Paging#Swappiness)
and what is the function of sysctl.d
sysctl.d (http://man7.org/linux/man-pages/man5/sysctl.d.5.html)
Title: Re: Swappiness
Post by: SGOrava on 30 August 2019, 20:10:43
sysctl.d (http://man7.org/linux/man-pages/man5/sysctl.d.5.html)

To avoid heart-attack follow man pages of your Artix.
Code: [Select]
man sysctl
man sysctl.conf