First we'll need to check the current swappiness value;
Applications> Accessories >LXTerminalPaste the following into the terminal window;
cat /proc/sys/vm/swappinessPress enter.
Most likely the swappiness will be set to 60, and while this may be great for servers its just unnecessary for the average home user.
To reduce the swappiness value;
Copy/paste the following into the terminal window;
gksudo leafpad /etc/sysctl.confPress enter.
Scroll to the bottom of the text file and add these lines to overwrite the default swappiness parameters;
#Close the text file and reboot your computer.
# Decrease swap usage to a workable level
vm.swappiness=10
After rebooting, check to see if the swappiness has changed by entering the following into terminal;
cat /proc/sys/vm/swappinessPress enter.
Your swappiness should now be set to 10.
Note: Some computers may benefit from an even bigger reduction in swappiness. A useful rule is;
1 GB RAM or more: swappiness at 20
Less than 1 GB RAM: swappiness at 1
0 comments :: Making Bodhi Linux faster.
Post a Comment