[buug] swap per process?

unix at theunixman.com unix at theunixman.com
Wed May 7 22:20:16 PDT 2003

On 05/07 22:02, Bob Read wrote:
> Does any *nix have a tool that shows swap used per
> process?

ps works well.  If you subtract the rss (Resident Set Size, in
physical RAM) from the vsize (Virtual Image Size, the total size of
the process), you can get a good idea of the amount of data swapped.

> What if your swap is hammered and you want to
> terminate only the offending process...

killall5 -9 :)

> ...maybe some way to read it indirectly, such as via
> pagein/out per process?

This probably isn't necessary, and probably wouldn't be accurate even
if the counters were available, since a large number of pages are

The UNIX Man <evan at theunixman.com>

More information about the buug mailing list