Discussion:
[gem5-users] Switch CPU model
Jimmy Situ
2018-07-28 08:28:47 UTC
Permalink
Hi, All


I just want to switch my CPU model to O3 detail after I boot up my ubuntu and before I call the benchmark.
and I found one of ways making this is
/sbin/m5 switchcpu; mybechmark_run


Then I can switch cpu with this
if exit_event.getCause() == "switchcpu":
system.switchCpus(system.cpu, system.O3Cpu)



But I found it is not work in m5, the switchcpu is no longer in m5 now?
Is there any particular reason m5 do not support this op any more? Or there is a better way doing switch cpu?


Thanks.






------------------
Jimmy Situ
Ciro Santilli
2018-07-28 10:55:51 UTC
Permalink
For fs.py, use m5 checkpoint + gem5.opt fs.py -r 1, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/39762d2f158789a399a2ef962703c43a5339f308#gem5-run-benchmark

I don't konw what switchcpu is meant to do.
Post by Jimmy Situ
Hi, All
I just want to switch my CPU model to O3 detail after I boot up my ubuntu
and before I call the benchmark.
and I found one of ways making this is
/sbin/m5 switchcpu; mybechmark_run
Then I can switch cpu with this
system.switchCpus(system.cpu, system.O3Cpu)
But I found it is not work in m5, the switchcpu is no longer in m5 now?
Is there any particular reason m5 do not support this op any more? Or
there is a better way doing switch cpu?
Thanks.
------------------
Jimmy Situ
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Jimmy Situ
2018-07-30 02:18:22 UTC
Permalink
Hi, Ciro and All


There is some description about switchcpu operation on gem5.org,
http://www.gem5.org/M5ops#The_m5_Utility_.28FS_mode.29


but m5 utility seems not support it any more?



------------------
Jimmy Situ





------------------ Ô­ÊŒÓÊŒþ ------------------
·¢ŒþÈË: "Ciro Santilli"<***@gmail.com>;
·¢ËÍʱŒä: 2018Äê7ÔÂ28ÈÕ(ÐÇÆÚÁù) ÍíÉÏ6:55
ÊÕŒþÈË: "gem5 users mailing l"<gem5-***@gem5.org>;

Ö÷Ìâ: Re: [gem5-users] Switch CPU model


For fs.py, use m5 checkpoint + gem5.opt fs.py -r 1, e.g.: https://github.com/cirosantilli/linux-kernel-module-cheat/tree/39762d2f158789a399a2ef962703c43a5339f308#gem5-run-benchmark

I don't konw what switchcpu is meant to do.

On Sat, Jul 28, 2018 at 9:28 AM, Jimmy Situ <***@jimmystone.cn> wrote:
Hi, All


I just want to switch my CPU model to O3 detail after I boot up my ubuntu and before I call the benchmark.
and I found one of ways making this is
/sbin/m5 switchcpu; mybechmark_run


Then I can switch cpu with this
if exit_event.getCause() == "switchcpu":
system.switchCpus(system.cpu, system.O3Cpu)



But I found it is not work in m5, the switchcpu is no longer in m5 now?
Is there any particular reason m5 do not support this op any more? Or there is a better way doing switch cpu?


Thanks.






------------------
Jimmy Situ





_______________________________________________
gem5-users mailing list
gem5-***@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Loading...