MINOR: debug: add "debug dev trace" to flood with traces
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Mar 2024 06:16:08 +0000 (07:16 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Mar 2024 17:32:22 +0000 (17:32 +0000)
commit5df0df96dd53da7a8e86fc32afbb27650448e6ac
tree81c737557fb09050b56f6aca53b5aabd4edb5f41
parentdb1cd8f8819b59f599b6e5f407816db52c8e7ae6
MINOR: debug: add "debug dev trace" to flood with traces

This new command, enabled only with "DEBUG_DEV", sends 2 or 20 traces
per task wakeup (depending on the verbosity level), and stops after 1M
wakeups per thread in order not to have to stop/start the process each
time it's fired.

We have two small messages and 18 larger ones from 20 to 270 bytes
each, so that the average size is approx 213 bytes counting headers
(the header adds approx 82 bytes), which matches what's generally
observed on average when traces are enabled in all muxes.

Typical figures show varations between 5.7M and 6.2M msg/s on an EPYC
in a 3C6T setup (single CCX), and 2.12M - 2.22M in a 24C48T setup
(across 8 CCX, with 8 thread groups).
src/debug.c