Updated fine-grain locking patch for UNIX domain sockets
davidxu at freebsd.org
Mon Jul 3 00:37:26 UTC 2006
On Friday 30 June 2006 07:14, Robert Watson wrote:
> Attached, and at the below URL, find an updated copy of the UNIX domain
> socket fine-grained locking patch. Since the last revision, I've updated
> the patch to close several race conditions historically present in UNIX
> domain sockets (which should be merged regardless of the rest of the
> patch), as well as move to an rwlock for the global lock.
> This patch increases locking overhead, but decreases contention. Depending
> on the number of CPUs, it may improve (or not) performance to varying
> degrees; very good reports on sun4v; middling reports on 2-proc, etc.
> Stability and performance results for UNIX domain socket sensitive
> workloads, such as MySQL, X11, etc, would be appreciated. Micro-benchmark
> performance should show a small loss, but load under contention and
> scalability are (ideally) improved.
> Robert N M Watson
> Computer Laboratory
> University of Cambridge
I found 5% performance decrease on dual P4, maybe P4 is quite bad when
doing atomic operation. ;-)
More information about the freebsd-performance