Re: "Colo[u]rs"

From: Chris Wedgwood (
Date: Mon Dec 10 2001 - 12:52:39 EST

On Mon, Dec 10, 2001 at 12:22:15PM +0000, wrote:

    Can you get colo[u]red memory from user-space? This would be really
    useful for certain memory intensive applications (I'm thinking of
    large FFT users like mprime/ARMprime here)

By colored I assume you mean such that the pages are allocated to
process in such a way as to increase the cache's effectiveness (using
as many colors as possible and potentially not having too many
instances of the same color in successive pages)?

If so, then under Linux this is presently not possible and probably
never will be. DaveM did some patches for this a while ago which is
of arguable use for things like sparc32 and MIPS, not sure about

SunOS and (I think) FreeBSD do take into account page coloring when
allocating memory though, I've told for some memory intensive MIPS
applications the performance difference can get as great as 15%, but
this is perhaps because of something else unique to MIPS (there are
ambiguities that mean only having one color present in the TLB for an
application at any one time solves).

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Dec 15 2001 - 21:00:18 EST