Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
every setter in s4u::Activity return the activity
[simgrid.git] / examples / msg / energy-onoff / energy-onoff.tesh
1 #! ./tesh
2
3 p Testing the mechanism for computing host energy consumption
4
5 ! output sort 19
6 $ ${bindir:=.}/energy-onoff$EXEEXT ${srcdir:=.}/platform_onoff.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
7 > [  0.000000] (1:onoff_test@MyHost2) Energetic profile: 95.0:200.0,93.0:170.0,90.0:150.0, 120:120,110:110
8 > [  0.000000] (1:onoff_test@MyHost2) Initial peak speed=1E+08 flop/s; Energy dissipated =0E+00 J
9 > [  0.000000] (1:onoff_test@MyHost2) Sleep for 10 seconds
10 > [ 10.000000] (1:onoff_test@MyHost2) Done sleeping. Current peak speed=1E+08; Energy dissipated=950.00 J
11 > [ 10.000000] (1:onoff_test@MyHost2) Switch to virtual pstate 4, that encodes the shutting down state in the XML file of that example
12 > [ 10.000000] (1:onoff_test@MyHost2) Simulate the shutdown by executing one flop on that remote host (using a parallel task)
13 > [ 16.997901] (1:onoff_test@MyHost2) Switch back to previously selected pstate 0
14 > [ 16.997901] (1:onoff_test@MyHost2) Actually shutdown the host
15 > [ 16.997901] (1:onoff_test@MyHost2) Host1 is now OFF. Current peak speed=1E+08 flop/s; Energy dissipated=1720 J
16 > [ 16.997901] (1:onoff_test@MyHost2) Sleep for 10 seconds
17 > [ 26.997901] (1:onoff_test@MyHost2) Done sleeping. Current peak speed=1E+08; Energy dissipated=1819.77 J
18 > [ 26.997901] (1:onoff_test@MyHost2) Switch to virtual pstate 3, that encodes the shutting down state in the XML file of that example
19 > [ 26.997901] (1:onoff_test@MyHost2) Actually start the host
20 > [ 26.997901] (1:onoff_test@MyHost2) Simulate the boot up by executing one flop on that host
21 > [176.997893] (0:maestro@) Total energy consumption: 37519.557482 Joules (used hosts: 37519.557482 Joules; unused/idle hosts: 0.000000)
22 > [176.997893] (0:maestro@) Total simulation time: 177.00
23 > [176.997893] (0:maestro@) Energy consumption of host MyHost1: 19819.768169 Joules
24 > [176.997893] (0:maestro@) Energy consumption of host MyHost2: 17699.789313 Joules
25 > [176.997893] (1:onoff_test@MyHost2) Switch back to previously selected pstate 0
26 > [176.997893] (1:onoff_test@MyHost2) Host1 is now ON again. Current peak speed=1E+08 flop/s; Energy dissipated=19820 J
27
28 ! output sort 19
29 $ ${bindir:=.}/energy-onoff$EXEEXT ${srcdir:=.}/platform_onoff.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" --cfg=host/model:ptask_L07
30 > [  0.000000] (0:maestro@) Configuration change: Set 'host/model' to 'ptask_L07'
31 > [  0.000000] (0:maestro@) Switching to the L07 model to handle parallel tasks.
32 > [  0.000000] (1:onoff_test@MyHost2) Energetic profile: 95.0:200.0,93.0:170.0,90.0:150.0, 120:120,110:110
33 > [  0.000000] (1:onoff_test@MyHost2) Initial peak speed=1E+08 flop/s; Energy dissipated =0E+00 J
34 > [  0.000000] (1:onoff_test@MyHost2) Sleep for 10 seconds
35 > [ 10.000000] (1:onoff_test@MyHost2) Done sleeping. Current peak speed=1E+08; Energy dissipated=950.00 J
36 > [ 10.000000] (1:onoff_test@MyHost2) Switch to virtual pstate 4, that encodes the shutting down state in the XML file of that example
37 > [ 10.000000] (1:onoff_test@MyHost2) Simulate the shutdown by executing one flop on that remote host (using a parallel task)
38 > [ 16.997901] (1:onoff_test@MyHost2) Switch back to previously selected pstate 0
39 > [ 16.997901] (1:onoff_test@MyHost2) Actually shutdown the host
40 > [ 16.997901] (1:onoff_test@MyHost2) Host1 is now OFF. Current peak speed=1E+08 flop/s; Energy dissipated=1720 J
41 > [ 16.997901] (1:onoff_test@MyHost2) Sleep for 10 seconds
42 > [ 26.997901] (1:onoff_test@MyHost2) Done sleeping. Current peak speed=1E+08; Energy dissipated=1819.77 J
43 > [ 26.997901] (1:onoff_test@MyHost2) Switch to virtual pstate 3, that encodes the shutting down state in the XML file of that example
44 > [ 26.997901] (1:onoff_test@MyHost2) Actually start the host
45 > [ 26.997901] (1:onoff_test@MyHost2) Simulate the boot up by executing one flop on that host
46 > [176.997893] (0:maestro@) Total energy consumption: 37519.557482 Joules (used hosts: 37519.557482 Joules; unused/idle hosts: 0.000000)
47 > [176.997893] (0:maestro@) Total simulation time: 177.00
48 > [176.997893] (0:maestro@) Energy consumption of host MyHost1: 19819.768169 Joules
49 > [176.997893] (0:maestro@) Energy consumption of host MyHost2: 17699.789313 Joules
50 > [176.997893] (1:onoff_test@MyHost2) Switch back to previously selected pstate 0
51 > [176.997893] (1:onoff_test@MyHost2) Host1 is now ON again. Current peak speed=1E+08 flop/s; Energy dissipated=19820 J
52