[olug] Tweaking swapping in 2.6.X kernels...

Dave Hull dphull at insipid.com
Tue Sep 28 19:14:06 UTC 2004


Quoting Daniel Linder <dan at linder.org>:

> I stumbled across some discussion of the new "swappiness" factor the new
> kernels support via the "/proc" filesystem.  The number that my system was
> set to initially was "60" (it can range from 0 to 100) -- the lower the
> number the more agressively the system will try to hold things in RAM
> before swapping them out.  I lowered this to "25" and the performance is
> extremely responsive now.  You can do this by executing the following as
> root:
> echo 25 > /proc/sys/vm/swappiness
> (You will have to do this each time you reboot, so add the following line
> to your /etc/rc.local once you find a value you like.)

Cool. You could also set this in /etc/sysctl.conf and it will persist across
reboots.

--
Dave Hull
http://insipid.com



More information about the OLUG mailing list