:If I remember correctly from reading a thesis (can't remember its
:author) on the page coloring which I believe widely introduced this
:concept, page coloring adds a lot of efficiency to the directly
:mapped caches but even for the 2-way caches is nearly pointless.
:
:-SB
For the most part, yes. 2-way set associative caches handle standard
compiled programs reasonably well. 4-way set associative
caches handle standard interpreted programs reasonably well.
Page-coloring helps keep things consistent between program runs
but typically has very little effect on machines which already have
set-associative caches. The main thing is the consistency - for
example, if you have a medium-sized buffer in memory which you are
accessing randomly, page coloring will prevent degenerate cache cases that
can occur in cases where the VM system (without coloring) happens to
assign the same cache page to every page of the buffer. But you wouldn't
notice unless your buffer had more then N pages (N = set associativity).
For the same reason, 'random' also works fairly well (just in a less
consistent way), which is why page coloring doesn't add much when doing
a performance comparison on a system with a 2-way or better associative
cache.
-Matt
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message