pub enum NumaPolicy {
Bind(NodeSet),
Preferred(u32),
Interleaved(NodeSet),
}Expand description
NUMA placement policy. v0.1 accepts an explicit node set rather
than dispatching against the calling thread’s node — supply
current_numa_node() if you want the local-at-construction
behaviour.
Variants§
Bind(NodeSet)
MPOL_BIND — pages must come from the listed nodes; if no
node has free memory, allocation fails. Maximum strictness.
Preferred(u32)
MPOL_PREFERRED — a soft hint; falls back to other nodes
under memory pressure.
Interleaved(NodeSet)
MPOL_INTERLEAVE — round-robin pages across the listed nodes.
Bandwidth-bound workloads benefit; latency-bound ones suffer.
Trait Implementations§
Source§impl Clone for NumaPolicy
impl Clone for NumaPolicy
Source§fn clone(&self) -> NumaPolicy
fn clone(&self) -> NumaPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NumaPolicy
impl Debug for NumaPolicy
impl Eq for NumaPolicy
Source§impl PartialEq for NumaPolicy
impl PartialEq for NumaPolicy
Source§fn eq(&self, other: &NumaPolicy) -> bool
fn eq(&self, other: &NumaPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NumaPolicy
Auto Trait Implementations§
impl Freeze for NumaPolicy
impl RefUnwindSafe for NumaPolicy
impl Send for NumaPolicy
impl Sync for NumaPolicy
impl Unpin for NumaPolicy
impl UnsafeUnpin for NumaPolicy
impl UnwindSafe for NumaPolicy
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
Mutably borrows from an owned value. Read more