Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Sep 2009 22:25:32 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        John Almberg <jalmberg@identry.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: reducing size of apache instances
Message-ID:  <20090912032532.GB54762@dan.emsphone.com>
In-Reply-To: <4AAAE7F6.2060806@identry.com>
References:  <h8dek8$tsa$1@ger.gmane.org> <4AAA577A.8070103@identry.com> <h8dq3n$4pi$1@ger.gmane.org> <4AAA8D60.4000300@identry.com> <237c27100909111105m4ab6fa37v1fa9019d2cd94d2@mail.gmail.com> <4AAAA820.4020407@identry.com> <6201873e0909111303k472b20c2t43d9a635fa0151ee@mail.gmail.com> <4AAAB124.8050908@identry.com> <237c27100909111515s70310092ua980038b3f16983e@mail.gmail.com> <4AAAE7F6.2060806@identry.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Sep 11), John Almberg said:
> > In this case you don't want to look at processes with big RES, you
> > want to find processes with a big difference between RES and SIZE
> > and/or the ones with flat-out largest SIZE.  Try sorting top by SIZE
> > and see what bubbles up.  (Ignore rpc.statd if it's running.)
> 
> Huh... okay. That's interesting.
> 
> Well the biggest SIZE process is mysql, followed by three mongrel
> instances (for a ruby on rails app), and then a bunch of httpd processes.
> 
> Mysql is optimized for a small server, there isn't much I can do about the
> size of the Rails app, so the apache instances seemed like the logical
> place to start.
> 
> I'm starting to wonder about the Swap info from top... it never changes. 
> It has said the same thing all day, since I've been watching it.  Does
> that make sense?
>
> Swap: 2008M Total, 150M Used, 1858M Free, 7% Inuse

If you previously ran some memory-intensive program, the system would have
pushed some unused data out to disk ( login processes for unused VTYs, other
daemons that are rarely used, etc ), but it won't free up that swap space
until those processes exit.  As long as you don't see "###K Out, ###K In" on
that swap line, you're not actively using the swap space and don't have to
worry.

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090912032532.GB54762>