Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jul 2010 15:23:37 -0500 (CDT)
From:      Robert Bonomi <bonomi@mail.r-bonomi.com>
To:        freebsd-questions@freebsd.org, jalmberg@identry.com
Subject:   Re: shrinking swap space
Message-ID:  <201007092023.o69KNblU004495@mail.r-bonomi.com>

next in thread | raw e-mail | index | archive | help
> From owner-freebsd-questions@freebsd.org  Fri Jul  9 08:18:56 2010
> Date: Fri, 09 Jul 2010 09:18:01 -0400
> From: John Almberg <jalmberg@identry.com>
> To: freebsd-questions@freebsd.org
> Subject: shrinking swap space
>
> Since my server locked me out last week because it was out of swap 
> space, I've been monitoring the swap space every 4 hours. It started off 
> with 3% used and little by little it has crept up to 17% this morning.
>
> I've been reading up on the subject in my two FreeBSD books (Absolute 
> and Complete) but neither give me a hint on how to find the program(s) 
> that are slowly eating up my swap space.
>
> Is there a utility that shows which programs are using swap space? Or 
> that can help debug this problem?

'ps' is your friend.  it will show you the 'total' memory used by each
process, *AND* the 'working set' size.  The working set is the part of that
process's address-space that is currently mapped into RAM.  The -difference-
betwen the total size, and the working set size is the swap usage.





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