[NTLUG:Discuss] Program to view which programs are filling Swap
David Simmons
dsimmons at powersmiths.com
Thu Apr 21 10:50:05 CDT 2005
To somewhat 'complete' this thread & maybe raise more questions; here
are some of the responses that I received from the various groups:
Isn't that what the Virt column in top shows?
------------------------------------------------
I just went into "top" setup and added a "SWAP" column by typing "f"
and then selecting "p" for SWAP.
VIRT is RESIDENT plus SWAP if it has to swap.
The real trick is figuring out what the application is doing with
swap. Is it swapped out waiting on resources? Is it building temp
files or data in swap? Looking at paging might help figure this out.
-----------------------------------
Just be careful. The processes which have their memory swapped out
are not likely the ones that caused swap to be used. The culprit
would be whatever process required enough memory to cause the others
to be swapped out (but which is now absent, leaving you with a lot of
free memory). Perhaps you could run a cron job (or even a script with
sleep(something)) to dump any process which is using over X% of your
total memory. If you're lucky, you'll catch someone in the act...
More information about the Discuss
mailing list