Wednesday, April 24, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1101  / 1 Year ago, fri, january 13, 2023, 10:04:33

So I've read several related threads and there seems to be no answer.



I have an old laptop, with a Dual Core 1.7 GHz processor and added 2 GB of RAM, with a 30 GB partition for Ubuntu 12.04 and the remaining for Windows XP.



I want to change the default swappiness from 60 to 0.



When I start the computer and run cat /proc/sys/vm/swappiness in Terminal I get the value 60.



I have no problems changing it to 0 with sudo sysctl vm.swappines=0



I have tried several times changing the file /etc/sysctl by adding at the end



#
# vm.swappiness=0


But every time I restart my computer the value given by cat /proc/sys/vm/swappiness is still 60.



Any ideas as to how to fix this?



Thanks


More From » 12.04

 Answers
2

The line is not being applied because it's commented, instead of:



# vm.swappiness=0


It should read:



vm.swappiness=0


Try that and reboot.


[#27288] Saturday, January 14, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ettorina

Total Points: 439
Total Questions: 99
Total Answers: 131

Location: Vanuatu
Member since Wed, Oct 14, 2020
4 Years ago
ettorina questions
Thu, Sep 1, 22, 15:28, 2 Years ago
Mon, Mar 14, 22, 06:04, 2 Years ago
Sun, Jul 24, 22, 13:31, 2 Years ago
;