atop/.atoprc - zswap parameters
Hi folks,
atop is missing the default .atoprc file for some reason in /etc/atoprc & i'm trying to get it to display the the zpool & zstored parameters by creating a ownswapline in .atoprc without much luck. i've been through the man files and google doesn't seem much help.
any ideas?
Posted Jul 13, 2022, 9:58 PM UTC
20
Just an update - never did find where atop default config is stored.
to get zswap data create an .atoprc file in your home directory, then create an ownswpline key word, copy the example from atoprc man page and replace 2 of the blankbox columnID with ZSWTOTAL:5 and ZSWSTORED:5, save and reboot.
Found this via google, thank you for following up after figuring it out!
For other googlers, your .atoprc line should look like:
There's also no need to reboot, atop reads the .atoprc every time you run it. It will then show the SWP line like this:
that looks like your not running atop as root, which you need to to monitor zswap.