Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Dec 2004 04:25:22 +0000
From:      Darren Reed <darrenr@hub.freebsd.org>
To:        Giorgos Keramidas <keramida@linux.gr>
Cc:        Robert Watson <rwatson@hub.freebsd.org>
Subject:   Re: witness found wanting (was Re: LORs in ipfilter)
Message-ID:  <20041227042522.GC18879@hub.freebsd.org>
In-Reply-To: <20041226205333.GA2039@gothmog.gr>
References:  <20041226182240.GA20920@hub.freebsd.org> <20041226205333.GA2039@gothmog.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 26, 2004 at 10:53:33PM +0200, Giorgos Keramidas wrote:
> 
> Is this performance hit FreeBSD specific?  I saw in ip_compat.h that on
> __sgi systems mutexes are used instead of rwlocks.

When I first ported IPFilter to IRIX, their equivalent of sx locks did
not work in interrupt context (I think this was also true of lockmgr
locks in BSD, too.)  To work around this, I used mutexes instead.

The #ifdef maze in 3.4's ip_compat.h is delicate so I try not to mess
with it more than I have to, but later versions of IRIX do have a working
lock type of this nature and I use it where available.

In this case, "do not work" means "panic when attempted".

Darren



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