[SOLVED]how to add Swappiness to linux mint 18

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
reptilezone2002
Level 3
Level 3
Posts: 104
Joined: Thu Aug 02, 2012 2:27 am

[SOLVED]how to add Swappiness to linux mint 18

Post by reptilezone2002 »

how do i change the Swappiness value in linux mint 18 64bit
Last edited by reptilezone2002 on Tue Nov 01, 2016 8:49 am, edited 1 time in total.
User avatar
don250r
Level 3
Level 3
Posts: 152
Joined: Thu Feb 11, 2016 2:41 pm

Re: how to add Swappiness to linux mint 18

Post by don250r »

Mint 20 Cinnamon,
Intel i9600kf@4.8GHz
32 Gb DDR4
Nvidia GTX1060
Cosmo.
Level 23
Level 23
Posts: 17817
Joined: Sat Dec 06, 2014 7:34 am

Re: how to add Swappiness to linux mint 18

Post by Cosmo. »

In short:
Open the file /etc/sysctl.conf with elevated rights. As we now have in LM 18 the x-apps, there is really no need to install another text-editor for that. Press alt-F2 and enter:

Code: Select all

gksudo xed /etc/sysctl.conf
Add the following line:

Code: Select all

vm.swappiness=10
Another question is, if this is really needed; on a rather current hardware with rather conventional use this is rather unlikely.
User avatar
don250r
Level 3
Level 3
Posts: 152
Joined: Thu Feb 11, 2016 2:41 pm

Re: how to add Swappiness to linux mint 18

Post by don250r »

Yeah i forgot the link suggests leafpad, and out of habit i still use gedit:P
Thanks Cosmo :)
As to your question, I'm not sure if some of the other tips are needed anymore. :oops:
Mint 20 Cinnamon,
Intel i9600kf@4.8GHz
32 Gb DDR4
Nvidia GTX1060
Cosmo.
Level 23
Level 23
Posts: 17817
Joined: Sat Dec 06, 2014 7:34 am

Re: how to add Swappiness to linux mint 18

Post by Cosmo. »

I am sure, that there are some questionable (at best) advises. But this has already been discussed some time back, no need to repeat this now.
Post Reply

Return to “Installation & Boot”