Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Tesh files: kill obsolete variables SG_TEST_EXENV and EXEEXT.
[simgrid.git] / examples / s4u / energy-exec / s4u-energy-exec.tesh
1 #!/usr/bin/env tesh
2
3 p Testing the mechanism for computing host energy consumption
4
5 $ ${bindir:=.}/s4u-energy-exec ${platfdir}/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:120.0:200.0, 93.0:110.0:170.0, 90.0:105.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 120W to 200W depending on load; Energy dissipated=1120 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=1645 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=2005 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=2905 J
19 > [ 30.000000] (0:maestro@) Total energy consumption: 8005.000000 Joules (used hosts: 2905.000000 Joules; unused/idle hosts: 5100.000000)
20 > [ 30.000000] (0:maestro@) End of simulation.
21 > [ 30.000000] (0:maestro@) Energy consumption of host MyHost1: 2905.000000 Joules
22 > [ 30.000000] (0:maestro@) Energy consumption of host MyHost2: 2100.000000 Joules
23 > [ 30.000000] (0:maestro@) Energy consumption of host MyHost3: 3000.000000 Joules
24
25 $ ${bindir:=.}/s4u-energy-exec ${platfdir}/energy_cluster.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" --cfg=host/model:ptask_L07
26 > [  0.000000] (0:maestro@) Configuration change: Set 'host/model' to 'ptask_L07'
27 > [  0.000000] (0:maestro@) Switching to the L07 model to handle parallel tasks.
28 > [  0.000000] (1:dvfs_test@MyHost1) Energetic profile: 100.0:120.0:200.0, 93.0:110.0:170.0, 90.0:105.0:150.0
29 > [  0.000000] (1:dvfs_test@MyHost1) Initial peak speed=1E+08 flop/s; Energy dissipated =0E+00 J
30 > [  0.000000] (1:dvfs_test@MyHost1) Sleep for 10 seconds
31 > [ 10.000000] (1:dvfs_test@MyHost1) Done sleeping (duration: 10.00 s). Current peak speed=1E+08; Energy dissipated=1000.00 J
32 > [ 10.000000] (1:dvfs_test@MyHost1) Run a task of 1E+08 flops
33 > [ 11.000000] (1:dvfs_test@MyHost1) Task done (duration: 1.00 s). Current peak speed=1E+08 flop/s; Current consumption: from 120W to 200W depending on load; Energy dissipated=1120 J
34 > [ 11.000000] (1:dvfs_test@MyHost1) ========= Requesting pstate 2 (speed should be of 2E+07 flop/s and is of 2E+07 flop/s)
35 > [ 11.000000] (1:dvfs_test@MyHost1) Run a task of 1E+08 flops
36 > [ 16.000000] (1:dvfs_test@MyHost1) Task done (duration: 5.00 s). Current peak speed=2E+07 flop/s; Energy dissipated=1645 J
37 > [ 16.000000] (1:dvfs_test@MyHost1) Sleep for 4 seconds
38 > [ 20.000000] (1:dvfs_test@MyHost1) Done sleeping (duration: 4.00 s). Current peak speed=2E+07 flop/s; Energy dissipated=2005 J
39 > [ 20.000000] (1:dvfs_test@MyHost1) Turning MyHost2 off, and sleeping another 10 seconds. MyHost2 dissipated 2000 J so far.
40 > [ 30.000000] (1:dvfs_test@MyHost1) Done sleeping (duration: 10.00 s). Current peak speed=2E+07 flop/s; Energy dissipated=2905 J
41 > [ 30.000000] (0:maestro@) Total energy consumption: 5005.000000 Joules (used hosts: 2905.000000 Joules; unused/idle hosts: 2100.000000)
42 > [ 30.000000] (0:maestro@) End of simulation.
43 > [ 30.000000] (0:maestro@) Energy consumption of host MyHost1: 2905.000000 Joules
44 > [ 30.000000] (0:maestro@) Energy consumption of host MyHost2: 2100.000000 Joules