Structs§
- Cgroup
CpuModel - Cgroup
IoModel - Cgroup
Memory Model - Cgroup
Memory Numa Model - Cgroup
Model - A model that represents a cgroup subtree. Each instance is a node that uses the “data” field to represent local data. Otherwise mixing hierarchy and data makes it hard to define a Field Id type that queries nested cgroups.
- Cgroup
Path - Cgroup
Pids Model - Cgroup
Pressure Model - Cgroup
Properties - Cgroup properties. Without any cgroup configuration changes, these should typically be static.
- Cgroup
Stat Model - Single
Cgroup Model - Collection of all data local to the cgroup, e.g. its memory/io/cpu/pids usage. Nothing about child cgroups or siblings, and therefore “Single” in its name.
Enums§
- Cgroup
CpuModel Field Id - Cgroup
IoModel Field Id - Cgroup
Memory Model Field Id - Cgroup
Memory Numa Model Field Id - Cgroup
Pids Model Field Id - Cgroup
Pressure Model Field Id - Cgroup
Properties Field Id - Cgroup
Stat Model Field Id - Single
Cgroup Model Field Id
Type Aliases§
- Cgroup
Model Field Id - Queries a specific SingleCgroupModel inside a CgroupModel tree.
Its String representation looks like this:
path:/system.slice/foo.service/.cpu.usage_pct
The path parameter starts with
path:and ends with/.. This works because SingleCgroupModelFieldId does not contain slash. The path is used to drill into the Cgroup Model tree. If Vec empty, the current CgroupModel is selected and queried with the subquery_id. The path is optional in parsing and converting to String.