Hi Steve,
Interestingly in the process of doing some unrealted research we found
that LRU replacement w/o checking for invalidated block was making a
fairly substantial difference in some single threaded benchmarks
(Sheng is a student I co-advise).  We've been running SPEC 2006 on a
single processor (system emulation mode) w/ a 8MB L2, and there are a
handful of benchmarks where the miss rate is 10-15% higher than
choosing invalidated blocks over LRU.  I assume that the total memory
footprint relative the cache size must mean that the cache isn't
getting fully warmed up but we haven't fully debugged it yet (not sure
what this says about SPEC 2006...).

Assuming our results aren't due to some other bugs this probably
should be incorporated in the default cache replacement policy as most
real systems would select invalid blocks before LRU (especially in the
presence of coherence invalidations).  If you want we can feed back a
patch for the cache replace policy code once we are satisfied there
aren't any other bugs floating in our code.
Paul


On Mon, Mar 8, 2010 at 11:16 PM, Steve Reinhardt <[email protected]> wrote:
> I don't think you're missing anything... it doesn't appear that the
> replacement algorithm does anything special for invalidated blocks.
> Of course, once the cache is warmed up, blocks will be invalidated
> only due to coherence action, so there would have to be a lot of data
> sharing for these blocks to cause a significant impact.
>
> Steve
>
> On Mon, Mar 8, 2010 at 7:41 PM, sheng qiu <[email protected]> wrote:
>> hi all,
>>
>> i see the M5's cache replace policy of LRU, it seems that it will always
>> choose from the tail of the LRU list and if it's valid block then refresh
>> the relevant stats parameters? but i have a doubt that most modern systems
>> will consider the invalid blocks when looking for blocks for allocating. if
>> there're no invalid blocks then go to the LRU list and choose from the tail.
>> Is M5 violating this mechanism? or I miss something?
>>
>> Thanks,
>> Sheng
>>
>>
>>
>> _______________________________________________
>> m5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>>
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>



-- 
-----------------------------------------
Paul V. Gratz
Assistant Professor
ECE Dept, Texas A&M University
Office: 333D WERC
Phone: 979-488-4551
http://www.gratz1.com/pgratz
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to