Skip to main content

Affinity

Trait Affinity 

Source
pub trait Affinity {
    // Required methods
    fn pin_to_core(&self, core_id: u32);
    fn set_numa_node(&self, node_id: u32);
}
Expand description

Optional affinities/NUMA hints (P2).

Does not enter StepContext. Placement and topology hints are owned by the runtime/scheduler, not by nodes.

Required Methods§

Source

fn pin_to_core(&self, core_id: u32)

Pin the current worker to a logical core or group.

Source

fn set_numa_node(&self, node_id: u32)

Provide NUMA node hint.

Implementors§