pub struct ExecCPUAffinity { /* private fields */ }
Expand description
ExecCPUAffinity specifies CPU affinity used to execute the process. This setting is not applicable to the container’s init process.
Implementations§
Source§impl ExecCPUAffinity
impl ExecCPUAffinity
Sourcepub fn cpu_affinity_initial(&self) -> &Option<String>
pub fn cpu_affinity_initial(&self) -> &Option<String>
cpu_affinity_initial is a list of CPUs a runtime parent process to be run on
initially, before the transition to container’s cgroup.
This is a a comma-separated list, with dashes to represent ranges.
For example, 0-3,7
represents CPUs 0,1,2,3, and 7.
Sourcepub fn cpu_affinity_final(&self) -> &Option<String>
pub fn cpu_affinity_final(&self) -> &Option<String>
cpu_affinity_final is a list of CPUs the process will be run on after the transition
to container’s cgroup. The format is the same as for initial
. If omitted or empty,
runtime SHOULD NOT change process’ CPU affinity after the process is moved to
container’s cgroup, and the final affinity is determined by the Linux kernel.
Source§impl ExecCPUAffinity
impl ExecCPUAffinity
Sourcepub fn set_cpu_affinity_initial(&mut self, val: Option<String>) -> &mut Self
pub fn set_cpu_affinity_initial(&mut self, val: Option<String>) -> &mut Self
cpu_affinity_initial is a list of CPUs a runtime parent process to be run on
initially, before the transition to container’s cgroup.
This is a a comma-separated list, with dashes to represent ranges.
For example, 0-3,7
represents CPUs 0,1,2,3, and 7.
Sourcepub fn set_cpu_affinity_final(&mut self, val: Option<String>) -> &mut Self
pub fn set_cpu_affinity_final(&mut self, val: Option<String>) -> &mut Self
cpu_affinity_final is a list of CPUs the process will be run on after the transition
to container’s cgroup. The format is the same as for initial
. If omitted or empty,
runtime SHOULD NOT change process’ CPU affinity after the process is moved to
container’s cgroup, and the final affinity is determined by the Linux kernel.
Trait Implementations§
Source§impl Clone for ExecCPUAffinity
impl Clone for ExecCPUAffinity
Source§fn clone(&self) -> ExecCPUAffinity
fn clone(&self) -> ExecCPUAffinity
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more