Hi Steve,
I tried
taskset -pc 0 ./astar & taskset -pc 1 ./bzip
but the program terminates early.
Can you show me the exact command I should use?

Thanks,
Yanqi
________________________________
From: [email protected] [[email protected]] on behalf of 
Steve Reinhardt [[email protected]]
Sent: Thursday, September 05, 2013 11:56 AM
To: gem5 users mailing list
Subject: Re: [gem5-users] Multicore programs

If you're in FS mode, then thread scheduling is controlled by Linux.  You can 
run as many programs as you want, just like on a real Linux system, and if you 
have more runnable threads than cores, they will be time-sliced by the kernel 
using its internal thread scheduling algorithm.

Your ability to bind threads to cores is the same as on a real Linux system, 
e.g., see:
http://linux.die.net/man/2/sched_setaffinity
http://linux.die.net/man/1/taskset

Steve




On Wed, Sep 4, 2013 at 1:37 PM, Zheng Wu 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

Depends on whether you're running them in SE mode or FS mode. In SE mode, you 
can simply specify the benchmark you want to run with the following command 
line options:

./gem5.opt config/example/se.py -c "<path to astar>;<path to bzip>" -o "<astar 
options>;<bzip options>" --num-cpus 2

I am not sure about FS mode, hope this helps.

Best,
Zheng

On 2013-09-04, at 12:49 PM, Yanqi Zhou 
<[email protected]<mailto:[email protected]>> wrote:

Hi Everyone,
How can I run multiple different programs on different cores? For example, I 
need to run "astar" and "bzip" on two different cores, and gather traces for 
each of the tow.
Can anyone share me some tips running multi-programs?

Thanks,
Yanqi
_______________________________________________
gem5-users mailing list
[email protected]<mailto:[email protected]>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


_______________________________________________
gem5-users mailing list
[email protected]<mailto:[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

Reply via email to