0% found this document useful (0 votes)
32 views2 pages

Decrease The Swap Use

This document provides instructions for decreasing swap use on computers with low RAM (1GB or less) that are running slowly on Linux Mint. It explains that Linux Mint tends to overuse swap space, slowing down the computer. The default swapiness setting of 60 that determines how soon Mint uses swap is too high for normal desktop use. It provides steps to check the current setting, install necessary applications, edit the sysctl.conf file to set swapiness to a lower number like 10 or 5 depending on RAM amount, and check that the new setting took effect. Setting a lower swapiness number reduces how often Mint accesses the hard disk and improves performance.

Uploaded by

Calujnai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views2 pages

Decrease The Swap Use

This document provides instructions for decreasing swap use on computers with low RAM (1GB or less) that are running slowly on Linux Mint. It explains that Linux Mint tends to overuse swap space, slowing down the computer. The default swapiness setting of 60 that determines how soon Mint uses swap is too high for normal desktop use. It provides steps to check the current setting, install necessary applications, edit the sysctl.conf file to set swapiness to a lower number like 10 or 5 depending on RAM amount, and check that the new setting took effect. Setting a lower swapiness number reduces how often Mint accesses the hard disk and improves performance.

Uploaded by

Calujnai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Decrease the swap use (important)

1.6. This is especially noticeable on computers with relatively low RAM


memory (1 GB or less): they tend to be far too slow in Linux Mint, and
Linux Mint accesses the hard disk too much. Luckily, this can be helped.
On the hard disk there's a separate partition for virtual memory, called
the swap. When Mint uses the swap too much, the computer slows down a
lot.
Mint's inclination to use the swap, is determined by a setting. The
lower the setting number, the longer it takes before Mint starts using
the swap. On a scale of 0-100, the default setting is 60. Which is much
too high for normal desktop use, and only fit for servers.
A detailed explanation can be found here (link dead? Then download this
pdf file with the same content).
Now the how-to:
a. Check your current swappiness setting:
Menu - Xfce Terminal
Type (use copy/paste to avoid errors):
cat /proc/sys/vm/swappiness

Press Enter.
The result will probably be 60.
b. Make sure that you have installed the applications gksu and leafpad:
Menu - Xfce Terminal
Type (use copy/paste to transport this magical incantation to the
terminal):
sudo apt-get install gksu leafpad

Press Enter. When prompted, type your password. Your password will
remain entirely invisible, not even dots will show, this is normal.
Press Enter again.
c. To change the swappiness into a more sensible setting, type in the
terminal (use copy/paste):
gksudo leafpad /etc/sysctl.conf

Press Enter.
Scroll to the bottom of the text file and add your swappiness parameter
to override the default. Copy/paste the following blue lines:

# Decrease swap usage to a more reasonable level


vm.swappiness=10

d. Save and close the text file. Then reboot your computer.
e. After the reboot, check the new swappiness value:
Menu - Xfce Terminal
Type (use copy/paste):
cat /proc/sys/vm/swappiness

Press Enter.
Now it should be 10.

Note: your machine might benefit from an even bigger decrease in


swappiness. A useful rule of thumb might be this:
1 GB RAM or more: set swappiness to 10
Less than 1 GB RAM: set swappiness to 5

You might also like