Skip to content

Instantly share code, notes, and snippets.

@kcsinclair
Last active October 19, 2025 09:00
Show Gist options
  • Select an option

  • Save kcsinclair/c46313a396891b967bb1431dfcfaaeaa to your computer and use it in GitHub Desktop.

Select an option

Save kcsinclair/c46313a396891b967bb1431dfcfaaeaa to your computer and use it in GitHub Desktop.
Check Swap Memory which processes are using swap
# simple effective works.
for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | grep kB | sort -k 2 -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment