Messages in this thread | | | Date | Fri, 15 Aug 2003 23:50:05 +0200 | From | Manfred Spraul <> | Subject | Re: [BUG] slab debug vs. L1 alignement |
| |
Ben wrote:
>Currently, when enabling slab debugging, we lose the property of >having the objects aligned on a cache line size. > > Correct. 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.
Have you looked at pci_pool_{create,alloc,free,destroy}? The functions were specifically written to provide aligned buffers for DMA operations. Perhaps SCSI should use them?
-- Manfred
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |