Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 May 2006 08:35:11 +0100 (BST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        performance@FreeBSD.org, current@FreeBSD.org
Subject:   Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)
Message-ID:  <20060508083359.I17611@fledge.watson.org>
In-Reply-To: <20060508065207.GA20386@xor.obsecurity.org>
References:  <20060506150622.C17611@fledge.watson.org> <20060506221908.GB51268@xor.obsecurity.org> <20060507210426.GA4422@xor.obsecurity.org> <20060507214153.GA5275@xor.obsecurity.org> <20060507230430.GA6872@xor.obsecurity.org> <20060508065207.GA20386@xor.obsecurity.org>

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

On Mon, 8 May 2006, Kris Kennaway wrote:

> unp contention has risen a bit.  The other big gain is to sleep mtxpool 
> contention, which roughly doubled:

In the general case, you can increase the size of the mutex pool.  However, 
since this is per-uid for the socket buffer resource limits, that won't help 
you as the same user will always contend with itself.  We'll need to think 
about this some -- good activity for the plane today :-).

Nice work so far, btw.  Sounds like we're making real headway!

Robert N M Watson

>
> /*
> * Change the total socket buffer size a user has used.
> */
> int
> chgsbsize(uip, hiwat, to, max)
>        struct  uidinfo *uip;
>        u_int  *hiwat;
>        u_int   to;
>        rlim_t  max;
> {
>        rlim_t new;
>
>        UIDINFO_LOCK(uip);
>
> So the next question is how can that be optimized?
>
> Kris



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