logo

Trait bastion_executor::load_balancer::SmpStats[][src]

pub trait SmpStats {
    fn store_load(&self, affinity: usize, load: usize);
fn get_sorted_load(&self) -> ArrayVec<(usize, usize), MAX_CORE>;
fn mean(&self) -> usize;
fn update_mean(&self); }
Expand description

Stats of all the smp queues.

Required methods

Stores the load of the given queue.

returns tuple of queue id and load ordered from highest load to lowest.

mean of the all smp queue load.

update the smp mean.

Implementors