]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: listeners: use tasklets for the multi-queue rings
authorWilly Tarreau <w@1wt.eu>
Tue, 24 Sep 2019 04:55:18 +0000 (06:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 24 Sep 2019 04:57:32 +0000 (06:57 +0200)
commit2bd65a781e257a30fcd447ba278f04d08e4c2b94
treed66d167dec8c75d3bfa2d6e33d602952e341ea7c
parent538aa7168fca1adf2ecd0aa4a47e6b8856275f55
OPTIM: listeners: use tasklets for the multi-queue rings

Now that we can wake up a remote thread's tasklet, it's way more
interesting to use a tasklet than a task in the accept queue, as it
will avoid passing through all the scheduler. Just doing this increases
the accept rate by about 4%, overall recovering the slight loss
introduced by the tasklet change. In addition it makes sure that
even a heavily loaded scheduler (e.g. many very fast checks) will
not delay a connection accept.
include/types/listener.h
src/listener.c