3 p Testing the mechanism for computing host energy consumption
5 $ ${bindir:=.}/s4u-energy-exec-ptask ${platfdir}/energy_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
6 > [ 0.000000] (0:maestro@) Configuration change: Set 'host/model' to 'ptask_L07'
7 > [ 0.000000] (0:maestro@) Switching to the L07 model to handle parallel tasks.
8 > [ 0.000000] (1:energy_ptask_test@MyHost1) [MyHost1] Energetic profile: 100.0:93.33333333333333:200.0, 93.0:90.0:170.0, 90.0:90.0:150.0
9 > [ 0.000000] (1:energy_ptask_test@MyHost1) [MyHost1] Initial peak speed=1E+08 flop/s; Total energy dissipated =0E+00 J
10 > [ 0.000000] (1:energy_ptask_test@MyHost1) [MyHost2] Energetic profile: 100.0:200.0:200.0, 93.0:170.0:170.0, 90.0:150.0:150.0
11 > [ 0.000000] (1:energy_ptask_test@MyHost1) [MyHost2] Initial peak speed=1E+08 flop/s; Total energy dissipated =0E+00 J
12 > [ 0.000000] (1:energy_ptask_test@MyHost1) Sleep for 10 seconds
13 > [ 10.000000] (1:energy_ptask_test@MyHost1) Done sleeping (duration: 10.00 s).
14 > [MyHost1] Current peak speed=1E+08; Energy dissipated during this step=1000.00 J; Total energy dissipated=1000.00 J
15 > [MyHost2] Current peak speed=1E+08; Energy dissipated during this step=1000.00 J; Total energy dissipated=1000.00 J
17 > [ 10.000000] (1:energy_ptask_test@MyHost1) Run a task of 1E+09 flops on two hosts
18 > [ 20.000000] (1:energy_ptask_test@MyHost1) Task done (duration: 10.00 s).
19 > [MyHost1] Current peak speed=1E+08 flop/s; Energy dissipated during this step=1200.00 J; Total energy dissipated=2200 J
20 > [MyHost2] Current peak speed=1E+08 flop/s; Energy dissipated during this step=2000.00 J; Total energy dissipated=3000 J
22 > [ 20.000000] (1:energy_ptask_test@MyHost1) ========= Requesting pstate 2 for both hosts (speed should be of 2E+07 flop/s and is of 2E+07 flop/s)
23 > [ 20.000000] (1:energy_ptask_test@MyHost1) Run a task of 1E+09 flops on MyHost1 and 1E+09 flops on MyHost2.
24 > [ 70.000000] (1:energy_ptask_test@MyHost1) Task done (duration: 50.00 s).
25 > [MyHost1] Current peak speed=2E+07 flop/s; Energy dissipated during this step=5250.00 J; Total energy dissipated=7450 J
26 > [MyHost2] Current peak speed=2E+07 flop/s; Energy dissipated during this step=7500.00 J; Total energy dissipated=10500 J
28 > [ 70.000000] (1:energy_ptask_test@MyHost1) Run a task with computation and communication on two hosts.
29 > [270.000000] (1:energy_ptask_test@MyHost1) Task done (duration: 200.00 s).
30 > [MyHost1] Current peak speed=2E+07 flop/s; Energy dissipated during this step=18750.00 J; Total energy dissipated=26200 J
31 > [MyHost2] Current peak speed=2E+07 flop/s; Energy dissipated during this step=30000.00 J; Total energy dissipated=40500 J
33 > [270.000000] (1:energy_ptask_test@MyHost1) Run a task with only communication on two hosts.
34 > [470.000000] (1:energy_ptask_test@MyHost1) Task done (duration: 200.00 s).
35 > [MyHost1] Current peak speed=2E+07 flop/s; Energy dissipated during this step=18000.00 J; Total energy dissipated=44200 J
36 > [MyHost2] Current peak speed=2E+07 flop/s; Energy dissipated during this step=18000.00 J; Total energy dissipated=58500 J
38 > [470.000000] (1:energy_ptask_test@MyHost1) Run a task with computation on two hosts and a timeout of 20s.
39 > [490.000000] (1:energy_ptask_test@MyHost1) Finished WITH timeout
40 > [490.000000] (1:energy_ptask_test@MyHost1) Task ended (duration: 20.00 s).
41 > [MyHost1] Current peak speed=2E+07 flop/s; Energy dissipated during this step=2100.00 J; Total energy dissipated=46300 J
42 > [MyHost2] Current peak speed=2E+07 flop/s; Energy dissipated during this step=3000.00 J; Total energy dissipated=61500 J
44 > [490.000000] (1:energy_ptask_test@MyHost1) Now is time to quit!
45 > [490.000000] (0:maestro@) Total energy consumption: 156800.000000 Joules (used hosts: 107800.000000 Joules; unused/idle hosts: 49000.000000)
46 > [490.000000] (0:maestro@) End of simulation.
47 > [490.000000] (0:maestro@) Energy consumption of host MyHost1: 46300.000000 Joules
48 > [490.000000] (0:maestro@) Energy consumption of host MyHost2: 61500.000000 Joules
49 > [490.000000] (0:maestro@) Energy consumption of host MyHost3: 49000.000000 Joules
52 $ ${bindir:=.}/s4u-energy-exec-ptask ${platfdir}/energy_cluster.xml "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
53 > [ 0.000000] (0:maestro@) Configuration change: Set 'host/model' to 'ptask_L07'
54 > [ 0.000000] (0:maestro@) Switching to the L07 model to handle parallel tasks.
55 > [ 0.000000] (1:energy_ptask_test@MyHost1) [MyHost1] Energetic profile: 100.0:93.33333333333333:200.0, 93.0:90.0:170.0, 90.0:90.0:150.0
56 > [ 0.000000] (1:energy_ptask_test@MyHost1) [MyHost1] Initial peak speed=1E+08 flop/s; Total energy dissipated =0E+00 J
57 > [ 0.000000] (1:energy_ptask_test@MyHost1) [MyHost2] Energetic profile: 100.0:93.33333333333333:200.0, 93.0:90.0:170.0, 90.0:90.0:150.0
58 > [ 0.000000] (1:energy_ptask_test@MyHost1) [MyHost2] Initial peak speed=1E+08 flop/s; Total energy dissipated =0E+00 J
59 > [ 0.000000] (1:energy_ptask_test@MyHost1) Sleep for 10 seconds
60 > [ 10.000000] (1:energy_ptask_test@MyHost1) Done sleeping (duration: 10.00 s).
61 > [MyHost1] Current peak speed=1E+08; Energy dissipated during this step=1000.00 J; Total energy dissipated=1000.00 J
62 > [MyHost2] Current peak speed=1E+08; Energy dissipated during this step=1000.00 J; Total energy dissipated=1000.00 J
64 > [ 10.000000] (1:energy_ptask_test@MyHost1) Run a task of 1E+09 flops on two hosts
65 > [ 20.000000] (1:energy_ptask_test@MyHost1) Task done (duration: 10.00 s).
66 > [MyHost1] Current peak speed=1E+08 flop/s; Energy dissipated during this step=1200.00 J; Total energy dissipated=2200 J
67 > [MyHost2] Current peak speed=1E+08 flop/s; Energy dissipated during this step=1200.00 J; Total energy dissipated=2200 J
69 > [ 20.000000] (1:energy_ptask_test@MyHost1) ========= Requesting pstate 2 for both hosts (speed should be of 2E+07 flop/s and is of 2E+07 flop/s)
70 > [ 20.000000] (1:energy_ptask_test@MyHost1) Run a task of 1E+09 flops on MyHost1 and 1E+09 flops on MyHost2.
71 > [ 70.000000] (1:energy_ptask_test@MyHost1) Task done (duration: 50.00 s).
72 > [MyHost1] Current peak speed=2E+07 flop/s; Energy dissipated during this step=5250.00 J; Total energy dissipated=7450 J
73 > [MyHost2] Current peak speed=2E+07 flop/s; Energy dissipated during this step=5250.00 J; Total energy dissipated=7450 J
75 > [ 70.000000] (1:energy_ptask_test@MyHost1) Run a task with computation and communication on two hosts.
76 > [120.000600] (1:energy_ptask_test@MyHost1) Task done (duration: 50.00 s).
77 > [MyHost1] Current peak speed=2E+07 flop/s; Energy dissipated during this step=5250.06 J; Total energy dissipated=12700 J
78 > [MyHost2] Current peak speed=2E+07 flop/s; Energy dissipated during this step=5250.06 J; Total energy dissipated=12700 J
80 > [120.000600] (1:energy_ptask_test@MyHost1) Run a task with only communication on two hosts.
81 > [120.081200] (1:energy_ptask_test@MyHost1) Task done (duration: 0.08 s).
82 > [MyHost1] Current peak speed=2E+07 flop/s; Energy dissipated during this step=7.25 J; Total energy dissipated=12707 J
83 > [MyHost2] Current peak speed=2E+07 flop/s; Energy dissipated during this step=7.25 J; Total energy dissipated=12707 J
85 > [120.081200] (1:energy_ptask_test@MyHost1) Run a task with computation on two hosts and a timeout of 20s.
86 > [140.081200] (1:energy_ptask_test@MyHost1) Finished WITH timeout
87 > [140.081200] (1:energy_ptask_test@MyHost1) Task ended (duration: 20.00 s).
88 > [MyHost1] Current peak speed=2E+07 flop/s; Energy dissipated during this step=2100.00 J; Total energy dissipated=14807 J
89 > [MyHost2] Current peak speed=2E+07 flop/s; Energy dissipated during this step=2100.00 J; Total energy dissipated=14807 J
91 > [140.081200] (1:energy_ptask_test@MyHost1) Now is time to quit!
92 > [140.081200] (0:maestro@) Total energy consumption: 29614.634000 Joules (used hosts: 29614.634000 Joules; unused/idle hosts: 0.000000)
93 > [140.081200] (0:maestro@) End of simulation.
94 > [140.081200] (0:maestro@) Energy consumption of host MyHost1: 14807.317000 Joules
95 > [140.081200] (0:maestro@) Energy consumption of host MyHost2: 14807.317000 Joules