Thanks a lot. Hui
On Mon, Jul 29, 2013 at 6:14 PM, Joel Hestness <[email protected]> wrote: > Hi Hui, > I think you're looking for the function m5checkpoint() in > src/sim/pseudo_inst.cc. > > Joel > > > On Thu, Jul 25, 2013 at 8:32 PM, Hui Zhao <[email protected]> wrote: > >> Joel >> Thanks very much for the information. I have another question related >> to checkpointing. There is a m5 opcode checkpoint(delay,period). It is >> implemented by m5_checkpoint. However, I didn't find the source code of >> this function. Do you know where I can find it? Basically, I want to know >> how this function can be called from inside the simulator. >> >> Thanks >> Hui >> >> >> On Thu, Jul 25, 2013 at 5:24 PM, Joel Hestness <[email protected]>wrote: >> >>> Hi Hui, >>> Looking at the do_pin() function in ./util/m5/m5.c, it appears that it >>> doesn't do an upcall into the simulator (i.e. it doesn't try to execute a >>> gem5 pseudo-instruction). As such, the /sbin/m5 pin call must be annotated >>> into the benchmark that you want to run, because there isn't a way to get >>> the same functionality from within the simulator. >>> >>> Joel >>> >>> >>> >>> On Tue, Jul 23, 2013 at 3:31 PM, Hui Zhao <[email protected]> wrote: >>> >>>> What I want to do is to call "/sbin/m5 pin" command in the middle of >>>> benchmark execution. For example, I have 4 cores running an application >>>> first. Then I want to move all the application's threads to 2 cores only. I >>>> can use m5 pin to do it, but right now only before benchmark get started. >>>> As you said, I can modify the benchmark source code to do it. But if gem5 >>>> can have a way to do it, it will be easier. The way I can think of is to >>>> save a checkpoint of benchmark's execution first, call m5 pin, then resume >>>> the benchmark. >>>> >>>> Thanks >>>> Hui >>>> >>>> >>>> On Tue, Jul 23, 2013 at 1:33 PM, Joel Hestness <[email protected]>wrote: >>>> >>>>> Hi Hui, >>>>> Can you give specifics of what you're trying to achieve? Depending >>>>> on what you'd like to do, it may make most sense to modify the benchmark >>>>> that you're running to explicitly call the command. On the other hand, it >>>>> may be simple to add the call you'd like to the simulator and parameterize >>>>> it to be called if you pass a command line parameter. >>>>> >>>>> Thanks, >>>>> Joel >>>>> >>>>> >>>>> >>>>> On Mon, Jul 22, 2013 at 10:42 PM, Hui Zhao <[email protected]> wrote: >>>>> >>>>>> Joel >>>>>> Thanks for the reply. But I have a question about this script. >>>>>> According to its comment: >>>>>> >>>>>> when run in M5, it creates >>>>>> <http://grok.gem5.org/xref/gem5/configs/boot/hack_back_ckpt.rcS#5>a >>>>>> checkpoint after Linux boot up, but >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> before any benchmarks have been run. >>>>>> >>>>>> However, I want to create a checkpoint after a benchmark is run >>>>>> for some time, then call some "/sbin/m5 cmd" and continue the >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> same benchmark's execution. >>>>>> Should this script work for my purpose or some change is needed? >>>>>> >>>>>> Thanks >>>>>> >>>>>> Hui >>>>>> >>>>>> >>>>>> >>>>>> On Mon, Jul 22, 2013 at 3:03 PM, Joel Hestness >>>>>> <[email protected]>wrote: >>>>>> >>>>>>> Hi Hui, >>>>>>> I'd recommend that you check out the hack_back_ckpt.rcS runscript >>>>>>> included in gem5/configs/boot/, and for more detail on controlling the >>>>>>> system after checkpoint restore, take a look at this email thread: >>>>>>> http://www.mail-archive.com/[email protected]/msg07720.html >>>>>>> >>>>>>> Joel >>>>>>> >>>>>>> >>>>>>> On Mon, Jul 22, 2013 at 1:21 AM, Hui Zhao <[email protected]> wrote: >>>>>>> >>>>>>>> Hello >>>>>>>> Can we make some changes in the simulation settings after >>>>>>>> restore from a checkpoint? >>>>>>>> For example, I first save a checkpoint, when I restore from it, is >>>>>>>> there a way that I can call "/sbin/m5 cmd" first before continue the >>>>>>>> execution? Some posts talk about running commands like in .rcS files >>>>>>>> in m5 >>>>>>>> term after restoring the checkpoint, however, when I try it, the >>>>>>>> execution >>>>>>>> just continue from the checkpoint and there is no way to type in any >>>>>>>> cmd in >>>>>>>> m5 term. >>>>>>>> >>>>>>>> Thanks >>>>>>>> Hui >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> gem5-users mailing list >>>>>>>> [email protected] >>>>>>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Joel Hestness >>>>>>> PhD Student, Computer Architecture >>>>>>> Dept. of Computer Science, University of Wisconsin - Madison >>>>>>> http://pages.cs.wisc.edu/~hestness/ >>>>>>> >>>>>>> _______________________________________________ >>>>>>> gem5-users mailing list >>>>>>> [email protected] >>>>>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> gem5-users mailing list >>>>>> [email protected] >>>>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Joel Hestness >>>>> PhD Student, Computer Architecture >>>>> Dept. of Computer Science, University of Wisconsin - Madison >>>>> http://pages.cs.wisc.edu/~hestness/ >>>>> >>>>> _______________________________________________ >>>>> gem5-users mailing list >>>>> [email protected] >>>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>>>> >>>> >>>> >>>> _______________________________________________ >>>> gem5-users mailing list >>>> [email protected] >>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>>> >>> >>> >>> >>> -- >>> Joel Hestness >>> PhD Student, Computer Architecture >>> Dept. of Computer Science, University of Wisconsin - Madison >>> http://pages.cs.wisc.edu/~hestness/ >>> >>> _______________________________________________ >>> gem5-users mailing list >>> [email protected] >>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>> >> >> >> _______________________________________________ >> gem5-users mailing list >> [email protected] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> > > > > -- > Joel Hestness > PhD Student, Computer Architecture > Dept. of Computer Science, University of Wisconsin - Madison > http://pages.cs.wisc.edu/~hestness/ > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
