mbox series

[0/2] Improvements around BB_PRESSURE_* variables

Message ID 20250411-bb-pressure-improvements-v1-0-7d9e3593167f@bootlin.com
Headers show
Series Improvements around BB_PRESSURE_* variables | expand

Message

Antonin Godard April 11, 2025, 2:46 p.m. UTC
First patch makes the BB_PRESSURE_* variables not spam the log with
messages by default, unless -D is passed on the command line.

Second patch improves the documentation for these variables. The current
default value is really low and 15000 seems like a better default, at
least from my tests, it prevents too many tasks from being executed in
parallel.

Mention that these variables should be tweaked depending on the need.

This is a first step to providing better information on how to control
the resources used by bitbake. Later, this information could be reused
in a more general guide on how to do so - in fact, setting BB_PRESSURE_*
variables only do not impact how many threads a single task can use
(that would be done with PARALLEL_MAKE, probably).

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
Antonin Godard (2):
      runqueue: decrease the verbosity of pressure messages
      doc: bitbake-user-manual-ref-variables: improve BB_PRESSURE_* doc

 .../bitbake-user-manual-ref-variables.rst          | 37 +++++++++++++++++++---
 lib/bb/runqueue.py                                 |  2 +-
 2 files changed, 33 insertions(+), 6 deletions(-)
---
base-commit: 874c607f475f3d60677d2720b80a28d0c2e963c6
change-id: 20250411-bb-pressure-improvements-51d9c5881fc1

Best regards,
--
Antonin Godard <antonin.godard@bootlin.com>