To start a simulation in MARSS you need to use either the ptl_calls interface in your code or copy the start_sim/stop_sim/kill_sim programs to your image.
Generally simulations are done like: ./start_sim; BENCHMARK; ./stop_sim. On Thu, Sep 26, 2013 at 9:20 PM, masri <[email protected]> wrote: > Hi Tyler, All > > I am trying to run a particular benchmark on MARSS, but can't figure > out how to do that in MARSS > > First of all, I did all steps mentioned here > > > http://marss86.org/~marss86/index.php/FAQ#Is_there_any_ready_disk_image_I_can_use_with_MARSS.3F > > $ qemu/qemu-img convert -O raw -f qcow2 qcow2_disk_image_name > raw_disk_image_name > $ sudo kpartx -a [your_disk_image] > $ sudo mount -o loop /dev/mapper/[your_loopback_device] /mnt > $ sudo kpartx -d [your_disk_image] > > The idea is quite simple: mount the qcow2 file at the host machine and > drag into benchmarks, and then use the updated disk image in QEMU. > > I copied my benchmarks (source code and its object file) to /mnt/root > directory. > Say for example, I have benchmarks named foo1.c foo2.c. I placed foo1.c > , foo2.c and their compiled output files under /mnt/root. Is it > correct ? (I followed step 4 to copy benchmarks into the ‘root’ > directory) > > When I did this, then foo1 and foo2 will be there in mnt/root folder. > > Now the question is, how do we actually run these benchmarks in MARSS ? > And how do I select the benchmark I want to run ? (in this case foo1 and > foo2) > > My understanding is, when we want to simulate with > marss, we put a command like below > > qemu/qemu-system-x86_64 -m [memory_size] -hda > [path-to-updated-qemu-disk-image] > > and switch to QEMU's monitor console using 'Ctrl-Alt-2' key and issue > following commands in the VM console: > > simconfig -run -stopinsns 100m -stats [stats-filename] -machine > MACHINE_NAME > > http://marss86.org/~marss86/index.php/Getting_Started > > So I did > > "simconfig -run -stopinsns 100m -stats -machine single_core" > > and the simulation starts. But I have no idea what benchmark it is > simulating > Whether this actually simulates my foo1.c or not. > > I am a novice in MARSS, so I will be very grateful if you can help me on > this. > Thank you in advance. > > Your help will be very much appreciated. > Best, > > _______________________________________________ > http://www.marss86.org > Marss86-Devel mailing list > [email protected] > https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel >
_______________________________________________ http://www.marss86.org Marss86-Devel mailing list [email protected] https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel
