How can see find process that have pages swapped out?

I would like to know which processes have pages swapped out. htop only show virtual memory which may or may not be paged out. Are there any tool that are more refined than this?

1 Answer

Your best bet is going to be

/proc/$PID/smaps
/proc/$PID/status
/proc/$PID/stat

replace $PID with the pid from ps, top, or htop.

There is also /proc/meminfo which has some general info.

Based on comments this might help:

for i in *; do cat /proc/$i/status | grep "Name:"; cat /proc/$i/status | grep "VmSwap:"; echo ""; done

It will have to be run as root. From the /proc/ directory.

4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like