Hi, There was an old email that explains how to set thread affinity in PARSEC:
add export GOMP_CPU_AFFINITY="0 1 2 3" to the .rcS script I used 2 threads and 2 cores for two different PARSEC programs, and use: export GOMP_CPU_AFFINITY="0 1" ./prog1 & prog2 in the .rcS script so that each thread is running one of the PARSEC program on one of the core allocated. I am not quite sure if it is the right way to do so. I did use "taskset" before, but not successful. Is there anyone who is familiar with taskset in gem5? Thanks, Yanqi ________________________________ From: [email protected] [[email protected]] on behalf of Teng Lu [[email protected]] Sent: Saturday, September 07, 2013 3:48 PM To: gem5 users mailing list Subject: Re: [gem5-users] Multicore programs Hi Yanqi, I also want to bind tasks onto paticular cores. Could you be more specific how you achieve this? Thanks, Teng From: Yanqi Zhou Sent: Friday, September 6, 2013 10:53 AM To: gem5 users mailing list Hi Steve, I used another command from someone other's post: export GOMP_CPU_AFFINITY="0 1 2 3" It works. Thanks, Yanqi ________________________________ From: [email protected] [[email protected]] on behalf of Steve Reinhardt [[email protected]] Sent: Friday, September 06, 2013 11:22 AM To: gem5 users mailing list Subject: Re: [gem5-users] Multicore programs Hi Yanqi, I don't have any idea why the command you tried isn't working. Did you try it on a real system? I've never done this myself, I just looked it up on google. Steve On Fri, Sep 6, 2013 at 6:45 AM, Yanqi Zhou <[email protected]<mailto:[email protected]>> wrote: 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]<mailto:[email protected]> [[email protected]<mailto:[email protected]>] on behalf of Steve Reinhardt [[email protected]<mailto:[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]<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
