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-boot / s4u-energy-boot.tesh
1 #!/usr/bin/env tesh
2
3 p Modeling the host energy consumption during boot and shutdown
4
5 $ ${bindir:=.}/s4u-energy-boot ${srcdir:=.}/platform_boot.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
6 > [  0.000000] (1:Boot Monitor@MyHost2) Initial pstate: 0; Energy dissipated so far:0E+00 J
7 > [  0.000000] (1:Boot Monitor@MyHost2) Sleep for 10 seconds
8 > [ 10.000000] (1:Boot Monitor@MyHost2) Done sleeping. Current pstate: 0; Energy dissipated so far: 950.00 J
9 > [ 10.000000] (1:Boot Monitor@MyHost2) Switch to virtual pstate 4, that encodes the 'shutting down' state in that platform
10 > [ 10.000000] (1:Boot Monitor@MyHost2) Wait 7 seconds to simulate the shutdown time.
11 > [ 17.000000] (1:Boot Monitor@MyHost2) Switch back to previous pstate 0, that will be used on reboot.
12 > [ 17.000000] (1:Boot Monitor@MyHost2) Actually shutdown the host
13 > [ 17.000000] (1:Boot Monitor@MyHost2) Host1 is now OFF. Current pstate: 0; Energy dissipated so far: 1720.00 J
14 > [ 17.000000] (1:Boot Monitor@MyHost2) Sleep for 10 seconds
15 > [ 27.000000] (1:Boot Monitor@MyHost2) Done sleeping. Current pstate: 0; Energy dissipated so far: 1820.00 J
16 > [ 27.000000] (1:Boot Monitor@MyHost2) Switch to virtual pstate 3, that encodes the 'booting up' state in that platform
17 > [ 27.000000] (1:Boot Monitor@MyHost2) Actually start the host
18 > [ 27.000000] (1:Boot Monitor@MyHost2) Wait 150s to simulate the boot time.
19 > [177.000000] (1:Boot Monitor@MyHost2) The host is now up and running. Switch back to previous pstate 0
20 > [177.000000] (1:Boot Monitor@MyHost2) Host1 is now ON again. Current pstate: 0; Energy dissipated so far: 19820.00 J
21 > [177.000000] (0:maestro@) Total energy consumption: 37520.000000 Joules (used hosts: 0.000000 Joules; unused/idle hosts: 37520.000000)
22 > [177.000000] (0:maestro@) End of simulation.
23 > [177.000000] (0:maestro@) Energy consumption of host MyHost1: 19820.000000 Joules
24 > [177.000000] (0:maestro@) Energy consumption of host MyHost2: 17700.000000 Joules
25
26 $ ${bindir:=.}/s4u-energy-boot ${srcdir:=.}/platform_boot.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" --cfg=host/model:ptask_L07
27 > [  0.000000] (0:maestro@) Configuration change: Set 'host/model' to 'ptask_L07'
28 > [  0.000000] (0:maestro@) Switching to the L07 model to handle parallel tasks.
29 > [  0.000000] (1:Boot Monitor@MyHost2) Initial pstate: 0; Energy dissipated so far:0E+00 J
30 > [  0.000000] (1:Boot Monitor@MyHost2) Sleep for 10 seconds
31 > [ 10.000000] (1:Boot Monitor@MyHost2) Done sleeping. Current pstate: 0; Energy dissipated so far: 950.00 J
32 > [ 10.000000] (1:Boot Monitor@MyHost2) Switch to virtual pstate 4, that encodes the 'shutting down' state in that platform
33 > [ 10.000000] (1:Boot Monitor@MyHost2) Wait 7 seconds to simulate the shutdown time.
34 > [ 17.000000] (1:Boot Monitor@MyHost2) Switch back to previous pstate 0, that will be used on reboot.
35 > [ 17.000000] (1:Boot Monitor@MyHost2) Actually shutdown the host
36 > [ 17.000000] (1:Boot Monitor@MyHost2) Host1 is now OFF. Current pstate: 0; Energy dissipated so far: 1720.00 J
37 > [ 17.000000] (1:Boot Monitor@MyHost2) Sleep for 10 seconds
38 > [ 27.000000] (1:Boot Monitor@MyHost2) Done sleeping. Current pstate: 0; Energy dissipated so far: 1820.00 J
39 > [ 27.000000] (1:Boot Monitor@MyHost2) Switch to virtual pstate 3, that encodes the 'booting up' state in that platform
40 > [ 27.000000] (1:Boot Monitor@MyHost2) Actually start the host
41 > [ 27.000000] (1:Boot Monitor@MyHost2) Wait 150s to simulate the boot time.
42 > [177.000000] (1:Boot Monitor@MyHost2) The host is now up and running. Switch back to previous pstate 0
43 > [177.000000] (1:Boot Monitor@MyHost2) Host1 is now ON again. Current pstate: 0; Energy dissipated so far: 19820.00 J
44 > [177.000000] (0:maestro@) Total energy consumption: 37520.000000 Joules (used hosts: 0.000000 Joules; unused/idle hosts: 37520.000000)
45 > [177.000000] (0:maestro@) End of simulation.
46 > [177.000000] (0:maestro@) Energy consumption of host MyHost1: 19820.000000 Joules
47 > [177.000000] (0:maestro@) Energy consumption of host MyHost2: 17700.000000 Joules