loginblin's IT notes
Tuesday, August 5, 2014
Swap usage by pid
for i in `find /proc -maxdepth 1 -type d|xargs -i basename {}`;do echo -n "PID: $i SWAP: ";cat /proc/$i/smaps|fgrep Swap|awk '{s=s+$2}END{print s}';done|sort -k4n
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)