Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 May 2006 15:20:52 +0100 (BST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        current@FreeBSD.org
Cc:        performance@FreeBSD.org
Subject:   Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)
Message-ID:  <20060506152016.I17611@fledge.watson.org>
In-Reply-To: <20060506150622.C17611@fledge.watson.org>
References:  <20060506150622.C17611@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sat, 6 May 2006, Robert Watson wrote:

> Attached, please find a patch implementing more fine-grained locking for the 
> POSIX local socket subsystem (UNIX domain socket subsystem).  In the current 
> implementation, we use a single global subsystem lock to protect all local 
> IPC over the PF_LOCAL socket type.  This has low overhead, but can result in 
> significant contention, especially for workloads like MySQL which push a 
> great deal of data through UNIX domain sockets, and involve many parties. 
> The hope is that by improving granularity, we can reduce contention 
> sufficiently to overcome the added cost of increased locking overhead (a 
> side-effect of greater granularity).  At a high level, here are the changes 
> made:

FYI, you can download a copy unmangled by my and your mail systems at the 
following URL:

   http://www.watson.org/~robert/freebsd/netperf/20060506a-uds-fine-grain.diff

Robert N M Watson



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