[Speed Up] [Tips and Tricks] [Ubuntu]
Speed up your Ubuntu
Don't want to miss a single bit? Subscribe to our RSS Feed!
Most Linux distributions use swap file to extend the amount of available RAM by writing some of it to your hard drive. Hard drives are slow, most modern computers come with more than 1GB ram as standard and Ubuntu is using 60% of the RAM by default. You can check it with next terminal command:
cat /proc/sys/vm/swappinessSo we can configure Ubuntu to use more faster RAM memory and less hard drive. The Linux kernel provides a tweakable setting that controls how often the swap file(hard disk) is used, called swappiness. To change the system swappiness value, press alt+f2 and enter “gksudo nautilus” without qouotes. Then open /etc/sysctl.conf and change or add this line to the file:
NOTE: IF YOU HAVE MORE RAM, 2GB FOR EXAMPLE, YOU CAN USE LOWER VALUES
vm.swappiness=40Reboot for the change to take effect.
You can also change the value while your system is still running:
sudo sysctl vm.swappiness=40to clear your alredy made swap file and use new settings without rebooting use this commands:
sudo swapoff -aEnjoy in your faster Ubuntu experience.
sudo swapon -a
Did you enjoy this post? Why not leave a comment below and continue the conversation, or Subscribe to Feed and get articles like this delivered automatically to your Email or feed reader.
1 comments:
Nice work there...
But your work rather concentrates on not using swap.
Here's my article about speeding up Ubuntu by installing Xubuntu in an existing Ubuntu installation:
http://opensourcethefuture.blog.co.in/2009/03/02/speed-up-ubuntu
Post a Comment