This moves the malloc(M_WAITOK) out of the kqueue token for most of the time. This significantly reduces the kqueue token contention when TCP connect rate is @395Kconns/s on connect side: contention rate dropped from ~150K/s to ~50K/s.
1010d4c kqueue: Add simple per-cpu cache for the knote
sys/kern/kern_event.c | 36 +++++++++++++++++++++++++++++++++++-
1 file changed, 35 insertions(+), 1 deletion(-)
Upstream: gitweb.dragonflybsd.org