Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)

From: Robert Watson <rwatson_at_FreeBSD.org>
Date: Sat, 6 May 2006 15:20:52 +0100 (BST)
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
Received on Sat May 06 2006 - 12:20:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:55 UTC