Page 1 of 1

Swap control How to set when swap is used

Posted: Sat Sep 05, 2020 6:06 pm
by bigpup
Swapeness control is in

/etc/sysctl.conf

Change or adding the line

Code: Select all

#Set swappiness value
vm.swappiness=10
The number is the percentage point of how much free RAM there is.
When free RAM reaches this point, swap is used.

Set with the value to your preference.

How to Manage Swap Usage in Linux
https://www.maketecheasier.com/manage-swap-usage-linux/

Re: Swap control How to set when swap is used

Posted: Tue Sep 08, 2020 11:52 pm
by vtpup
I didn't have /etc/sysct.conf as a file in either Tahrpup, or Bionicpup64, so I added it to enter those lines.

Re: Swap control How to set when swap is used

Posted: Wed Sep 09, 2020 3:38 am
by bigpup
It is not /etc/sysct.conf

It is /etc/sysctl.conf

Did you actually have a swap partition or swap file made?
Computer booted with the swap loaded?