From owner-freebsd-arch Wed Jan 22 20:57:19 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41CEF37B401 for ; Wed, 22 Jan 2003 20:57:18 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EFEE43F13 for ; Wed, 22 Jan 2003 20:57:17 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.6/8.12.3) with ESMTP id h0N4v91e097199; Wed, 22 Jan 2003 21:57:09 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Wed, 22 Jan 2003 21:56:36 -0700 (MST) Message-Id: <20030122.215636.84354016.imp@bsdimp.com> To: gallatin@cs.duke.edu Cc: arch@FreeBSD.ORG Subject: Re: M_ flags summary. From: "M. Warner Losh" In-Reply-To: <15919.4208.394911.712558@grasshopper.cs.duke.edu> References: <0aef01c2c23d$0f1ae690$52557f42@errno.com> <20030122155457.A77036@unixdaemons.com> <15919.4208.394911.712558@grasshopper.cs.duke.edu> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <15919.4208.394911.712558@grasshopper.cs.duke.edu> Andrew Gallatin writes: : if (!(flags & M_NOWAIT)) { : WITNESS_SLEEP(1, NULL); : } : : at the top of malloc, and at the top of all entry points to the mbuf : allocator. Eg, before the system has a chance to pull the allocation : off of some cache which will succeed 99.5% of the time, except when : the system is under memory pressure. : : Sorry for dragging this in another direction.. I think we should do this reguardless of what the outcome of M_ flags is. This is an excellent solution. It might even be good to do this NOW and use the results as evidence towards or against the change as it is in CVS and any proposed solution. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message