Skip to content

Instantly share code, notes, and snippets.

@FreekPaans
Created September 18, 2019 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FreekPaans/4161295b18e6bf8fd9617774d7546e92 to your computer and use it in GitHub Desktop.
Save FreekPaans/4161295b18e6bf8fd9617774d7546e92 to your computer and use it in GitHub Desktop.
Sorts the swap usage of all procs
ls /proc | egrep "[0-9]+" | while read X; do echo $X $(cat $X/status | grep ^VmSwap); done | grep VmSwap | sort -n -k 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment