The kernel now exports the information on the pressure the system experiences in /proc/pressure. It would be great to use that information and avoid starting new tasks when the cpu, memory or io pressure is too high. A variable should allow the user to configure the threshold and behaviour, similar to what BB_DISKMON_DIRS does. However, a new action needs to be created as STOPTASKS will stop the build and we want the bitbake to resume starting tasks once the pressure goes down.
Bulk move from 4.99 or 0.00 to 5.99
Does this need to be closed?
Fixed by a variety of commits: https://git.openembedded.org/bitbake/log/?qt=grep&q=pressure The main / first one being: https://git.openembedded.org/bitbake/commit/?id=502e05cbe67fb7a0e804dcc2cc0764a2e05c014f It needs some tuning in conjunction with he jobserver RFC posted here: https://lore.kernel.org/openembedded-core/20230828124834.376779-1-martin@geanix.com/#r but it's useful and helpful as is.