Hi Aditya, Here's what I use for running multitask simulation on partitioned cores. Gem5 provide a command:
/sbin/m5 pin 0,1,2,3 ./yourbenchmark.rcS or you can use taskset -p 0xf ./yourbenchmark.rcS notice that 0xf is your cpu mask and should match your defined core count (both from kernel and system side). If you run it on a 64 core machine, this mask can be 0xffffffffffffffff. Regards, Wei ----- Original Message ----- From: "Aditya Narayan" <[email protected]> To: [email protected] Sent: Monday, October 2, 2017 10:33:44 AM Subject: [gem5-users] Using taskset to run a process on a particular core in Gem5 I am using taskset to run 2 independent applications on 2 separate cores. I am running a full system simulation in Gem5. I can force the 2 process "mcf" and "milc" to run on 2 cores in the interactive disk image system. I am using the following command - > taskset -c 0 ./mcf_base.ia64-gcc42 inp.in & taskset -c 1 > ./milc_base.ia64-gcc42 < su3imp.in However, when I run a full system simulation from Gem5 using this disk image, with the same above command in my rcS file, I get the following error - sched_setaffinity: Invalid argument failed to set pid 0's affinity. Is there something I am missing? My gem5 script is as follows - build/X86/gem5.fast -d result configs/example/fs.py --cpu-type=detailed --num-cpus=2 --caches --l2cache --l1d_size=64kB --l1i_size=64kB --l2_size=512kB --l1d_assoc=2 --l1i_assoc=2 --l2_assoc=16 --mem-type=ddr3_1600_x64 --mem-size=2GB --mem-channels=4 --disk-image=FS_files/disks/disk-final.img --script=rcS/mcf_milc.rcS -F 1000000000 --maxinsts=100000000 Thanks, Aditya Narayan _______________________________________________ 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
