Memory controller information of cgroup - /sys/fs/cgroup/memeory
¶
Parser included in this module is:
SysFsCgroupUniqMemorySwappiness - Datasource sys_fs_cgroup_uniq_memory_swappiness
¶
-
class
insights.parsers.sys_fs_cgroup_memory.
SysFsCgroupUniqMemorySwappiness
(context)[source]¶ Bases:
insights.core.Parser
Class to parse the datasource
sys_fs_cgroup_uniq_memory_swappiness
output.- Sample output of datasource looks like::
- 10 1 60 66
The two columns that are output are: 1. value - the value of memory.swappiness 2. count - how many memory.swappiness files have the same setting
Examples
>>> type(sys_fs_cgroup_uniq_memory_swappiness) <class 'insights.parsers.sys_fs_cgroup_memory_swappiness.SysFsCgroupUniqMemorySwappiness'> >>> sys_fs_cgroup_uniq_memory_swappiness.stats[0] MemorySwappiness(count=1, value=10) >>> sys_fs_cgroup_uniq_memory_swappiness.stats[0].count 1 >>> sys_fs_cgroup_uniq_memory_swappiness.stats[1].value 60
-
stats
¶ a list of
MemorySwappiness
objectsType: list