Re: vmalloc_32 and SLAB incompatible in 2.6.23.9

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Loïc Grenié <loic.grenie@...>
Cc: <linux-kernel@...>
Date: Wednesday, January 23, 2008 - 5:35 am

"Loïc Grenié" <loic.grenie@gmail.com> writes:


I don't think it would really work for slub either.

If you look at /proc/slabinfo you see that there are separate DMA
caches. That is because sl[abo]b all cache objects and if the 
objects have different requirements (like GFP_DMA, GFP_DMA32, GFP_KERNEL)
they would need different caches. Otherwise you risk getting
later objects originally allocated with the wrong flags.

To make GFP_DMA32 work would require adding another set of DMA32
caches to all kmalloc caches etc or a separate one for each
custom kmem cache that you use that only gets _DMA32 objects.

Better just use __get_free_pages() directly. 

-Andi
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
vmalloc_32 and SLAB incompatible in 2.6.23.9, Loïc Grenié, (Wed Jan 23, 5:14 am)
Re: vmalloc_32 and SLAB incompatible in 2.6.23.9, Andi Kleen, (Wed Jan 23, 5:35 am)
Re: vmalloc_32 and SLAB incompatible in 2.6.23.9, Loïc Grenié, (Wed Jan 23, 6:04 am)
Re: vmalloc_32 and SLAB incompatible in 2.6.23.9, Andi Kleen, (Wed Jan 23, 6:43 am)