Crate cgroups

source ·

Re-exports

pub use cgroup::Cgroup;

Modules

This module contains the implementation of the blkio cgroup subsystem.
This module handles cgroup operations. Start here!
This module allows the user to create a control group using the Builder pattern.
This module contains the implementation of the cpu cgroup subsystem.
This module contains the implementation of the cpuacct cgroup subsystem.
This module contains the implementation of the cpuset cgroup subsystem.
This module contains the implementation of the devices cgroup subsystem.
This module contains the implementation of the freezer cgroup subsystem.
This module represents the various control group hierarchies the Linux kernel supports.
This module contains the implementation of the hugetlb cgroup subsystem.
This module contains the implementation of the memory cgroup subsystem.
This module contains the implementation of the net_cls cgroup subsystem.
This module contains the implementation of the net_prio cgroup subsystem.
This module contains the implementation of the perf_event cgroup subsystem.
This module contains the implementation of the pids cgroup subsystem.
This module contains the implementation of the rdma cgroup subsystem.

Structs

Weight for a particular block device.
Provides the ability to throttle a device (both byte/sec, and IO op/s)
General block I/O resource limits.
A structure representing a pid. Currently implementations exist for u64 and std::process::Child.
Resources limits about how the tasks can use the CPU.
A device resource that can be allowed or denied access to.
Limit the usage of devices for the control group’s tasks.
A hugepage type and its consumption limit for the control group.
Provides the ability to set consumption limit on each type of hugepages.
Resource limits for the memory subsystem.
Assigned priority for a network device.
Collections of limits and tags that can be imposed on packets emitted by the tasks in the control group.
Resources limits on the number of processes.
The resource limits and constraints that will be set on the control group.

Enums

Contains all the subsystems that are available in this crate.

Traits

A Controller is a subsystem attached to the control group.
Control group hierarchy (right now, only V1 is supported, but in the future Unified will be implemented as well).