- schedutil: maps per-CPU utilization to frequency, reducing oscillations and latency.
- Energy Aware Scheduling (EAS): on asymmetric systems, places tasks on the most energy-efficient CPU given utilization.
- Use
cpuset/sched_setaffinity to confine background tasks to efficient cores.
// Sketch: pick core with minimal energy for a task's util
function pickCore(utils, cores){
// cores: [{eff: joules_per_cycle}, ...]; utils: task utilization
let best = 0, score = Infinity;
cores.forEach((c,i)=>{ const s = c.eff * utils; if (s < score){ score = s; best = i; } });
return best;
}