pub struct LinuxCpu { /* private fields */ }
Expand description
LinuxCPU for Linux cgroup ‘cpu’ resource management.
Implementations§
Source§impl LinuxCpu
impl LinuxCpu
CPU shares (relative weight (ratio) vs. other cgroups with cpu shares).
Sourcepub fn quota(&self) -> Option<i64>
pub fn quota(&self) -> Option<i64>
CPU hardcap limit (in usecs). Allowed cpu time in a given period.
Sourcepub fn idle(&self) -> Option<i64>
pub fn idle(&self) -> Option<i64>
Cgroups are configured with minimum weight, 0: default behavior, 1: SCHED_IDLE.
Sourcepub fn burst(&self) -> Option<u64>
pub fn burst(&self) -> Option<u64>
Maximum amount of accumulated time in microseconds for which tasks in a cgroup can run additionally for burst during one period
Sourcepub fn realtime_runtime(&self) -> Option<i64>
pub fn realtime_runtime(&self) -> Option<i64>
How much time realtime scheduling may use (in usecs).
Sourcepub fn realtime_period(&self) -> Option<u64>
pub fn realtime_period(&self) -> Option<u64>
CPU period to be used for realtime scheduling (in usecs).
Source§impl LinuxCpu
impl LinuxCpu
CPU shares (relative weight (ratio) vs. other cgroups with cpu shares).
Sourcepub fn set_quota(&mut self, val: Option<i64>) -> &mut Self
pub fn set_quota(&mut self, val: Option<i64>) -> &mut Self
CPU hardcap limit (in usecs). Allowed cpu time in a given period.
Sourcepub fn set_idle(&mut self, val: Option<i64>) -> &mut Self
pub fn set_idle(&mut self, val: Option<i64>) -> &mut Self
Cgroups are configured with minimum weight, 0: default behavior, 1: SCHED_IDLE.
Sourcepub fn set_burst(&mut self, val: Option<u64>) -> &mut Self
pub fn set_burst(&mut self, val: Option<u64>) -> &mut Self
Maximum amount of accumulated time in microseconds for which tasks in a cgroup can run additionally for burst during one period
Sourcepub fn set_period(&mut self, val: Option<u64>) -> &mut Self
pub fn set_period(&mut self, val: Option<u64>) -> &mut Self
CPU period to be used for hardcapping (in usecs).
Sourcepub fn set_realtime_runtime(&mut self, val: Option<i64>) -> &mut Self
pub fn set_realtime_runtime(&mut self, val: Option<i64>) -> &mut Self
How much time realtime scheduling may use (in usecs).
Sourcepub fn set_realtime_period(&mut self, val: Option<u64>) -> &mut Self
pub fn set_realtime_period(&mut self, val: Option<u64>) -> &mut Self
CPU period to be used for realtime scheduling (in usecs).