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: Parser

The parser for /sys/kernel/mm/lru_gen/enabled file.

The content of /sys/kernel/mm/lru_gen/enabled file 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:
parse_content(content)[source]

This method must be implemented by classes based on this class.