Skip to content

Instantly share code, notes, and snippets.

@erwiese
Created September 8, 2020 09:56
Show Gist options
  • Save erwiese/a8ba44cd7b24bc37ee95ec13e7cfa98e to your computer and use it in GitHub Desktop.
Save erwiese/a8ba44cd7b24bc37ee95ec13e7cfa98e to your computer and use it in GitHub Desktop.
Who puts the load on my machine
#!/bin/bash
# who swaps?
for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | sort -k 2 -n -r | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment