On 04.10.2012 11:43, Nilay Vaish wrote: 

> There are specific
comments inline. Overall, I think you need to have a 
> better
understanding of the options that you are trying to work with.
> 
> On
Thu, 4 Oct 2012, Tao Zhang wrote:
> 
>> Hi Nilay, Maybe I didn't make it
clear. What I want is to run Multi-programmed simulation rather than
multi-threaded simulation. In other words, I want 4 cores to run 4
benchmarks (though they are all same) and each core has only 1 thread.
As a result, I set "np = 4 and numThreads = 1" in my configuration
script. I also produced 4 identical LiveProcess() and assigned them to
each core. However, the simulation immediately terminated after the cpu
switching from atomic to detailed, with message "a thread reached the
max instruction count". I go through the Simulation.py, src/cpu/base.cc,
src/cpu/O3/commit_impl.cc but didn't find the clue that I have wrongly
set the -F and -I with the same number (100000000).
> 
> Can you clearly
state how is this different from what you expect?
> 
>> If the
instruction count is based on the thread and no change during the cpu
switching, why I can use -F and -I together for single-core simulation?
The
> 
> Why not? You need to better understand the meaning of those two
options.

It is not clear what is incorrect, hence fixing some thing is
not out of 
question right now.

The code is across two places. The CPUs
put exit events on their instruction queues
(http://grok.gem5.org/search?q=comInstEventQueue) and then the
simulation code handles what do do when the C++ portion of the code
exits (end the simulation, or restart with a different CPU; see
http://grok.gem5.org/xref/gem5/configs/common/Simulation.py#461).

>>
another question: Even though the benchmarks are same, I assume the
physical address range to accommodate each benchmark is still different
since gem5 generates 4 process stacks with different address mapping. Is
it correct?
> 
> I think this is correct.
> 
> --
> Nilay
>
_______________________________________________
> gem5-users mailing
list
>
gem5-users@gem5.orghttp://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
[1]

 

Links:
------
[1]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to