Gem5, simpoint的warm up

这篇博客介绍了如何使用Gem5模拟器进行大规模缓存预热,设置了40亿指令的warmup阶段。通过SimPoint工具获取权重信息,重点关注权重为0.61的片段,该片段始于607亿指令。Gem5根据权重在567亿指令处创建checkpoint,并在达到607亿指令时结束预热,进入ROI区域。整个过程详细记录了CPU执行的指令数。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

需要warm up比较大的cache,因此warm up设置的比较大,4Billion instruction.

gem5产生simpoint.bb.gz之后,使用simpoint抓取weight信息,

 weight

0.0580581 0
0.612613 1
0.014014 2
0.138138 3
0.177177 4

simpoints

534 0
607 1
554 2
865 3
106 4

其中1片段对应权重0.61,起始指令为60.7Billion。

之所以单位是0.1Billion是因为在gem5 产生simpoint时,使用了--simpoint-interval 100000000(100M指令)。

gem5使用该weight和simpoint产生checkpoint时,会在56.7B处产生checkpoint,然后经过4Billion的instruction,结束warm up,进入真正的60.7Billion的roi 指令。

BaseSimpleCPU0 At 187482894254656 Tid[0] 56700000000 instructions are executed.
Writing checkpoint
Checkpoint #3 written. start inst:56700000000 weight:0.612613
BaseSimpleCPU0 At 187789337907886 Tid[0] 56800000000 instructions are executed.
BaseSimpleCPU0 At 188098696294652 Tid[0] 56900000000 instructions are executed.
BaseSimpleCPU0 At 188408499154876 Tid[0] 57000000000 instructions are executed.
BaseSimpleCPU0 At 188717565573680 Tid[0] 57100000000 instructions are executed.
BaseSimpleCPU0 At 189025094758786 Tid[0] 57200000000 instructions are executed.
BaseSimpleCPU0 At 189332806676156 Tid[0] 57300000000 instructions are executed.
BaseSimpleCPU0 At 189639250090576 Tid[0] 57400000000 instructions are executed.
BaseSimpleCPU0 At 189950905510080 Tid[0] 57500000000 instructions are executed.
BaseSimpleCPU0 At 190261730709908 Tid[0] 57600000000 instructions are executed.
BaseSimpleCPU0 At 190571706936468 Tid[0] 57700000000 instructions are executed.
BaseSimpleCPU0 At 190879816695854 Tid[0] 57800000000 instructions are executed.
BaseSimpleCPU0 At 191191447618886 Tid[0] 57900000000 instructions are executed.
BaseSimpleCPU0 At 191499498250632 Tid[0] 58000000000 instructions are executed.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值