From ed6a4bc807335ec12a90c72464410867614126ea Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sat, 21 Mar 2026 16:45:13 +0000 Subject: [PATCH] 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. --- src/task.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/task.c b/src/task.c index 7d0a1db9c..552a0df25 100644 --- a/src/task.c +++ b/src/task.c @@ -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