LruGenEnabled - file /sys/kernel/mm/lru_gen/enabled
Parser to parse the output of file /sys/kernel/mm/lru_gen/enabled
- class insights.parsers.lru_gen_enabled.LruGenEnabled(context)[source]
Bases:
ParserThe parser for
/sys/kernel/mm/lru_gen/enabledfile.The content of
/sys/kernel/mm/lru_gen/enabledfile is a hexadecimal number. Values , Feature ---------------- 0x0000, the multi-gen LRU feature is disabled 0x0001, the multi-gen LRU feture is enabled 0x0002, the feature of clearing the accessed bit in leaf page table entries in large batches is enabled 0x0004, the feature of clearing the accessed bit in non-leaf page table entries as well is enabled 0x0007, all the features are enabled- Sample Content::
0x0004
Examples
>>> type(lru_gen_enabled) <class 'insights.parsers.lru_gen_enabled.LruGenEnabled'> >>> lru_gen_enabled.enabled True >>> lru_gen_enabled.features 4
- enabled
False means multi-gen LRU feature is disabled, otherwise, any of feature is enabled.
- Type:
bool
- features
when enabled is True, checking the features to see which features are enabled.
- Type:
int
- Raises:
ParseException -- When running into an unparsable line.
SkipComponent -- When file content is empty or has multiple lines.