gem5中stats.txt的统计结果simulation statistics解释说明(运行parsec2.1测试集)

参考:http://www.cs.utexas.edu/~parsec_m5/TR-09-32.pdf (parsec测试集的使用文档,主要关注checkpoints)

http://article.gmane.org/gmane.comp.emulators.m5.users/14947/match=begin+simulation(mailing list中的说明)


问题描述:parsec2.1测试集,使用blackscholes_16c_simsmall.rcS脚本运行时,在stats.txt中有一个Begin/End region;使用blackscholes_16c_simsmall_ckpts.rcS的without Checkpoints运行时,在stats.txt中有四个Begin/End region;使用blackscholes_16c_simsmall_ckpts.rcS的with Checkpoints运行时(即先运行命令,生成checkpoints,接着在用--checkpoint-restore=1运行命令,见分析用法),在stats.txt中有两个Begin/End region,那么哪些结果是我们关心的呢?它们分别代表什么含义?


解析:Based on your run script above, you should see 4 separate sets of statistics at the end of simulationcorresponding to: (1) the start of simulation until the dump in the runscript (above), (2) the beginning of the benchmark up to the beginning of the ROI in the benchmark, (3) the benchmark ROI, and (4) from the end of the ROI to when thesimulation exits on '/sbin/m5 exit' (above).  If you are interested in the number of instructions leading up to the ROI, you'll be interested in the stats from the first two stats segments.

这段文字描述了stats.txt中各个部分统计结果的含义,当运行有四部分结果时,第一部分表示模拟刚开始时的统计;第二部分表示benchmark到ROI之间运行的结果;第三部分表示ROI运行的结果;第四部分表示运行完ROI后的结果。

当有两个结果时,第一个结果是ROI运行的结果,第二个是运行完ROI后的结果,因为这部分的是从checkpoints开始运行的;

当有一个结果时,它对应的是第一部分结果即模拟刚开始时的统计;


有和没有checkpoints的用法示例:

有checkpoints时,需要两步,先生成checkpoints,接着在--checkpoint-restore直接运行关心的部分

./build/ALPHA_FS/m5.opt ./configs/example/fs.py -n $numProcs --script=./path/to/runscript.rcS

> ./build/ALPHA_FS/m5.opt ./configs/example/fs.py --detailed --caches --l2cache --checkpoint-restore=1 -n $numProcs


不通过checkpoints运行时,则直接运行

> ./build/ALPHA_FS/m5.opt ./configs/example/fs.py -n $numProcs --script=./path/to/runscript.rcS --detailed --caches --l2cache -F 5000000000

  • 2
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值