pub struct LinuxCpuBuilder { /* private fields */ }Expand description
Builder for LinuxCpu.
Implementations§
Source§impl LinuxCpuBuilder
impl LinuxCpuBuilder
CPU shares (relative weight (ratio) vs. other cgroups with cpu shares).
Sourcepub fn quota<VALUE: Into<i64>>(self, value: VALUE) -> Self
pub fn quota<VALUE: Into<i64>>(self, value: VALUE) -> Self
CPU hardcap limit (in usecs). Allowed cpu time in a given period.
Sourcepub fn idle<VALUE: Into<i64>>(self, value: VALUE) -> Self
pub fn idle<VALUE: Into<i64>>(self, value: VALUE) -> Self
Cgroups are configured with minimum weight, 0: default behavior, 1: SCHED_IDLE.
Sourcepub fn burst<VALUE: Into<u64>>(self, value: VALUE) -> Self
pub fn burst<VALUE: Into<u64>>(self, value: VALUE) -> Self
Maximum amount of accumulated time in microseconds for which tasks in a cgroup can run additionally for burst during one period
Sourcepub fn period<VALUE: Into<u64>>(self, value: VALUE) -> Self
pub fn period<VALUE: Into<u64>>(self, value: VALUE) -> Self
CPU period to be used for hardcapping (in usecs).
Sourcepub fn realtime_runtime<VALUE: Into<i64>>(self, value: VALUE) -> Self
pub fn realtime_runtime<VALUE: Into<i64>>(self, value: VALUE) -> Self
How much time realtime scheduling may use (in usecs).
Sourcepub fn realtime_period<VALUE: Into<u64>>(self, value: VALUE) -> Self
pub fn realtime_period<VALUE: Into<u64>>(self, value: VALUE) -> Self
CPU period to be used for realtime scheduling (in usecs).
Sourcepub fn cpus<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn cpus<VALUE: Into<String>>(self, value: VALUE) -> Self
CPUs to use within the cpuset. Default is to use any CPU available.