swapfile being eaten by unknown process
Kris Kennaway
kris at obsecurity.org
Mon Feb 14 18:41:41 PST 2005
On Tue, Feb 15, 2005 at 01:30:42AM +0000, John wrote:
> Hello list
>
> Is there a way of seeing *what* program/process is eating swap. There are
> loads of ways of seeing that it is being eaten, but so far haven't found a way
> of knowing what eats, so can't fix the problem. Can anyone enlighten me?
Use ps or top, and look for the process with the huge size. This is
not foolproof, because a process can allocate memory without using it
(e.g. rpc.statd), but it's a place to start. If you see a process
that is both large, and paging to/from disk, that's a better
indication.
Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050214/c3de95b3/attachment.bin
More information about the freebsd-stable
mailing list