• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 306
  • Last Modified:

How to find out the swap size for each process ?

Hi,

I would like to find out the swap size used by each process ?

How I can do it ?

Thanks in Advance !
0
sganta
Asked:
sganta
1 Solution
 
ozoCommented:
ps -l
0
 
sgantaAuthor Commented:
Hi Ozo,

Thanks for your quick reply. But your does'nt display the
occupied SWAP size for that process.

What I want is similar to this

PID       SZ   Swap_Size
1023   200    10
.....
etc.,
0
 
ahoffmannCommented:
top
0
 
DrRussCommented:
"ps u" or "ps -o UFMT" will give columns with VSZ (virtual memory size) and RSS (resident set size). Subtracting RSS from VSZ will give the size of the process that is paged out. If the whole process is swapped out, RSS will be 0 and the state (S column) will show a "W" for swapped out.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now