lkml.org 
[lkml]   [2003]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.055 / U:0.516 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site