Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jul 2006 08:37:04 +0800
From:      David Xu <davidxu@freebsd.org>
To:        freebsd-performance@freebsd.org
Subject:   Re: Updated fine-grain locking patch for UNIX domain sockets
Message-ID:  <200607030837.04685.davidxu@freebsd.org>
In-Reply-To: <20060630001142.Y67344@fledge.watson.org>
References:  <20060630001142.Y67344@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.
>
>     
> http://www.watson.org/~robert/freebsd/netperf/20060630-uds-fine-grain.diff
>
> 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. ;-)
Thanks,

David Xu



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607030837.04685.davidxu>