Closed Mema5 closed 3 years ago
Hi! Ptask + multicore has been fixed quite recently in SimGrid, I think latest Batsim release does not use a SimGrid with the fix. Can you try with a more recent Batsim instead? You can compile it locally with the following command:
nix build --arg doCoverage false -f https://framagit.org/batsim/batsim/-/archive/master/batsim-master.tar.gz batsim
./result/bin/batsim --simgrid-version
# should print 3.28.0
(You can also use the batsim-master
package defined in NUR-Kapack if you already have a Nix setup)
Hi Millian and thank you! Indeed the SimGrid version used by the latest batsim release was 3.25.0 and the bug is fixed with the latest SimGrid release.
>batsim --version
commit e663e5e5213bfaae9c8ef432fcb1c3a4db20b30e (built by Nix from master branch)
>batsim --simgrid-version
3.28.0
Btw, maybe good to add that in the doc : "Warning: the multicore fonctionality only works with a version of SimGrid >= 3.28".
I try to use the multicore functionality of SimGrid platforms with Batsim but didn't manage so far. Running a job with 2 parallel tasks on a 2-core machine takes twice the time than running a job with only 1 task. We would expect the exact same execution time.
Description of the bug
I run this simple workload: one job with 1 parallel task and one job with 2 parallel tasks.
I have a platform with a 2-core machine:
My scheduler is a slight modification of the batsched scheduler
sequencer
. It schedules the jobs one after the other on only one machine. It uses the custom mapping to schedule all the executors on the first machine. Below is the only modified functionmake_decisions()
:Behavior
The first job has an execution time of 56329.651657 s and the second job takes twice that time (112659.303314 s).
We would expect the same execution time, as it is supposed to work in SimGrid...
Here is the full batsim log with debug verbosity activated:
Versions