Willy Tarreau b3a84800b4 MINOR: task: maintain a per-thread indicator of the peak run-queue size
The new field th_ctx->rq_tot_peak contains the computed peak run queue
length averaged over the last 512 calls. This is computed when entering
process_runnable_tasks. It will not take into account new tasks that are
created or woken up during this round nor those which are evicted, which
is the reason why we're using a peak measurement to increase chances to
observe transient high values. Tests have shown that 512 samples are good
to provide a relatively smooth average measurement while still fading
away in a matter of milliseconds at high loads. Since this value is
only updated once per round, it cannot be used as a statistic and
shouldn't be exposed, it's only for internal use (self-regulation).
2026-03-19 16:24:31 +01:00
..
2023-08-01 10:49:06 +02:00
2024-05-16 10:31:17 +02:00
2024-11-29 07:22:32 +01:00
2025-04-30 17:00:27 +02:00
2024-12-10 16:04:11 +01:00
2025-10-22 11:11:20 +02:00
2022-11-29 15:14:39 +01:00
2024-07-12 15:27:04 +02:00
2024-08-07 15:40:52 +02:00
2025-11-26 16:12:45 +01:00