Struct cgroups_rs::blkio::BlkIoController [−][src]
pub struct BlkIoController { /* fields omitted */ }
Expand description
A controller that allows controlling the blkio
subsystem of a Cgroup.
In essence, using the blkio
controller one can limit and throttle the tasks’ usage of block
devices in the control group.
Implementations
Constructs a new BlkIoController
with root
serving as the root of the control group.
Gathers statistics about and reports the state of the block devices used by the control group’s tasks.
Set the leaf weight on the control group’s tasks, i.e., how are they weighted against the descendant control groups’ tasks.
Same as set_leaf_weight()
, but settable per each block device.
Reset the statistics the kernel has gathered so far and start fresh.
Throttle the bytes per second rate of read operation affecting the block device
major:minor
to bps
.
Throttle the I/O operations per second rate of read operation affecting the block device
major:minor
to bps
.
Throttle the bytes per second rate of write operation affecting the block device
major:minor
to bps
.
Throttle the I/O operations per second rate of write operation affecting the block device
major:minor
to bps
.
Set the weight of the control group’s tasks.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for BlkIoController
impl Send for BlkIoController
impl Sync for BlkIoController
impl Unpin for BlkIoController
impl UnwindSafe for BlkIoController
Blanket Implementations
Mutably borrows from an owned value. Read more
Apply a set of resources to the Controller, invoking its internal functions to pass the kernel the information.
Attach a task to this controller by thread group id.