On Linux, use zswap to populate "compressed memory" metrics added in the previous commit. Fixes #104.portage
parent
0c8df5f993
commit
71f5a80d9e
5 changed files with 66 additions and 1 deletions
@ -0,0 +1,21 @@ |
||||
#ifndef HEADER_ZswapStats |
||||
#define HEADER_ZswapStats |
||||
/*
|
||||
htop - ZswapStats.h |
||||
(C) 2022 htop dev team |
||||
Released under the GNU GPLv2+, see the COPYING file |
||||
in the source distribution for its full text. |
||||
*/ |
||||
|
||||
#include "ProcessList.h" |
||||
|
||||
typedef struct ZswapStats_ { |
||||
/* maximum size of the zswap pool */ |
||||
memory_t totalZswapPool; |
||||
/* amount of RAM used by the zswap pool */ |
||||
memory_t usedZswapComp; |
||||
/* amount of data stored inside the zswap pool */ |
||||
memory_t usedZswapOrig; |
||||
} ZswapStats; |
||||
|
||||
#endif |
||||
Loading…
Reference in new issue