How do I change the swappiness in Arch Linux?

How do I change the swappiness in Arch Linux?
Answer
Run in a terminal:
  1. $ cat /proc/sys/vm/swappiness. The default value is 60 , which is too conservative. …
  2. $ sudo nano /etc/sysctl.d/100-archlinux.conf. In the file, you have to put the following:
  3. vm.swappiness=10. Then save the file. …
  4. $ cat /proc/sys/vm/swappiness. And you’ll see it’s 10 .
 

Tìm kiếm

Back
Top