Increase performance by reducing swappiness

If you have >4GB of ram in your system you might want to change how often the OS would use your HDD/SSD for swap! It can also improve the lifespan of your SSD by reducing the writes in it!

Let’s start!

First thing, open the terminal and paste the command bellow:

cat /proc/sys/vm/swappiness

and hit Enter key

The result should be 60

Now paste the command bellow:

xed admin:///etc/sysctl.conf

And hit Enter key
Copy those 2 lines:

# Decrease swap usage to a more reasonable level
vm.swappiness=10

Go to the end of the file and paste them.
Press CTRL + S and close that window

Please restart your system

Once your system is back, open the terminal and run again the command:

cat /proc/sys/vm/swappiness

The new result should be 10.

Μονομάχος
Μονομάχοςhttps://e-arena.gr
Comfuzio is a gamer since very young age, ahead of his era and Hellenic society in general.He is also very funny and informative!

Latest articles

Ο στόκος

Νενικήκαμεν…;

Related articles

Chat Icon