Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
do not talk about tasks anymore
[simgrid.git] / examples / s4u / plugin-hostload / s4u-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:=.}/s4u-plugin-hostload ${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) and current average load: 0.00000 (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 an activity of 2E+08 flops at current speed of 1E+08 flop/s
10 > [ 10.500000] (2:change_speed@MyHost1) I slept until now, but now I'll change the speed of this host while the other actor is still computing! This should slow the computation down.
11 > [ 18.000000] (1:load_test@MyHost1) Done working on my activity; this took 8.00s; current peak speed: 2E+07 flop/s (when I started the computation, the speed was set to 1E+08 flop/s); number of flops computed so far: 2.00E+08, average load as reported by the HostLoad plugin: 0.04167 (should be 0.04167)
12 > [ 18.000000] (1:load_test@MyHost1) ========= Requesting pstate 1 (speed should be of 5E+07 flop/s and is of 5E+07 flop/s, average load is 0.04167)
13 > [ 18.000000] (1:load_test@MyHost1) Run an activity of 1E+08 flops
14 > [ 20.000000] (1:load_test@MyHost1) Done working on my activity; this took 2.00s; current peak speed: 5E+07 flop/s; number of flops computed so far: 3.00E+08
15 > [ 20.000000] (1:load_test@MyHost1) ========= Requesting a reset of the computation and load counters
16 > [ 20.000000] (1:load_test@MyHost1) After reset: 0E+00 flops computed; load is 0.00000
17 > [ 20.000000] (1:load_test@MyHost1) Sleep for 4 seconds
18 > [ 24.000000] (1:load_test@MyHost1) Done sleeping 4.00 s; peak speed: 5E+07 flop/s; number of flops computed so far: 0E+00
19 > [ 24.000000] (1:load_test@MyHost1) Turning MyHost2 off, and sleeping another 10 seconds. MyHost2 computed 0 flops so far and has an average load of 0.00000.
20 > [ 34.000000] (1:load_test@MyHost1) Done sleeping 10.00 s; peak speed: 5E+07 flop/s; number of flops computed so far: 0E+00
21 > [ 34.000000] (0:maestro@) Total simulation time: 34.00