Skip to content

Instantly share code, notes, and snippets.

@aaron5523
Created June 27, 2016 12:41
Show Gist options
  • Select an option

  • Save aaron5523/82087ebd04d81f443caacf047ddb411c to your computer and use it in GitHub Desktop.

Select an option

Save aaron5523/82087ebd04d81f443caacf047ddb411c to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment