pub struct DeviceLoad {
pub device_index: usize,
pub compute_utilization: f32,
pub memory_utilization: f32,
pub combined_load: f32,
pub active_tasks: usize,
pub pending_workloads: usize,
pub score: f32,
pub trend: f32,
}Expand description
Device load information for balancing decisions
Fields§
§device_index: usizeDevice index
compute_utilization: f32Current compute utilization (0.0 to 1.0)
memory_utilization: f32Current memory utilization (0.0 to 1.0)
combined_load: f32Combined load score
active_tasks: usizeActive task count
pending_workloads: usizePending workload count
score: f32Device score (higher = better for new work)
trend: f32Utilization trend (positive = increasing)
Implementations§
Source§impl DeviceLoad
impl DeviceLoad
Sourcepub fn is_overloaded(&self, config: &MigrationConfig) -> bool
pub fn is_overloaded(&self, config: &MigrationConfig) -> bool
Check if device is overloaded
Sourcepub fn is_underutilized(&self, config: &MigrationConfig) -> bool
pub fn is_underutilized(&self, config: &MigrationConfig) -> bool
Check if device is underutilized
Trait Implementations§
Source§impl Clone for DeviceLoad
impl Clone for DeviceLoad
Source§fn clone(&self) -> DeviceLoad
fn clone(&self) -> DeviceLoad
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 moreAuto Trait Implementations§
impl Freeze for DeviceLoad
impl RefUnwindSafe for DeviceLoad
impl Send for DeviceLoad
impl Sync for DeviceLoad
impl Unpin for DeviceLoad
impl UnsafeUnpin for DeviceLoad
impl UnwindSafe for DeviceLoad
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