SimGrid  3.18
Versatile Simulation of Distributed Systems
examples/s4u/energy-boot/platform_boot.xml
1 <?xml version='1.0'?>
2 <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid/simgrid.dtd">
3 <platform version="4.1">
4  <zone id="AS0" routing="Full">
5 
6  <!-- Use the pstate mechanism to encode the boot/shutdown time and energy.
7  --
8  -- See the C++ file in the same directory for more information.
9  -->
10 
11  <!-- pstate values:
12  * 0-2: real pstates
13  0: p1 100 MFlops/s, [idle: 95W -> full burning: 200W]
14  1: p2 50 MFlops/s, [idle: 93W -> full burning: 170W]
15  2: p3 20 MFlops/s, [idel: 90W -> full burning: 150W]
16 
17  * 3: booting up was measured to take 150s and 18000J.
18  So we create a pstate 3 consuming 18000J/150s=120W, and a boot remains at this pstate for 150s.
19  Speed is set at 0 flop/s so that nothing progresses during the boot.
20  * 4: shutting down was measured to take 7 s and 770 J
21  So we create a pstate 4 consuming 770J/7s=110W, and a shutdown remains at this pstate for 7s.
22 
23  Please note that even if these values are educated guesses, you should still challenge them.
24  If you want a realistic simulation, you must use values coming from a real benchmark of your platform.
25  -->
26 
27  <host id="MyHost1" speed="100.0Mf,50.0Mf,20.0Mf, 0f,0f" pstate="0" >
28  <prop id="watt_per_state" value="95.0:200.0,93.0:170.0,90.0:150.0, 120:120,110:110" />
29  <prop id="watt_off" value="10" />
30  </host>
31  <host id="MyHost2" speed="100.0Mf" >
32  <prop id="watt_per_state" value="100.0:200.0" />
33  <prop id="watt_off" value="10" />
34  </host>
35 
36  <link id="link1" bandwidth="100kBps" latency="0"/>
37  <route src="MyHost1" dst="MyHost2">
38  <link_ctn id="link1"/>
39  </route>
40  </zone>
41 </platform>