From owner-freebsd-current Wed Nov 27 13:40:18 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 3742A37B406 for ; Wed, 27 Nov 2002 13:40:15 -0800 (PST) Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id D252F43F06 for ; Wed, 27 Nov 2002 13:40:08 -0800 (PST) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by rwcrmhc51.attbi.com (rwcrmhc51) with ESMTP id <20021127214007051008lu8ee>; Wed, 27 Nov 2002 21:40:07 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id NAA63611; Wed, 27 Nov 2002 13:38:32 -0800 (PST) Date: Wed, 27 Nov 2002 13:38:31 -0800 (PST) From: Julian Elischer To: Bosko Milekic Cc: current@FreeBSD.org Subject: Re: mbuf header bloat ? In-Reply-To: <20021127163322.A80366@unixdaemons.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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, 27 Nov 2002, Bosko Milekic wrote: > > 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. cool I hadn't noticed that.. > > -- > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message