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>,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)