From owner-freebsd-hackers Mon Nov 9 12:27:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA17408 for freebsd-hackers-outgoing; Mon, 9 Nov 1998 12:27:32 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA17403 for ; Mon, 9 Nov 1998 12:27:31 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id MAA29584; Mon, 9 Nov 1998 12:18:42 -0800 (PST) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpdE29582; Mon Nov 9 20:18:39 1998 Date: Mon, 9 Nov 1998 12:18:07 -0800 (PST) From: Julian Elischer To: "Larry S. Lile" cc: David Greenman , hackers@FreeBSD.ORG Subject: Re: mbuf question In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG you can allocate a pool of buffers and attach them to the mbufs using th eexternal pointer feature, and supply your own free and duplicate functions. I have done this under BSD since 1990 works like a charm.. (In my case the buffers were on the ethernet cards (2MB on each card)) julian On Mon, 9 Nov 1998, Larry S. Lile wrote: > > > On Mon, 9 Nov 1998, David Greenman wrote: > > > >Are mbufs allocated below the 16M area? > > > > > >If they are, is it likely to change? > > > > > >Why? Because I am trying to eliminate bcopy's and mallocs in my > > >token-ring driver to gain a little more performance. > > > > They're allocated throughout the machine's physical address space. > > I was afraid of that, so I should just make new buffers and copy when > I need DMA'able memory. Otherwise I can just use the mbuf's directly. > > Thanks! > > Larry Lile > lile@stdio.com > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message