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

version

cgroup hierarchy version (1 or 2).

path

The cgroup path.

cpu_usage

CPU time used by the cgroup, in seconds.

cpu_user

User CPU time, in seconds (cgroup v2).

cpu_system

Kernel CPU time, in seconds (cgroup v2).

nr_periods

CPU quota enforcement periods that elapsed.

nr_throttled

Periods in which the cgroup ran out of CPU quota and was throttled.

throttled_time

Time the cgroup was throttled, in seconds.

memory_current

Memory charged to the cgroup, in bytes, including page cache.

memory_max

Memory limit, in bytes.

memory_anon

Anonymous memory charged to the cgroup, in bytes.

memory_file

Page cache charged to the cgroup, in bytes.

oom_kill

Processes killed by the OOM killer in the interval (cgroup v2).

cpu_pressure

CPU pressure stall (cgroup v2 with PSI).

memory_pressure

Memory pressure stall (cgroup v2 with PSI).

io_pressure

I/O pressure stall (cgroup v2 with PSI).

cpu_pressure: PressureStats | None

CPU pressure stall (cgroup v2 with PSI).

cpu_system: float | None

Kernel CPU time, in seconds (cgroup v2).

cpu_usage: float | None

CPU time used by the cgroup, in seconds.

cpu_user: float | None

User CPU time, in seconds (cgroup v2).

io_pressure: PressureStats | None

I/O pressure stall (cgroup v2 with PSI).

memory_anon: int | None

Anonymous memory charged to the cgroup, in bytes.

memory_current: int | None

Memory charged to the cgroup, in bytes, including page cache.

memory_file: int | None

Page cache charged to the cgroup, in bytes.

memory_max: int | None

Memory limit, in bytes. None if unlimited.

memory_pressure: PressureStats | None

Memory pressure stall (cgroup v2 with PSI).

nr_periods: int | None

CPU quota enforcement periods that elapsed.

nr_throttled: int | None

Periods in which the cgroup ran out of CPU quota and was throttled.

oom_kill: int | None

Processes killed by the OOM killer in the interval (cgroup v2).

path: str

The cgroup path.

throttled_time: float | None

Time the cgroup was throttled, in seconds.

version: int

cgroup hierarchy version (1 or 2).