My next guess is that perhaps the kernel you're using doesn't support process affinity? I'm not sure if that is possible, but it's a guess.
As for why cpu1 stats are 0, either you haven't switched cpu models yet or nothing has run on the second core (It's been idle). This is likely given that you haven't managed to run your benchmarks yet which would provide enough load to wake the second cpu. Ali On 07.08.2012 19:51, Cookie wrote: > Hi Ali, > > Thank you for your quick reply. But I did try taskset (as the way you shown) and it printed out the same error. > > 1/ Is that the problem related to disk image? Because when I check the previous FAQs, I noticed your reply at ( > http://comments.gmane.org/gmane.comp.emulators.m5.users/3939 [1]). If it is, can you tell me how to create a latest disk image? > > 2/ Also, could you please tell me why the statistics of cpu1 are NULL in stats.txt? (eg. system.switch_cpus1.committedOps 0) > > Thank you for your help, > Yingying Tian > > You could try using taskset (I'm not sure if it's on the disk > image), but it does the same thing as m5 pin. > > taskset 0x1 $bench0 & > > taskset 0x2 $bench1 & > > taskset 0x4 $bench2 & > > Ali > > On 07.08.2012 > 19:27, Cookie wrote: > >> _ To whom it may concern, _>_ I tried to run 2 _spec benchmarks on a 2-core CMP (on X86_FS mode). I tried to use >> _ .... _ >> _ /sbin/m5 pin 0 $bench0 & _>_ /sbin/m5 pin 1 $bench1 _>_ .... _>_ in my _.rcS script file. However it shown the error information as : m5: > setaffinity: Invalid argument >> _ I also tried to use taskset 0x1/0x2 to _run 2 workloads at the same time on different cores, it also printed out > the same error information. >> _ Even if I removed the cpu affinity _command but just ran workloads as : >> _ .... _>_ ./$bench0 & _>_ ./$bench1 _ >> _ .... _>_ _>_ I noticed that the committed insts/IPC/CPI of cpu1 is 0. _ >> _ _>_ I've no idea what the problem is. Can anyone please give any _suggestions on how to run multi-programmed workloads in X86_FS mode? >> _ _ >> _ Thanks in advance! _>_ _>_ Yingying Tian_ Links: ------ [1] http://comments.gmane.org/gmane.comp.emulators.m5.users/3939
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users