Home
TYPO3 Extensions
Koders
Sourceforge
Github
Hotscripts
Google-Code
Google-Knol
phpclasses
citeseerx.ist.psu.edu
arxiv.org
Code-Schnipsel
Links
Kontakt

Swap files are what the Linux system uses to temporarily write things to disk. If you have enough RAM available, Linux uses that instead of the hard drive. But sometimes it's still over aggressive in writing to the swap drive.

Naturally, you can configure how often the OS falls back on the swap disk. How much this will speed things up is debatable -- the out-of-the-box setting will strike a nice balance most of the time -- but if you're really suffering, it's worth a try.

Before you change anything, run this command and look at the output number. The higher the number, the more often the kernel will use the swap disk.

<tt>$ sudo cat /proc/sys/vm/swappiness</tt>

Most distros set this number around 50 or 60. If you'd like to lower that, open up /etc/sysctl.conf:

<tt>$ sudo gedit /etc/sysctl.conf</tt>

Naturally, if you're on KDE, swap kate for gedit (or use emacs, vi or any other text editor you're comfortable with).

Add this line to the sysctl.conf file:

<tt>vm.swappiness=10</tt>

© 2005-2008 Chi Hoang. All rights reserved. All trademarks are property of their respective owners. Last Update: 
22.08.2010
bookmark in your browserbookmark at mister wongpublish in twitterbookmark at del.icio.usbookmark at digg.combookmark at furl.netbookmark at linksilo.debookmark at reddit.combookmark at spurl.netbookmark at technorati.combookmark at google.combookmark at yahoo.combookmark at facebook.combookmark at stumbleupon.combookmark at propeller.combookmark at newsvine.combookmark at jumptags.com