spdl.pipeline.CgroupStats¶
- class CgroupStats(version: int, path: str, cpu_usage: float | None, cpu_user: float | None, cpu_system: float | None, nr_periods: int | None, nr_throttled: int | None, throttled_time: float | None, memory_current: int | None, memory_max: int | None, memory_anon: int | None, memory_file: int | None, oom_kill: int | None, cpu_pressure: PressureStats | None, memory_pressure: PressureStats | None, io_pressure: PressureStats | None)[source]¶
Counters of the cgroup of the monitoring process, over the interval.
Added in version 0.9.0.
Attributes
cgroup hierarchy version (1 or 2).
The cgroup path.
CPU time used by the cgroup, in seconds.
User CPU time, in seconds (cgroup v2).
Kernel CPU time, in seconds (cgroup v2).
CPU quota enforcement periods that elapsed.
Periods in which the cgroup ran out of CPU quota and was throttled.
Time the cgroup was throttled, in seconds.
Memory charged to the cgroup, in bytes, including page cache.
Memory limit, in bytes.
Anonymous memory charged to the cgroup, in bytes.
Page cache charged to the cgroup, in bytes.
Processes killed by the OOM killer in the interval (cgroup v2).
CPU pressure stall (cgroup v2 with PSI).
Memory pressure stall (cgroup v2 with PSI).
I/O pressure stall (cgroup v2 with PSI).
- cpu_pressure: PressureStats | None¶
CPU pressure stall (cgroup v2 with PSI).
- io_pressure: PressureStats | None¶
I/O pressure stall (cgroup v2 with PSI).
- memory_pressure: PressureStats | None¶
Memory pressure stall (cgroup v2 with PSI).