From owner-freebsd-current@FreeBSD.ORG Sun Mar 28 15:47:14 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3666F16A4CE for ; Sun, 28 Mar 2004 15:47:14 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5A2243D1D for ; Sun, 28 Mar 2004 15:47:13 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.10/8.12.10) with ESMTP id i2SNirxC035686 for ; Sun, 28 Mar 2004 18:44:53 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i2SNiqSB035683 for ; Sun, 28 Mar 2004 18:44:52 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Sun, 28 Mar 2004 18:44:52 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: current@FreeBSD.org In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: HEADS UP: debug.mpsafenet behavior changing! (turn it off) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2004 23:47:14 -0000 On Mon, 22 Mar 2004, Robert Watson wrote: > This is an advance HEADS UP. This is a reminder e-mail! If you have debug.mpsafenet turned on, please turn of off for the next few weeks. I'll send out e-mails as things move along. I just merged the semantic change to debug.mpsafenet to cover the entire stack, and will now start pushing Giant into socket-related system calls. However, I won't be adding most of the new locking until we've done a review pass on arch@ next week. Thanks! (remainder of my original post below). > Over the next two weeks, I'm going to start merging more significant > parts of the network locking patches. The first change is that the > definition of debug.mpsafenet is going to chang. Up until now, this > tunable has meant: > > If set, don't hold Giant over the lower levels of the network stack and > IP forwarding path. If unset, Giant is held over the lower level parts > of the stack. > > This provided substantial performance benefits on SMP and UP for > forwarding and filtering, but not for locally sourced or sinked network > traffic (as it didn't release Giant higher in the stack). As we push > Giant off the higher levels of the stack, we will be changing how > debug.mpsafenet works. Here's the new definition: > > If set, don't hold Giant over any of the network stack, including the > sockets layer. If unset, Giant is held over all parts of the network > stack. > > It's likely few people are running with debug.mpsafenet; however, if you > are, this is your warning that you'll probably want to stop running with > it shortly. With this change, we will be migrating to a dual-mode stack, > in which you can either run the whole thing with Giant, or none of it. > This approach is substantially easier to implement than a mixed mode > stack, in which some pieces are covered with Giant running side by side > with other pieces that are not. During the migration period to > fine-grained locking (as patches are merged, etc), it will likely be a > very bad idea to run with this tunable set, so turn it off now! > debug.mpsafenet will continue to exist for the forseeable future in some > form, as it will allow non-MPSAFE network stack components to continue to > function, at the cost of performance. > > In the next few days, I will be posting pretty large patchsets to arch@ > and requesting review and testing. I'll commit a note to UPDATING with > similar but abbreviated content. > > Robert N M Watson FreeBSD Core Team, TrustedBSD Projects > robert@fledge.watson.org Senior Research Scientist, McAfee Research > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >