Created
February 8, 2021 20:55
-
-
Save iAnatoly/126b3c01b27c1f94d2541dd34b9d8838 to your computer and use it in GitHub Desktop.
bpftrace oneliner for swap-in and swap-out
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
bpftrace -e 'kprobe:swap_read*,kprobe:swap_write* {@[comm, pid] = count();} interval:s:5{ time(); print(@); clear(@); }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment