Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
convert another example to S4U (and document it)
[simgrid.git] / 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       * 3: booting up was measured to take 150s and 18000J.
17            So we create a pstate 3 consuming 18000J/150s=120W, and a boot remains at this pstate for 150s.
18            Speed is set at 0 flop/s so that nothing progresses during the boot.
19       * 4: shutting down was measured to take 7 s and 770 J
20            So we create a pstate 4 consuming 770J/7s=110W, and a boot remains at this pstate for 7s.
21
22       Please note that even if these values are educated guesses, you should still challenge them.
23       If you want a realistic simulation, you have to use values coming from a real benchmark of your platform. 
24       -->
25
26     <host id="MyHost1"          speed="100.0Mf,50.0Mf,20.0Mf,                    0f,0f" pstate="0" >
27       <prop id="watt_per_state" value="95.0:200.0,93.0:170.0,90.0:150.0,         120:120,110:110" />
28       <prop id="watt_off"       value="10" />
29     </host>
30     <host id="MyHost2" speed="100.0Mf" >
31       <prop id="watt_per_state" value="100.0:200.0" />
32       <prop id="watt_off"       value="10" />
33     </host>
34
35     <link id="link1" bandwidth="100kBps" latency="0"/>
36     <route src="MyHost1" dst="MyHost2">
37       <link_ctn id="link1"/>
38     </route>
39   </zone>
40 </platform>