From owner-freebsd-current Wed Nov 27 13:34:44 2002 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 3A9B837B401 for ; Wed, 27 Nov 2002 13:34:43 -0800 (PST) Received: from tesla.distributel.net (nat.MTL.distributel.NET [66.38.181.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89C8E43EB2 for ; Wed, 27 Nov 2002 13:34:42 -0800 (PST) (envelope-from bmilekic@unixdaemons.com) Received: (from bmilekic@localhost) by tesla.distributel.net (8.11.6/8.11.6) id gARLXMw80396; Wed, 27 Nov 2002 16:33:22 -0500 (EST) (envelope-from bmilekic@unixdaemons.com) Date: Wed, 27 Nov 2002 16:33:22 -0500 From: Bosko Milekic To: Julian Elischer Cc: current@FreeBSD.org Subject: Re: mbuf header bloat ? Message-ID: <20021127163322.A80366@unixdaemons.com> References: <20021127153543.A80168@unixdaemons.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from julian@elischer.org on Wed, Nov 27, 2002 at 12:51:27PM -0800 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Nov 27, 2002 at 12:51:27PM -0800, Julian Elischer wrote: > true.. if it has a 'size' argument it would do what I was thinkng > about.. We actually do have that in the new m_getm(). If you do a m_getm() it allows you to specify 'size' and it will allocate a packet header mbuf for you with external storage and may even allocate more than one and chain them together for you in one shot and without dropping the per-CPU cache lock, if it can get away with it. It does a 'best' fit allocation so you effectively have your 'small,' 'big,' and 'real big' scenario. -- Bosko Milekic * bmilekic@unixdaemons.com * bmilekic@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message