git: kqueue: Add simple per-cpu cache for the knote
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Fri Mar 4 08:11:22 PST 2016
commit 1010d4c0d99645b70b06e518d009832ba33e267a
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Sat Mar 5 00:06:43 2016 +0800
kqueue: Add simple per-cpu cache for the knote
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.
Summary of changes:
sys/kern/kern_event.c | 36 +++++++++++++++++++++++++++++++++++-
1 file changed, 35 insertions(+), 1 deletion(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1010d4c0d99645b70b06e518d009832ba33e267a
--
DragonFly BSD source repository
More information about the Commits
mailing list