Getting memory performance counters from memory_stats.csv file

136 views
Skip to first unread message

husi...@gmail.com

unread,
Oct 14, 2020, 3:28:00 AM10/14/20
to FireSim
Hi all,

I was recently managed to set our FireSim manager instance up and got to run simulations on FPGA. 
Currently I'm trying to figure out how to retrieve LLC request/miss counters for any simulations and I found that the file "memory_stats*.csv" is including a column "llc_misses" which is potentially what I need.

I modified the workload jsons like the following to get a copy of memory_stats*.csv file and ran the two example simulations, Gemmini and SHA3, predefined in current version.
{
    "benchmark_name": "gemmini-tests",
    "common_simulation_outputs": [ "uartlog", "memory_stats*.csv"],
    ......
}

However, in each workload result directory, memory_stats0.csv only contains one header line like:

brespError,llc_misses,llc_peakMSHRsUsed,llc_refills,llc_writebacks,rankPower_0_allPreCycles,rankPower_0_numACT,rankPower_0_numCASR,rankPower_0_numCASW,rankPower_1_allPreCycles,rankPower_1_numACT,rankPower_1_numCASR,rankPower_1_numCASW,rankPower_2_allPreCycles,rankPower_2_numACT,rankPower_2_numCASR,rankPower_2_numCASW,rankPower_3_allPreCycles,rankPower_3_numACT,rankPower_3_numCASR,rankPower_3_numCASW,readOutstandingHistogram_0,readOutstandingHistogram_1,readOutstandingHistogram_2,readOutstandingHistogram_3,readOutstandingHistogram_4,rrespError,totalReadBeats,totalReads,totalWriteBeats,totalWrites,writeOutstandingHistogram_0,writeOutstandingHistogram_1,writeOutstandingHistogram_2,writeOutstandingHistogram_3,writeOutstandingHistogram_4,

I wonder is there any switches that I need to turn on in order to enable these counters to record data for me?
I am terribly sorry if I missed any details in FireSim doc and any advices would be appreciated.

With best regards,
Siyi

Tim Snyder

unread,
Oct 14, 2020, 9:49:30 AM10/14/20
to fir...@googlegroups.com
Hi Siyi,

In your runtime_config.ini file passed to FireSim, what was the value of targetconfig.profileinterval?  It needs to be set to something other than -1 for you to actually get counter values collected.  The file is always populated with the header so that you can leave it in the workload.json file and not worry about whether it will exist (when common_simulation_outputs don't exist the firesim manager will error out)

https://docs.fires.im/en/latest/Advanced-Usage/Manager/Manager-Configuration-Files.html#profileinterval

Hope this helps.
-Tim

--
You received this message because you are subscribed to the Google Groups "FireSim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firesim+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firesim/24b49d74-eaf6-4cf6-ba20-b16d8711e9cdn%40googlegroups.com.

husi...@gmail.com

unread,
Oct 16, 2020, 3:04:59 AM10/16/20
to FireSim
Hi Tim,

Thank you very much for your advice. 
I tried changing profileinterval paramater from -1 to 10000 and it works fine now.

I am sorry for skipping the manager configuration part in FireSim doc and I'll go to check this document carefully one more time.
Much appreciate to your help and patience.

With best regards,
Siyi

2020年10月14日水曜日 22:49:30 UTC+9 snyde...@gmail.com:
Reply all
Reply to author
Forward
0 new messages