System kernel files under /proc/sys/kernel
or /sys/kernel
¶
This module contains the following parsers:
SchedRTRuntime - file /proc/sys/kernel/sched_rt_runtime_us
¶
SchedFeatures - file /sys/kernel/debug/sched_features
¶
-
class
insights.parsers.sys_kernel.
SchedFeatures
(context)[source]¶ Bases:
insights.core.Parser
Class for parsing the /sys/kernel/debug/sched_features file.
Typical content of the file is:
GENTLE_FAIR_SLEEPERS START_DEBIT NO_NEXT_BUDDY LAST_BUDDY CACHE_HOT_BUDDY
Examples
>>> type(sfs) <class 'insights.parsers.sys_kernel.SchedFeatures'> >>> "GENTLE_FAIR_SLEEPERS" in sfs.features True >>> "TEST1" in sfs.features False
-
features
¶ A list with all the features
Type: list
-
-
class
insights.parsers.sys_kernel.
SchedRTRuntime
(context)[source]¶ Bases:
insights.core.Parser
Class for parsing the /proc/sys/kernel/sched_rt_runtime_us file.
Typical content of the file is:
950000
Examples
>>> type(srt) <class 'insights.parsers.sys_kernel.SchedRTRuntime'> >>> srt.runtime_us 950000
-
runtime_us
¶ The value of sched_rt_runtime_us
Type: int
Raises: ParseException
-- Raised when there is more than one line or the value isn’t interger.-