pub struct NumaThreadPoolConfig {
pub threads_per_node: usize,
pub pin_threads: bool,
}Expand description
Thread pool configuration for NUMA-aware workloads
Fields§
§threads_per_node: usizeThreads per NUMA node
pin_threads: boolWhether to pin threads to CPUs
Implementations§
Source§impl NumaThreadPoolConfig
impl NumaThreadPoolConfig
Sourcepub fn total_threads(&self) -> usize
pub fn total_threads(&self) -> usize
Calculate total thread count based on NUMA topology
Sourcepub fn thread_cpu(&self, thread_idx: usize) -> Option<usize>
pub fn thread_cpu(&self, thread_idx: usize) -> Option<usize>
Get CPU affinity for a thread index
Trait Implementations§
Source§impl Clone for NumaThreadPoolConfig
impl Clone for NumaThreadPoolConfig
Source§fn clone(&self) -> NumaThreadPoolConfig
fn clone(&self) -> NumaThreadPoolConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 NumaThreadPoolConfig
impl Debug for NumaThreadPoolConfig
Auto Trait Implementations§
impl Freeze for NumaThreadPoolConfig
impl RefUnwindSafe for NumaThreadPoolConfig
impl Send for NumaThreadPoolConfig
impl Sync for NumaThreadPoolConfig
impl Unpin for NumaThreadPoolConfig
impl UnsafeUnpin for NumaThreadPoolConfig
impl UnwindSafe for NumaThreadPoolConfig
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