Making bitbake PSI-chic: regulating builds using /proc/pressure
summary
Adds a bitbake scheduler check that reads /proc/pressure via PSI and compares microsecond contention counters to BB_PRESSURE_MAX_{CPU|IO|MEMORY} thresholds (typical 1–10,000 μs) and stops creating new tasks until pressure falls, rather than relying on jobcount alone. Merged for Langdale. Measured impact: IO latency events drop from ~10+/week to 1–2/month, three simultaneous builds sometimes finish slightly faster, and a 32m25s build gains ~8s when CPU threshold = 1000; custom averaging replaces the kernel 10s average.
AI-written summary · about
