pub struct NumaWorkloadBalancer { /* private fields */ }
Expand description
NUMA-aware workload balancer
Balances computational workload across NUMA nodes considering memory bandwidth and CPU capabilities.
Implementations§
Source§impl NumaWorkloadBalancer
impl NumaWorkloadBalancer
Sourcepub fn new(topology: NumaTopology) -> Self
pub fn new(topology: NumaTopology) -> Self
Create a new NUMA workload balancer
Sourcepub fn distribute_work(&self, total_workunits: usize) -> Vec<usize>
pub fn distribute_work(&self, total_workunits: usize) -> Vec<usize>
Get optimal work distribution for a given workload
Sourcepub fn update_load_history(
&self,
node_id: usize,
completion_time: f64,
expected_time: f64,
)
pub fn update_load_history( &self, node_id: usize, completion_time: f64, expected_time: f64, )
Update load history after completing work
Sourcepub fn get_load_info(&self) -> Vec<f64>
pub fn get_load_info(&self) -> Vec<f64>
Get current load information
Auto Trait Implementations§
impl Freeze for NumaWorkloadBalancer
impl RefUnwindSafe for NumaWorkloadBalancer
impl Send for NumaWorkloadBalancer
impl Sync for NumaWorkloadBalancer
impl Unpin for NumaWorkloadBalancer
impl UnwindSafe for NumaWorkloadBalancer
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more