VnTutor

Daily Tips, Tutorials on Ubuntu, Open Source, Programming

Reduce swapping to speed up your Ubuntu Linux

Posted by vntutor on May 31, 2007

Linux uses hard disk space called swap to write information it needs for accessing various temporary programs when system RAM is busy. Writing to hard drive is slower writing to RAM because the hard drive runs 100 times slower than RAM. Therefore, if your computer has much RAM (1G or more) why don’t you tell your kernel about that because this helps your kernel using swap less and RAM more to speed up your system. Now, I will let you know how to reduce the tendency for the kernel to use the swap file.
Step 1: see what is the current value for setting
sudo cat /proc/sys/vm/swappiness
(It should give a number 60 here)

Read more!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>