Created
January 15, 2022 22:39
-
-
Save cljoly/f3e72ddc4e4f352e2f6fa83b904633bb to your computer and use it in GitHub Desktop.
Zram monitoring script
This file contains hidden or 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
awk '{print FILENAME, "\n", "orig:", $1/1024/1024, "compr:", $2/1024/1024, "ratio:", int($2/$1*100)"%", "\n", "incompressible:", $8, "freed:", $7}' /sys/block/zram*/mm_stat | |
swapon --show | |
zramctl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment