Created
October 26, 2023 02:24
-
-
Save kcsinclair/c46313a396891b967bb1431dfcfaaeaa to your computer and use it in GitHub Desktop.
Check Swap Memory which processes are using swap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# simple effective works. | |
for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | sort -k 2 -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment