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).