Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Nov 1998 12:18:07 -0800 (PST)
From:      Julian Elischer <julian@whistle.com>
To:        "Larry S. Lile" <lile@stdio.com>
Cc:        David Greenman <dg@root.com>, hackers@FreeBSD.ORG
Subject:   Re: mbuf question 
Message-ID:  <Pine.BSF.3.95.981109121611.13494E-100000@current1.whistle.com>
In-Reply-To: <Pine.BSF.3.96.981109103125.26563D-100000@heathers.stdio.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.981109121611.13494E-100000>