]> git.kaiwu.me - haproxy.git/commit
MINOR: task: set execution context on task/tasklet calls
authorWilly Tarreau <w@1wt.eu>
Wed, 11 Mar 2026 08:33:28 +0000 (09:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2026 17:06:38 +0000 (18:06 +0100)
commitc0bf395cdee1fd11e9246a410dd39621bb5c0685
tree5e7a4d961ef6fe191567bfe2950592dc825c3f84
parentec7b07b65045a0f1a8e7ca735d29562e79bfb1c6
MINOR: task: set execution context on task/tasklet calls

It now appears almost everywhere due to callbacks (e.g. ssl_sock_io_cb).
Muxes also become visible now on memory profiling. A small test on h1+ssl
yields 838 lines of statistics. The number of buckets should definitely
be increased, and more grouping criteria should be added.

A performance test was conducted to observe the possible effect of
setting the execution context on each task switch, and it didn't change
at all, remaining at about 1.01 billion ctxsw/s on a 128-thread EPYC.
include/haproxy/tinfo-t.h
src/task.c
src/tools.c