Arrvindh,
Your coherence protocol should be using one of the CacheMemory classes
in ruby/system/. You should check your protocol cache controller file to
determine which class you are using. For example, MOSI_SMP_bcast uses
the CacheMemory object (ruby/system/CacheMemory.h) since it defines its
caches in the MOSI_SMP_bcast-cache.sm file as:
CacheMemory L2cacheMemory ...
To modify the default replacement algorithm, you should change some
functions in the correct CacheMemory class definition (e.g.,
cacheProbe(), setMRU(), allocate()), or you can define your own
CacheMemory class and use it.
-Alaa
arrvindh shriraman wrote:
Hi,
How can I change the default cache block replacement policy ?
Are there any fixed policies provided in Ruby. I am assuming current
policy is pseudo-LRU. I want to assign higher priority to some lines for
eg: Lines in 'M' get higher priority than OESI.
Thanks
Arrvindh Shriraman
Conputer Science Department
University of Rochester
|