Re: L1/L2 Cache Coloring from Userland ?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 17 Sep 1997 22:32:53 +0100 (BST)


> Is there any way for a program to control or find out to which L1/L2 cache
> lines/regions certain areas of memory are mapped ? Take the following
> example:

..

You can work out PC L1 cache easily enough as its indexed only on the lines
below the page boundary (so you can do cache lookup in parallel with translate)

L2 is tricker. Allocating a single contiguous block doesnt even help you as it
may not be physically contiguous