summaryrefslogtreecommitdiffstats
path: root/SwapMeter.h
diff options
context:
space:
mode:
authorIvan Shapovalov <intelfx@intelfx.name>2022-12-27 04:57:52 +0400
committerBenBE <BenBE@geshi.org>2023-04-23 16:00:17 +0200
commitb29b33ebb9ae80a95e7d09eb537e0fccc5043d68 (patch)
treebbd2c2642784757885d150ba0c598877f6f3e9d7 /SwapMeter.h
parentb2ada278403e643a3bc339783740f262b7879803 (diff)
{Memory,Swap}Meter: add "compressed memory" metrics
For now, the semantics are mostly fit for Linux zswap subsystem. For instance, we add the third swap usage metric that indicates the amount of memory that is accounted to swap but in fact stored elsewhere. This exactly matches the definition of frontswap/zswap, and is probably of little use to all other platforms.
Diffstat (limited to 'SwapMeter.h')
-rw-r--r--SwapMeter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/SwapMeter.h b/SwapMeter.h
index 162897fb..94b8dc85 100644
--- a/SwapMeter.h
+++ b/SwapMeter.h
@@ -12,7 +12,8 @@ in the source distribution for its full text.
typedef enum {
SWAP_METER_USED = 0,
SWAP_METER_CACHE = 1,
- SWAP_METER_ITEMCOUNT = 2, // number of entries in this enum
+ SWAP_METER_FRONTSWAP = 2,
+ SWAP_METER_ITEMCOUNT = 3, // number of entries in this enum
} SwapMeterValues;
extern const MeterClass SwapMeter_class;

© 2014-2024 Faster IT GmbH | imprint | privacy policy