Hi,

You'll have to dig into the protocol code (src/mem/protocol/*.sm) to really
understand which parameter to change. You should trace through the
transitions and their respective latencies and configure your cache
correctly for your system.

In Ruby, latency comes from two sources. 1) You can add a delay when
enqueuing messages. This is what the parameters you listed in your email
do. You should use this for the "cache" latencies. 2) You can also add
delays to the network.

Jason

-----------
Jason Lowe-Power
Assistant Professor, Computer Science Department
University of California, Davis
3049 Kemper Hall
[email protected]


On Tue, Mar 20, 2018 at 7:51 AM li lan <[email protected]> wrote:

> Hi all,
>
> I'm doing simulations with the Ruby memory system and 
> MESI_Two_Level(MESI_CMP_directory) protocol. I want to set L1 Cache access 
> latency (for example 3 cycles)and L2 Cache access latency(15 cycles), but i 
> do not understand how to do that. Because there are three files containing 
> latencies.
>
> 1. src/mem/ruby/system/Sequencer.py:
>
>     # TODO: Latencies should be migrated into each top-level cache controller
>
>     70 icache_hit_latency = Param.Cycles(1, "Inst cache hit latency")
>
>     71 dcache_hit_latency = Param.Cycles(1, "Data cache hit latency")
>
>
>
> 2. src/mem/protocol/MESI_Two_Level-L1Cache.sm:
>
>     machine(MachineType:L1Cache, "MESI Directory L1 Cache CMP")
>
>     35 Cycles l1_request_latency := 2;
>
>     36 Cycles l1_response_latency := 2;
>
>     37 Cycles to_l2_latency := 1;
>
>
> 3. src/mem/protocol/MESI_Two_Level-L2Cache.sm:
>
>     machine(MachineType:L2Cache, "MESI Directory L2 Cache CMP")
>
>     31 Cycles l2_request_latency := 2;
>
>     32 Cycles l2_response_latency := 2;
>
>     33 Cycles to_l1_latency := 1;
>
> I wonder which latency stands for L1 Cache access latency and which one 
> stands for L2 Cache access latency?
>
>
> Thank you very much for your help!
>
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to