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).
Trait Implementations§
source§impl<'de> Deserialize<'de> for LinuxCpu
impl<'de> Deserialize<'de> for LinuxCpu
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for LinuxCpu
impl PartialEq for LinuxCpu
impl Eq for LinuxCpu
impl StructuralPartialEq for LinuxCpu
Auto Trait Implementations§
impl Freeze for LinuxCpu
impl RefUnwindSafe for LinuxCpu
impl Send for LinuxCpu
impl Sync for LinuxCpu
impl Unpin for LinuxCpu
impl UnwindSafe for LinuxCpu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)