Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[#!] #! ./tesh -> #!/usr/bin/env tesh
[simgrid.git] / teshsuite / msg / plugin-hostload / plugin-hostload.tesh
1 #!/usr/bin/env tesh
2
3 p This tests the HostLoad plugin (this allows the user to get the current load of a host and the computed flops)
4
5 $ ${bindir:=.}/plugin-hostload$EXEEXT ${platfdir}/energy_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
6 > [  0.000000] (1:load_test@MyHost1) Initial peak speed: 1E+08 flop/s; number of flops computed so far: 0E+00 (should be 0)
7 > [  0.000000] (1:load_test@MyHost1) Sleep for 10 seconds
8 > [ 10.000000] (1:load_test@MyHost1) Done sleeping 10.00s; peak speed: 1E+08 flop/s; number of flops computed so far: 0E+00 (nothing should have changed)
9 > [ 10.000000] (1:load_test@MyHost1) Run a task of 1E+08 flops
10 > [ 11.000000] (1:load_test@MyHost1) Done working on my task; this took 1.00s; current peak speed: 1E+08 flop/s; number of flops computed so far: 1E+08
11 > [ 11.000000] (1:load_test@MyHost1) ========= Requesting pstate 2 (speed should be of 2E+07 flop/s and is of 2E+07 flop/s)
12 > [ 11.000000] (1:load_test@MyHost1) Run a task of 1E+08 flops
13 > [ 16.000000] (1:load_test@MyHost1) Done working on my task; this took 5.00s; current peak speed: 2E+07 flop/s; number of flops computed so far: 2E+08
14 > [ 16.000000] (1:load_test@MyHost1) ========= Requesting a reset of the computation counter
15 > [ 16.000000] (1:load_test@MyHost1) Sleep for 4 seconds
16 > [ 20.000000] (1:load_test@MyHost1) Done sleeping 4.00 s; peak speed: 2E+07 flop/s; number of flops computed so far: 0E+00
17 > [ 20.000000] (1:load_test@MyHost1) Turning MyHost2 off, and sleeping another 10 seconds. MyHost2 computed 0 flops so far.
18 > [ 30.000000] (1:load_test@MyHost1) Done sleeping 10.00 s; peak speed: 2E+07 flop/s; number of flops computed so far: 0E+00
19 > [ 30.000000] (0:maestro@) Total simulation time: 30.00