Commit 7b30b18b authored by Millian Poquet's avatar Millian Poquet
Browse files

Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/batsim/batsim into c++

parents ae4d2ae0 dac26449
......@@ -63,3 +63,59 @@
**** Generate SimGrid processes' trace (can be useful to visualize what happens)
./batsim [batsim_options...] PLATFORM WORKLOAD -- --cfg=tracing:1 --cfg=tracing/msg/process:1
=======
** Dependencies
- simgrid (revision 2b7c35f960b4 on git://scm.gforge.inria.fr/simgrid/simgrid.git)
- Jansson: a C library for encoding, decoding and manipulating JSON data.
: apt-get install libjansson4
: apt-get install libjansson-dev
** First step: prepare Makefile
: mkdir build
: cd build
: cmake -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles" ../
** Second step
: make
* Usages
** Common part for all cases:
In a terminal:
: cd build
: ./batsim ../platforms/small_platform.xml ../workload_profiles/test_workload_profile.json
** With fake scheduler
In a second terminal:
: python fake_sched_uds.py workload_profiles/test_workload_profile.json
** With oar core scheduler
In a second terminal:
- First install the required oar-3 libraries.
: git clone https://github.com/oar-team/oar-lib.git
: git clone https://github.com/oar-team/oar-kao.git
: cd oar-lib
: sudo python setup.py install
: cd oar-kao
: sudo python setup.py install
- Second use *bataar.py* which is the adaptor for OAR3 to interact with BatSim.
: cd oar_kao
: ./baatar.py ../../batsim/workload_profiles/test_workload_profile.json
Refer to [[https://github.com/oar-team/oar-kao][oar-kao]] site or bataar.py -h for more to information.
* Display information control
Batsim has its own set of options but it can also handle standard SimGrid ones.
The end-of-options delimiter "--" must then be used to use SimGrid options.
** Quiet run
: ./batsim [batsim_options...] -- PLATFORM WORKLOAD --log=batsim.thresh:critical --log=network.thresh:critical
** Display network information only
: ./batsim [batsim_options...] -- PLATFORM WORKLOAD --log=batsim.thresh:critical
** Display SimGrid options help
: ./batsim -- PLATFORM WORKLOAD --help
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment