pub struct CpuLoadSummary { /* private fields */ }Expand description
Allocation-free lockless hints used by remote placement and balancing.
Implementations§
Source§impl CpuLoadSummary
impl CpuLoadSummary
Sourcepub const fn queued_count(self) -> usize
pub const fn queued_count(self) -> usize
Returns candidates available to pick_next_task(), excluding current.
Sourcepub const fn nr_running(self) -> usize
pub const fn nr_running(self) -> usize
Returns Linux rq->nr_running, including a non-idle current task.
Sourcepub const fn fair_demand(self) -> u64
pub const fn fair_demand(self) -> u64
Returns the Linux nice-weighted Fair demand owned by this CPU.
Sourcepub const fn workload_demand(self) -> u64
pub const fn workload_demand(self) -> u64
Returns instantaneous scheduling demand in normal-nice weight units.
Fair work contributes its exact nice weight. RT and Deadline work each contribute one normal-nice capacity unit until class-specific utilization tracking is available.
Sourcepub const fn current_workload_demand(self) -> u64
pub const fn current_workload_demand(self) -> u64
Returns the demand contributed by this CPU’s non-idle current task.
Sourcepub const fn has_pushable_fair(self) -> bool
pub const fn has_pushable_fair(self) -> bool
Reports whether this CPU has migratable Fair work.
RT and Deadline overload are deliberately absent from this load
snapshot. Their sole remote authority is the root-domain rto/dlo
index, matching Linux’s separation between sched-domain load and
priority-class overload state.
Sourcepub const fn fair_idle_only(self) -> bool
pub const fn fair_idle_only(self) -> bool
Reports whether every runnable task on this CPU uses SCHED_IDLE.
Mirrors Linux sched_idle_rq(): a non-idle Fair wakee may treat this
rq as an idle placement target.
Sourcepub const fn fair_delayed_count(self) -> usize
pub const fn fair_delayed_count(self) -> usize
Returns Linux cfs_rq->h_nr_delayed for this flat runqueue.
Trait Implementations§
Source§impl Clone for CpuLoadSummary
impl Clone for CpuLoadSummary
Source§fn clone(&self) -> CpuLoadSummary
fn clone(&self) -> CpuLoadSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more