Hi Reza, I've never tried to do this, and I'm not sure if it's fully supported or not. However, this is what I would try. Note, all of this can be done from the Python config file, I believe.
1. Create the process/workload/cpu threads in the normal way. 2. "switch out" the CPU or somehow disable the CPU's thread for the process you want to delay 3. Enqueue an exit event for the time you want the process to start executing. 4. Run the first 2 seconds of your simulation. Then the simulation will exit because your exit event you created will be executed. 5. Enable the other CPU core/thread/process by undoing what you did in step 2. 6. Jump back into the simulation loop. Step 2 is the one that I'm least sure about. But I'm pretty sure that it's possible. If it's not, it should be very easy to add the feature. It may take adding a new method to the CPU or the thread and/or exposing a CPU/thread method to Python. Cheers, Jason On Mon, Jan 30, 2017 at 4:45 PM Mohammad Reza Jokar <[email protected]> wrote: > Dear all, > > I would like to simulate a 4-core system in SE mode to run SPEC-CPU2006 > multi-program workloads (run 4-program workloads, one program on each > core). Currently, all the 4 programs start at the same time. Is there any > way to delay one of them and force it to start 2 seconds after other > programs? Any help would be appreciated. > > Thanks! > > Reza > _______________________________________________ > 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
