How to identify/check that, how much of swap memory is used by a particular process or service?
I want to find out that if a process is using swap memory then hoe to check that how much space is used by particular process. Also if a process has child or parent process process the how to check the swap memory utilization for those processes.
|
man proc:
Code:
/proc/[pid]/pagemap (since Linux 2.6.25) By the way, by exposing your email address you risk attracting spam. |
The OP's question seems like something that "/sbin/swapon -sv" would provide but, sadly, doesn't.
What is actually being displayed in /proc/pid/pagemap? All I see is a bunch of binary data. Would summing the column 2 values of all the "Swap:" records in /proc/pid/smaps give a user a summary of the process's swap utilization? Quote:
|
Quote:
smaps and the pmap command might be solutions as well. |
Quote:
Quote:
|
I use smaps for this - however, note the caveats I mention in this recent related thread
|
All times are GMT -5. The time now is 10:48 AM. |