Hi all,

 

Are there any suggested settings for running multi-cpu FullSystem linux
aarch64 simulations?

I am trying command lines like this:

 

for num_cpus in 1 2 4 8 16

do

    ./build/ARM/gem5.opt \

    -d m5out/$num_cpus \

    -r \

    configs/example/fs.py \

    -n $num_cpus \

    --fastmem \

    --machine-type=VExpress_GEM5_V1 \

    --dtb-filename=$PWD/system/arm/dt/armv8_gem5_v1_${num_cpus}cpu.dtb \

    --kernel=$HOME/linux-arm-gem5/vmlinux \

    --disk-image=aarch64-ubuntu-trusty-headless.img \

    --script=$PWD/configs/boot/hack_back_ckpt.rcS &

done

 

And I have not been able to find a set of settings that work for all the
possible cases. The ones that fail do not complete the boot process and end
up producing an assertion failure like this (note the very high tick value,
so I guess that there is some kind of synchronization issue between cpus):

 

gem5.opt: build/ARM/sim/eventq_impl.hh:44: void EventQueue::schedule(Event*,
Tick, bool): Assertion `when >= getCurTick()' failed.

Program aborted at tick 18446695950489501500

 

I have been playing with settings like the kernel version (4.3 and 4.4), the
bootloader (the one in $PWD/system/arm/aarch64_bootloader and the one in the
binaries directory of
http://www.gem5.org/dist/current/arm/aarch-system-2014-10.tar.xz) as well as
the value of the gem5_extensions parameter for Pl390 (in
$PWD/src/dev/arm/Gic.py).

So far, the most stable configuration is with the old bootloader in
aarch-system-2014-10.tar.xz and gem5_extensions set to False (kernel version
does not matter), but this obviously does not work with more than 8 cpus.

If I instead use the new bootloader from $PWD/system/arm/aarch64_bootloader,
then only simulations with 1 and 2 cpus fully work (4 cpus only work for
kernel 4.4 and gem5_extensions = False and 8 cpus only work for kernel 4.3
and gem5_extensions = True).

 

Am I doing something wrong or missing any other settings to let it boot with
any number of CPUs between 1 and 16?

Thank you very much,

Pau

 

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to