System Load Averages & Thread/Task Concurrency Telemetry #7
Notifications
Due Date
No due date set.
Depends on
Reference: gronod/MacMonitor#7
Reference in New Issue
Block a user
Resolved in Milestone 3. Implemented
MMLoadAverageProvider.h/.msampling 1/5/15-min load averages viagetloadavg(), Mach task and thread counts, and Mach factor viaprocessor_set_statistics(PROCESSOR_SET_LOAD_INFO). Verified with unit tests. Merged intodevelop.Technical Implementation Plan & Code Solution
1. Load Averages & Task Concurrency Architecture
Unix load averages represent the exponentially damped moving average number of runnable and waiting threads over 1, 5, and 15 minutes.
On macOS:
getloadavg().2. Objective-C Provider (
MMLoadAverageProvider.m)3. Swift UI Integration
4. Normalized Capacity Thresholds
normalizedLoad1Min < 0.7: Idle to Moderate workload.0.7 <= normalizedLoad1Min <= 1.0: Optimal full multi-core utilization.normalizedLoad1Min > 1.0: CPU saturation (tasks waiting in run queue).