On Fri, 2003-08-15 at 23:50, Manfred Spraul wrote:I don't want to upgrade SLAB_HWCACHE_ALIGN to SLAB_MUST_HWCACHE_ALIGN depending on GFP_DMA: IIRC one arch (ppc64?) marks everything as GFP_DMA, because all memory is DMA capable.
Ben wrote:
Currently, when enabling slab debugging, we lose the property ofCorrect. Cache line alignment is advisory. Slab debugging is not the only case that violates the alignment, for example 32-byte allocations are not padded to the 128 byte cache line size of the Pentium 4 cpus. I really doubt we want that.
having the objects aligned on a cache line size.
Yes, I understand that, but that is wrong for GFP_DMA imho. Also, SLAB_MUST_HWCACHE_ALIGN just disables redzoning, which is not smart,
I'd rather allocate more and keep both redzoning and cache alignement,
that would help catch some of those subtle problems when a chip DMA
engine plays funny tricks.