From owner-freebsd-smp Mon Dec 4 17:11:42 2000 From owner-freebsd-smp@FreeBSD.ORG Mon Dec 4 17:11:39 2000 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (Postfix) with ESMTP id CE10C37B401; Mon, 4 Dec 2000 17:11:38 -0800 (PST) Received: (from daemon@localhost) by smtp03.primenet.com (8.9.3/8.9.3) id SAA01652; Mon, 4 Dec 2000 18:09:24 -0700 (MST) Received: from usr02.primenet.com(206.165.6.202) via SMTP by smtp03.primenet.com, id smtpdAAAg7aqid; Mon Dec 4 18:09:13 2000 Received: (from tlambert@localhost) by usr02.primenet.com (8.8.5/8.8.5) id SAA16418; Mon, 4 Dec 2000 18:11:23 -0700 (MST) From: Terry Lambert Message-Id: <200012050111.SAA16418@usr02.primenet.com> Subject: Re: Netgraph and SMP To: jlemon@flugsvamp.com (Jonathan Lemon) Date: Tue, 5 Dec 2000 01:11:23 +0000 (GMT) Cc: jhb@FreeBSD.ORG, smp@FreeBSD.ORG In-Reply-To: <200012042348.eB4NmeA73673@prism.flugsvamp.com> from "Jonathan Lemon" at Dec 04, 2000 05:48:40 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: tlambert@usr02.primenet.com Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > >> As for the actual availibility of SIX-style locks; I'm fairly sure you > >> can do this with the lockmgr. > > > >Yes. See the allproc_lock as an example. > > Let's get realistic here. We're not going to get a shared lockmgr > lock for every stinking packet that comes into the network. While > SIX locks (or semaphore, or shared reader/writer) is nice in theory, > I think the performance impact is too much for this particular case. We did 20,000 transactions a second on a P60 with a SIX mode lock manager, back in 1994. Performance is not that big a problem. On the other hand, grabbing it for every packet is not really a great idea. 8-/. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message