[ofa-general] Re: [ewg] [Patch mthca backport] Don't use kmalloc > 128k

Roland Dreier rdreier at cisco.com
Mon Jul 27 10:10:29 PDT 2009


 > > And I don't think the upstream kernel has that limit on kmalloc size
 > > either (at least with SLUB, not sure about SLAB).
 > 
 > This patch was actually written as an emulation of the upstream SLUB
 > behavior, which is exactly the same thing: on large allocations
 > forward to __g_f_p().  See include/linux/slub_def.h's definition of
 > kmalloc_large and kmalloc.

Right.  But does upstream SLAB also pass through to the page allocator
the same as SLUB?  How about SLQB?

 - R.



More information about the ewg mailing list