Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' into CRTP
[simgrid.git] / examples / s4u / energy-exec-ptask / s4u-energy-exec-ptask.tesh
1 #!/usr/bin/env tesh
2
3 p Testing the mechanism for computing host energy consumption
4
5 $ ${bindir:=.}/s4u-energy-exec-ptask ${platfdir}/energy_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%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
16 >
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
21 >
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
27 >
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
32 >
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
37 >
38 > [470.000000] (1:energy_ptask_test@MyHost1) Now is time to quit!
39 > [470.000000] (0:maestro@) Total energy consumption: 149700.000000 Joules (used hosts: 102700.000000 Joules; unused/idle hosts: 47000.000000)
40 > [470.000000] (0:maestro@) End of simulation.
41 > [470.000000] (0:maestro@) Energy consumption of host MyHost1: 44200.000000 Joules
42 > [470.000000] (0:maestro@) Energy consumption of host MyHost2: 58500.000000 Joules
43 > [470.000000] (0:maestro@) Energy consumption of host MyHost3: 47000.000000 Joules
44
45
46 $ ${bindir:=.}/s4u-energy-exec-ptask ${platfdir}/energy_cluster.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
47 > [  0.000000] (0:maestro@) Configuration change: Set 'host/model' to 'ptask_L07'
48 > [  0.000000] (0:maestro@) Switching to the L07 model to handle parallel tasks.
49 > [  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
50 > [  0.000000] (1:energy_ptask_test@MyHost1) [MyHost1] Initial peak speed=1E+08 flop/s; Total energy dissipated =0E+00 J
51 > [  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
52 > [  0.000000] (1:energy_ptask_test@MyHost1) [MyHost2] Initial peak speed=1E+08 flop/s; Total energy dissipated =0E+00 J
53 > [  0.000000] (1:energy_ptask_test@MyHost1) Sleep for 10 seconds
54 > [ 10.000000] (1:energy_ptask_test@MyHost1) Done sleeping (duration: 10.00 s).
55 > [MyHost1] Current peak speed=1E+08; Energy dissipated during this step=1000.00 J; Total energy dissipated=1000.00 J
56 > [MyHost2] Current peak speed=1E+08; Energy dissipated during this step=1000.00 J; Total energy dissipated=1000.00 J
57 >
58 > [ 10.000000] (1:energy_ptask_test@MyHost1) Run a task of 1E+09 flops on two hosts
59 > [ 20.000000] (1:energy_ptask_test@MyHost1) Task done (duration: 10.00 s).
60 > [MyHost1] Current peak speed=1E+08 flop/s; Energy dissipated during this step=1200.00 J; Total energy dissipated=2200 J
61 > [MyHost2] Current peak speed=1E+08 flop/s; Energy dissipated during this step=1200.00 J; Total energy dissipated=2200 J
62 >
63 > [ 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)
64 > [ 20.000000] (1:energy_ptask_test@MyHost1) Run a task of 1E+09 flops on MyHost1 and 1E+09 flops on MyHost2.
65 > [ 70.000000] (1:energy_ptask_test@MyHost1) Task done (duration: 50.00 s).
66 > [MyHost1] Current peak speed=2E+07 flop/s; Energy dissipated during this step=5250.00 J; Total energy dissipated=7450 J
67 > [MyHost2] Current peak speed=2E+07 flop/s; Energy dissipated during this step=5250.00 J; Total energy dissipated=7450 J
68 >
69 > [ 70.000000] (1:energy_ptask_test@MyHost1) Run a task with computation and communication on two hosts.
70 > [120.000600] (1:energy_ptask_test@MyHost1) Task done (duration: 50.00 s).
71 > [MyHost1] Current peak speed=2E+07 flop/s; Energy dissipated during this step=5250.06 J; Total energy dissipated=12700 J
72 > [MyHost2] Current peak speed=2E+07 flop/s; Energy dissipated during this step=5250.06 J; Total energy dissipated=12700 J
73 >
74 > [120.000600] (1:energy_ptask_test@MyHost1) Run a task with only communication on two hosts.
75 > [120.081200] (1:energy_ptask_test@MyHost1) Task done (duration: 0.08 s).
76 > [MyHost1] Current peak speed=2E+07 flop/s; Energy dissipated during this step=7.25 J; Total energy dissipated=12707 J
77 > [MyHost2] Current peak speed=2E+07 flop/s; Energy dissipated during this step=7.25 J; Total energy dissipated=12707 J
78 >
79 > [120.081200] (1:energy_ptask_test@MyHost1) Now is time to quit!
80 > [120.081200] (0:maestro@) Total energy consumption: 25414.634000 Joules (used hosts: 25414.634000 Joules; unused/idle hosts: 0.000000)
81 > [120.081200] (0:maestro@) End of simulation.
82 > [120.081200] (0:maestro@) Energy consumption of host MyHost1: 12707.317000 Joules
83 > [120.081200] (0:maestro@) Energy consumption of host MyHost2: 12707.317000 Joules