aaron5523
6/27/2016 - 12:41 PM

Bash command to see how much swap each process is using

Bash command to see how much swap each process is using

for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | sort -k 2 -n -r