MEDIUM: sched: change scheduler budgets to lower TL_BULK

Having less yielding tasks in TL_BULK and more in TL_NORMAL, we need
to rebalance these queues' priorities. Tests have shown that raising
TL_NORMAL to 40% and lowering TL_BULK to 3% seems to give about the
best tradeoffs.
This commit is contained in:
Willy Tarreau 2026-03-21 16:45:13 +00:00 committed by Willy Tarreau
parent 282b9b7d16
commit ed6a4bc807

View File

@ -730,8 +730,8 @@ void process_runnable_tasks()
struct task *t;
const unsigned int default_weights[TL_CLASSES] = {
[TL_URGENT] = 64, // ~50% of CPU bandwidth for I/O
[TL_NORMAL] = 48, // ~37% of CPU bandwidth for tasks
[TL_BULK] = 16, // ~13% of CPU bandwidth for self-wakers
[TL_NORMAL] = 60, // ~47% of CPU bandwidth for tasks
[TL_BULK] = 4, // ~3% of CPU bandwidth for self-wakers
[TL_HEAVY] = 1, // never more than 1 heavy task at once
};
unsigned int max[TL_CLASSES]; // max to be run per class