Thanks for your replies, I am able to change the cache replacement policy to
be used, in the ruby model.
For the examples provided with the simulator, the policy to be used can be
defined in the configuration file for example
configs/ruby/MOESI_CMP_directory.py
Under the L1 or L2 definition only the latency is set, it is possible to
set the replacement policy, for example you can use:
replacement_policy = Param.String("LRU", "")
The default policy is PSEUDO_LRU.
Best Regards
Roberto
On Wed, Nov 21, 2012 at 8:17 AM, Nilay Vaish <[email protected]> wrote:
> On Mon, 19 Nov 2012, Roberto Rodríguez-Rodríguez wrote:
>
> Hi, I have problems changing the replacement policy to be used by the
>> simulator. I just want to change the LLC policy.
>>
>> I saw the options for se.py: "./build/X86/gem5.opt configs/example/se.py
>> -h" but there is not an option for the replacement policy, there are
>>
>
> Providing option for every single attribute that can be configured does
> not appear to be a scalable approach.
>
>
> options for the cache size and assoc. Also the files CacheConfig.py and
>> Caches.py used by se.py have not defined the replacement policy to be
>> used.
>>
>> I have tried looking for "repl" and "replacement" using grep through the
>> entire gem_stable tree, after analyzing the results I found many examples
>> where repl is set to NULL.
>>
>
> Did you try to figure what happens in case repl is set to NULL?
>
>
>
>> I just want to know how to change the replacement policy from LRU to
>> fa_lru, both of them defined in src/mem/cache/tags/. I really appreciate
>> your help.
>>
>>
>
> If you read the documentation provided on the following webpage, I think
> you would be able to gather how parameters for different simulation objects
> (CPUs, caches, interconnect) can be set.
>
> http://www.gem5.org/**Simulation_Scripts_Explained<http://www.gem5.org/Simulation_Scripts_Explained>
>
> --
> Nilay
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users