chgsbsize: Optimize for x86_64 by avoid uidinfo spinlock
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 10 Mar 2014 08:38:15 +0000 (16:38 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 10 Mar 2014 08:45:31 +0000 (16:45 +0800)
commit119a387fa23de9109d95157e0f22ff22fa19c7c2
tree2d9eac9ded3fde7ab98af00d17d762a73d97a84e
parent5c9ef4cfd8dfbaa19d5483a53d1236571e79a3e2
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).
sys/kern/kern_resource.c