[SATLUG] Swappiness in Ubuntu

Chris Lemire good_bye300 at yahoo.com
Sat Apr 26 17:28:24 CDT 2008

ed <horned0wl93 at gmail.com> wrote: Hi Folks;

I have some rather interesting questions regarding RAM swapping in
Ubuntu or other Debian-based Linux OS.  I've just increased my Acer
laptop's RAM from 1GB to 2.5GB by replacing a 512MB SODIMM with a 2GB
SODIMM (1.8GHz CPU).  BIOS and system both acknowledge the increase, and
my system now runs somewhat faster.  But, as well as faster, I'm looking
for "better."  My questions relate to optimizing performance based on
this new increase.  I've seen/read a lot of debate on modifying the
"swappiness" value, the percentage of RAM content swapped to disk at any
given moment.  My current setup looks like this:

> root at xxxx:/# free -m
>              total               used       free     shared   
> buffers     cached
> Mem:    2470                 809      1660              0            
> 25          367     (misnomer: 32MB shared to video)
> -/+ buffers/cache:        416       2054
> Swap:     721                    0          721
> root at xxxx:/# cat /proc/sys/vm/swappiness
> 60
> root at xxxx:/#
My questions: 

1. Is there a need to change swappiness based on increased RAM?  Note:
Changing my swappiness (values ~ 0-100) via sysctrl.conf to "1" seemed
to have an inverse effect on CPU use, increasing cycles tremendously,
and maxing it out more often than Ubuntu's default setting of "60."

2. If I do need to change swappiness, what's a good value?  Why?  Why
not? What's gained? What's lost?

3. Are there any other values besides or instead of swappiness that'll
increase or optimize performance?  How would these or other changes
affect system stability?  Hardware performance?  Hardware life-cycle?

Any commentary most welcome.


SATLUG mailing list
SATLUG at satlug.org
http://alamo.satlug.org/mailman/listinfo/satlug to unsubscribe
Powered by Rackspace (www.rackspace.com)
Don't mix and match ram. If the 2 gb stick is running at a faster mhz, take out the 512 stick and use it for another computer or sell it whatever. You would have been better off buying 2 sticks of 1 gb ram in a dual channel kit to double the bandwidth. That equals greater performance.

Christopher Lemire <christopher.lemire at gmail.com>

SKYPE:	fakie_flip
AIM:	good bye300
IRC:	linux_user400354
LQ FORUMS AND YIM: fakie_flip
GTALK, JABBER AND MSN: recursivequicksort at jabber.org
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

More information about the SATLUG mailing list