]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: debug: add "debug dev sched" to stress the scheduler.
authorWilly Tarreau <w@1wt.eu>
Sun, 29 Nov 2020 16:12:15 +0000 (17:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 29 Nov 2020 16:43:07 +0000 (17:43 +0100)
commita5a447984900cff138e9f2c94afbcd10dbdb0d1a
tree23c46d69965f1fa6fab62faf1053f5947a726caa
parent1e237d037b3a45ec92d1dfa80dfd2c6bd7fc3af9
MINOR: debug: add "debug dev sched" to stress the scheduler.

This command supports starting a bunch of tasks or tasklets, either on the
current thread (mask=0), all (default), or any set, either single-threaded
or multi-threaded, and possibly auto-scheduled.

These tasks/tasklets will randomly pick another one to wake it up. The
tasks only do it 50% of the time while tasklets always wake two tasks up,
in order to achieve roughly 50% load (since the target might already be
woken up).
src/debug.c