summaryrefslogtreecommitdiffstats
path: root/MemoryMeter.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 /MemoryMeter.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 'MemoryMeter.h')
-rw-r--r--MemoryMeter.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/MemoryMeter.h b/MemoryMeter.h
index d8f5fdbc..b6568afc 100644
--- a/MemoryMeter.h
+++ b/MemoryMeter.h
@@ -13,9 +13,10 @@ typedef enum {
MEMORY_METER_USED = 0,
MEMORY_METER_BUFFERS = 1,
MEMORY_METER_SHARED = 2,
- MEMORY_METER_CACHE = 3,
- MEMORY_METER_AVAILABLE = 4,
- MEMORY_METER_ITEMCOUNT = 5, // number of entries in this enum
+ MEMORY_METER_COMPRESSED = 3,
+ MEMORY_METER_CACHE = 4,
+ MEMORY_METER_AVAILABLE = 5,
+ MEMORY_METER_ITEMCOUNT = 6, // number of entries in this enum
} MemoryMeterValues;
extern const MeterClass MemoryMeter_class;

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