Struct cgroups_rs::blkio::BlkIo

source ·
pub struct BlkIo {
Show 34 fields pub io_merged: Vec<IoService>, pub io_merged_total: u64, pub io_merged_recursive: Vec<IoService>, pub io_merged_recursive_total: u64, pub io_queued: Vec<IoService>, pub io_queued_total: u64, pub io_queued_recursive: Vec<IoService>, pub io_queued_recursive_total: u64, pub io_service_bytes: Vec<IoService>, pub io_service_bytes_total: u64, pub io_service_bytes_recursive: Vec<IoService>, pub io_service_bytes_recursive_total: u64, pub io_serviced: Vec<IoService>, pub io_serviced_total: u64, pub io_serviced_recursive: Vec<IoService>, pub io_serviced_recursive_total: u64, pub io_service_time: Vec<IoService>, pub io_service_time_total: u64, pub io_service_time_recursive: Vec<IoService>, pub io_service_time_recursive_total: u64, pub io_wait_time: Vec<IoService>, pub io_wait_time_total: u64, pub io_wait_time_recursive: Vec<IoService>, pub io_wait_time_recursive_total: u64, pub leaf_weight: u64, pub leaf_weight_device: Vec<BlkIoData>, pub sectors: Vec<BlkIoData>, pub sectors_recursive: Vec<BlkIoData>, pub throttle: BlkIoThrottle, pub time: Vec<BlkIoData>, pub time_recursive: Vec<BlkIoData>, pub weight: u64, pub weight_device: Vec<BlkIoData>, pub io_stat: Vec<IoStat>,
}
Expand description

Statistics and state of the block devices.

Fields§

§io_merged: Vec<IoService>

The number of BIOS requests merged into I/O requests by the control group’s tasks.

§io_merged_total: u64

Same as io_merged, but only reports the total number.

§io_merged_recursive: Vec<IoService>

Same as io_merged, but contains all descendant control groups.

§io_merged_recursive_total: u64

Same as io_merged_recursive, but only reports the total number.

§io_queued: Vec<IoService>

The number of requests queued for I/O operations by the tasks of the control group.

§io_queued_total: u64

Same as io_queued, but only reports the total number.

§io_queued_recursive: Vec<IoService>

Same as io_queued, but contains all descendant control groups.

§io_queued_recursive_total: u64

Same as io_queued_recursive, but contains all descendant control groups.

§io_service_bytes: Vec<IoService>

The number of bytes transferred from and to the block device (as seen by the CFQ I/O scheduler).

§io_service_bytes_total: u64

Same as io_service_bytes, but contains all descendant control groups.

§io_service_bytes_recursive: Vec<IoService>

Same as io_service_bytes, but contains all descendant control groups.

§io_service_bytes_recursive_total: u64

Total amount of bytes transferred between the tasks and block devices, including the descendant control groups’ numbers.

§io_serviced: Vec<IoService>

The number of I/O operations (as seen by the CFQ I/O scheduler) between the devices and the control group’s tasks.

§io_serviced_total: u64

The total number of I/O operations performed on the devices as seen by the throttling policy.

§io_serviced_recursive: Vec<IoService>

Same as io_serviced, but contains all descendant control groups.

§io_serviced_recursive_total: u64

Same as io_serviced, but contains all descendant control groups and contains only the total amount.

§io_service_time: Vec<IoService>

The total time spent between dispatch and request completion for I/O requests (as seen by the CFQ I/O scheduler) by the control group’s tasks.

§io_service_time_total: u64

Same as io_service_time, but contains all descendant control groups and contains only the total amount.

§io_service_time_recursive: Vec<IoService>

Same as io_service_time, but contains all descendant control groups.

§io_service_time_recursive_total: u64

Same as io_service_time_recursive, but contains all descendant control groups and only the total amount.

§io_wait_time: Vec<IoService>

Total amount of time spent waiting for a free slot in the CFQ I/O scheduler’s queue.

§io_wait_time_total: u64

Same as io_wait_time, but only reports the total amount.

§io_wait_time_recursive: Vec<IoService>

Same as io_wait_time, but contains all descendant control groups.

§io_wait_time_recursive_total: u64

Same as io_wait_time_recursive, but only reports the total amount.

§leaf_weight: u64

How much weight do the control group’s tasks have when competing against the descendant control group’s tasks.

§leaf_weight_device: Vec<BlkIoData>

Same as leaf_weight, but per-block-device.

§sectors: Vec<BlkIoData>

Total number of sectors transferred between the block devices and the control group’s tasks.

§sectors_recursive: Vec<BlkIoData>

Same as sectors, but contains all descendant control groups.

§throttle: BlkIoThrottle

Similar statistics, but as seen by the throttle policy.

§time: Vec<BlkIoData>

The time the control group had access to the I/O devices.

§time_recursive: Vec<BlkIoData>

Same as time, but contains all descendant control groups.

§weight: u64

The weight of this control group.

§weight_device: Vec<BlkIoData>

Same as weight, but per-block-device.

§io_stat: Vec<IoStat>

IoStat for cgroup v2

Trait Implementations§

source§

impl Debug for BlkIo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for BlkIo

source§

fn default() -> BlkIo

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for BlkIo

§

impl Send for BlkIo

§

impl Sync for BlkIo

§

impl Unpin for BlkIo

§

impl UnwindSafe for BlkIo

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.