]> Sergey Matveev's repositories - public-inbox.git/commit
wqworker: favor level-triggered epoll for fairness
authorEric Wong <e@80x24.org>
Sat, 16 Oct 2021 09:29:50 +0000 (09:29 +0000)
committerEric Wong <e@80x24.org>
Sat, 16 Oct 2021 10:37:06 +0000 (10:37 +0000)
commitaa0102f777d0155fa098b1e79eb9f4e8d1769279
tree9c09149f00997be62ae66c6f6174f8f76f8ed191
parent9ee1798e270f44c94bd13ca8becbac393535005b
wqworker: favor level-triggered epoll for fairness

Sigfd->event_step needs priority over WQWorkers (and everything
else).  Do that by running once per event_loop iteration rather
than looping inside event_step.  This lowers throughput since it
requires more syscalls, but that's the price of fairness.
lib/PublicInbox/WQWorker.pm