Posts: 252
Threads: 79
Joined: Aug 2017
Reputation:
0
01-30-2018, 07:15 AM
(This post was last modified: 01-31-2018, 04:12 AM by JanetBiggar.)
I'm trying to change the swappiness on an older computer from 60 to 10 and have always followed the following article section 1.1:https://sites.google.com/site/easylinuxtipsproject/3
However, this particular computer I upgraded to LL 3.6 and when I cut and paste the get leafpad line it says it is already updated and hence no file appears into which I can cut and paste the next line in the following step.
Is someone able to give me the steps to reduce swapiness to 10 given that this computer is running LL 3.6?
Thanks in advance.
Posts: 541
Threads: 20
Joined: May 2017
Reputation:
0
[member=6629]ralphy[/member] has a cool graphical tool for doing that too, called Unlockme. It does all kindsa stuff in one very simple GUI. Nice for lazy people, newbies, and technophobic kids.
Posts: 252
Threads: 79
Joined: Aug 2017
Reputation:
0
Hi Moltke,
Well the temporary change to 10 works, however when I try the permanent line it does't work, however it may be that I'm missing a step. When I put in the "sudo nano..." line I get a bunch of text, then I add the "vm swappiness=10" at the bottom and then I simply close the file.
I seem to recall in the very first link I mentioned above that I had to save the file...I tried to see if I could "save" the changes in terminal command line, but no choice to save. I think I'm missing something.
I also tried the:
sysctl -w vm.swappiness=1
However I get this following message below the above command:
sysctl: permission denied on key 'vm.swappiness'
Not sure what to do. I have RAM of 2GB so it not horrible so thinking 10 would be ok, but can't seem to get a permanent change to 10
Posts: 252
Threads: 79
Joined: Aug 2017
Reputation:
0
Thanks for the steps Moltke, I gave it a go, but despite confirming that the file was saved with the change to swappiness of 10, after rebooting it still shows 60.
The temporary fix does work if that is helpful to know although as you mention this reverts to 69 once rebooted.
With a RAM of 2G will it make that much difference if I leave it at 60?
Posts: 541
Threads: 20
Joined: May 2017
Reputation:
0
2 GB of RAM is better at 10 than 60.