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