Christina, Some more info on your request:
We have implemented hooks for replacement policies in components/Cache/NewCacheArray.*pp The replacement policy is passed as a parameter when instantiating a cache controller at components/Cache/CacheController.hpp. We didn't make the parameter externally visible, so you cannot set it through user-postload.simics. You can either implement your policies and instantiate the controller with the appropriate parameter, or make the replacement policy an external parameter that you can set through user-postload.simics (it is quite easy to do so). Regards, --nikos Nikos Hardavellas Carnegie Mellon - Computer Science Department 5000 Forbes Ave, Pittsburgh, PA 15213, USA +1 (412) 268-9611 ECE - Hamerschlag Hall A312 http://www.cs.cmu.edu/~hardav hardavellas at cmu.edu -----Original Message----- From: simflex-bounces at ece.cmu.edu [mailto:simflex-bounces at ece.cmu.edu] On Behalf Of Stephen Somogyi Sent: Wednesday, July 08, 2009 10:43 PM To: SimFlex software support Subject: Re: [Simflex] run_job script interrupt Christina, The configuration.out file generated from a particular simulator will match exactly all the parameters available for that simulator. Given you are seeing a discrepancy with the replacement policy, I would guess that one of your simulators is a CMP and the other one is not. If the parameter exists, you can definitely set it through the user-postload.simics file. As for the replacement policy, do you want to modify the policy, or do you just want to get your simulator working? In general, only the LRU policy is thoroughly tested. That said, if you wish to develop your own replacement policy, I would recommend that you start with looking at the hooks that currently exist in the code. Cheers, Stephen On Wed, 8 Jul 2009, Christina Delimitrou wrote: > Dear Stephen, > > Thanks for your reply. > > I have created the user-preload and user-postload scripts in > /specs/baseline_mine/ to create a different configuration for Simflex. > However, having copied the configuration.out from another simulation to > create the user-postload.simics I saw that there is no parameter there for > the replacement policy of the L2 (since there is no such parameter in the > initialize of the L2 either). How can I define a specific replacement > policy? Can it be done through user-postload with an additional line or > should I do it somehow differently? > > Thanks for your time, > > Christina > > 2009/7/2 Stephen Somogyi <ssomogyi at ece.cmu.edu> > > > Christina, > > > > The run_job script applies a user-defined configuration after the global > > and job-specific configuration settings have been made. The location of > > these user configurations is specified by the 'userspecdir' variable > > (typically set in the global.run_job.rc.tcl file). > > > > Within this user-spec directory, you need subdirectories for each > > configuration you wish to use. By default, the script assumes an > > 'interactive' configuration. You can control which configuration to use > > with the '-cfg' parameter of run_job. > > > > Finally, within each configuration subdirectory, you need two files: > > user-preload.simics and user-postload.simics. You can start with empty > > files, then add commands (to user-postload) later as you adjust Flexus > > parameters. > > > > If you have not changed the default settings, the script is dying because > > it expects to find ~/specs/interactive/user-postload.simics. Once you > > create this file (and the -preload), Flexus should start up correctly. > > > > Stephen > > > > > > On Mon, 29 Jun 2009, Christina Delimitrou wrote: > > > > > Hello! > > > > > > I am trying to run the run_job script for a multithreaded workload > > > (specifically apache_16cpu_40cl2) and get a script interrupt with a > > message > > > : > > > "Argument Error: argument 1 (user-preload.simics) given to > > > 'run-command-file' has the wrong type;an existing file (in the Simics > > search > > > path) expected". > > > I noticed that there is a folder for global_job_specs but no folder for > > > user_job_specs. Is it a file that I should create, and what configuration > > > should it include? > > > > > > Thank you for your time, > > > Christina > > > > > > -- > > > Undergraduate Student > > > Electrical and Computer Engineering Department > > > National Technical University of Athens > > > Computer Systems Lab > > > +30 210 6513839, +30 6947424452 > > > http://users.ntua.gr/el04019/Homepage/Home.html > > > > > _______________________________________________ > > SimFlex mailing list > > SimFlex at ece.cmu.edu > > https://sos.ece.cmu.edu/mailman/listinfo/simflex > > SimFlex web page: http://www.ece.cmu.edu/~simflex<http://www.ece.cmu.edu/%7Esimflex> > > > > > > -- > Undergraduate Student > Electrical and Computer Engineering Department > National Technical University of Athens > Computer Systems Lab > +30 210 6513839, +30 6947424452 > http://users.ntua.gr/el04019/Homepage/Home.html > _______________________________________________ SimFlex mailing list SimFlex at ece.cmu.edu https://sos.ece.cmu.edu/mailman/listinfo/simflex SimFlex web page: http://www.ece.cmu.edu/~simflex
