git: chgsbsize: Optimize for x86_64 by avoid uidinfo spinlock
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Mon Mar 10 01:46:35 PDT 2014
commit 119a387fa23de9109d95157e0f22ff22fa19c7c2
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Mon Mar 10 16:38:15 2014 +0800
chgsbsize: Optimize for x86_64 by avoid uidinfo spinlock
This kills one of the highly contended spinlocks on accept(2) path. And
it also greatly helps connect(2) path.
With this commit, tools/kq_connect_client could do 273Kconns/s instead
of 260Kconns/s (~5% improvement, however, connect(2) is still cpu bound).
Summary of changes:
sys/kern/kern_resource.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/119a387fa23de9109d95157e0f22ff22fa19c7c2
--
DragonFly BSD source repository
More information about the Commits
mailing list