Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git] / examples / msg / energy-consumption / energy-consumption.tesh
1 #! ./tesh
2
3 p Testing the mechanism for computing host energy consumption
4
5 $ $SG_TEST_EXENV energy-consumption/energy-consumption$EXEEXT ${srcdir:=.}/../platforms/energy_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
6 > [  0.000000] (1:dvfs_test@MyHost1) Energetic profile: 100.0:200.0, 93.0:170.0, 90.0:150.0
7 > [  0.000000] (1:dvfs_test@MyHost1) Initial peak speed=1E+08 flop/s; Energy dissipated =0E+00 J
8 > [  0.000000] (1:dvfs_test@MyHost1) Sleep for 10 seconds
9 > [ 10.000000] (1:dvfs_test@MyHost1) Done sleeping (duration: 10.00 s). Current peak speed=1E+08; Energy dissipated=1000.00 J
10 > [ 10.000000] (1:dvfs_test@MyHost1) Run a task of 1E+08 flops
11 > [ 11.000000] (1:dvfs_test@MyHost1) Task done (duration: 1.00 s). Current peak speed=1E+08 flop/s; Current consumption: from 100W to 200W depending on load; Energy dissipated=1200 J
12 > [ 11.000000] (1:dvfs_test@MyHost1) ========= Requesting pstate 2 (speed should be of 2E+07 flop/s and is of 2E+07 flop/s)
13 > [ 11.000000] (1:dvfs_test@MyHost1) Run a task of 1E+08 flops
14 > [ 16.000000] (1:dvfs_test@MyHost1) Task done (duration: 5.00 s). Current peak speed=2E+07 flop/s; Energy dissipated=1950 J
15 > [ 16.000000] (1:dvfs_test@MyHost1) Sleep for 4 seconds
16 > [ 20.000000] (1:dvfs_test@MyHost1) Done sleeping (duration: 4.00 s). Current peak speed=2E+07 flop/s; Energy dissipated=2310 J
17 > [ 20.000000] (1:dvfs_test@MyHost1) Turning MyHost2 off, and sleeping another 10 seconds. MyHost2 dissipated 2000 J so far.
18 > [ 30.000000] (1:dvfs_test@MyHost1) Done sleeping (duration: 10.00 s). Current peak speed=2E+07 flop/s; Energy dissipated=3210 J
19 > [ 30.000000] (0:maestro@) Total simulation time: 30.00
20 > [ 30.000000] (0:maestro@) Total energy of host MyHost1: 3210.000000 Joules
21 > [ 30.000000] (0:maestro@) Total energy of host MyHost2: 2100.000000 Joules
22 > [ 30.000000] (0:maestro@) Total energy of host MyHost3: 3000.000000 Joules