m_getjcl for contiguous jumbo allocations

Kip Macy kip.macy at gmail.com
Sat Feb 2 21:54:17 PST 2008


On Feb 2, 2008 8:46 PM, Aaditya Rai <filesync at yahoo.com> wrote:
> Hello,
>
> I'm using release 6.2. I need to do allocations upto
> 8K which are physically contiguous.
>
> Is m_getjcl the right call for this?
>
> Also, if I use m_getjcl to do 4K allocations, after
> two or three allocations I start getting cluster/mbuf
> allocation failures; or weird memory corruptions. If I
> change it to use MGETCL etc. and do 2K allocations,
> the same code works fine.
>
> Is m_getjcl() stable in 6.2? Should I fall back on
> implementing my own little backend contig-allocator?

On 6.2 you'll have to fall back your own allocator if you are unable
to chain 4k jumbo frames.

In -CURRENT physically contiguous jumbo frames are the default. I'm
not sure if that made it in to 7.0.


 -Kip


More information about the freebsd-net mailing list