Cache color is how many indexes there are into a cache. Caches
typically aren't direct mapped: they are indexed into cache lines by a
hash. This means that certain memory values (of the 2^32 on your PC)
will map to the same cache line. This means only one can be there at
the same time, and the newer one throws the old one out.
Coloring of data structures is down to give random offsets to data such
that they are not are multiples of the some value and thus don't map to
the same cache line. This is what Linux's slab allocator is meant to
do.
Robert Love
-
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/