Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
every setter in s4u::Activity return the activity
[simgrid.git] / examples / msg / energy-onoff / platform_onoff.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     <!-- That may be seen as a misuse of the pstate mechanism and crude hack, but this is efficient: we can do what 
9          we want without too much burden, and since the whole intelligence is at user level, we do control the model. 
10
11          The same could be done to encode the time and energy to switch between pstates. These times seem negligible 
12          in our experiments, but if they are important to you, now you know how to do that. -->
13
14     <!-- pstate values:
15       * 0-2: real pstates
16          0: p1 100 MFlops/s, [idle: 95W -> full burning: 200W]
17          1: p2  50 MFlops/s, [idle: 93W -> full burning: 170W]
18          2: p3  20 MFlops/s, [idel: 90W -> full burning: 150W] 
19       * 3: booting up was measured to take 150s and 18000J.
20            So we create a pstate with 1 flop/150 s so that the application burns 1 flop in that virtual pstate to
21            simulate a boot.
22            Multiply everything by 1000 or whatever if this trick is too painful to you, that's the same by the end.
23            The energy consumption is 18000/150=120W
24       * 4: shutting down was measured to take 7 s and 770 J
25
26       Please note that we tried to put sensible values in this file but you should still take them with a grain of salt.
27       If you want a realistic simulation, you have to actually benchmark your platform and application, and use the 
28       values that are right for you. -->
29
30     <host id="MyHost1" speed="100.0Mf,50.0Mf,20.0Mf,                               0.006666667f,0.1429f" pstate="0" >
31       <prop id="watt_per_state" value="95.0:200.0,93.0:170.0,90.0:150.0, 120:120,110:110" />
32       <prop id="watt_off"       value="10" />
33     </host>
34     <host id="MyHost2" speed="100.0Mf" >
35       <prop id="watt_per_state" value="100.0:200.0" />
36       <prop id="watt_off"       value="10" />
37     </host>
38
39     <link id="link1" bandwidth="100kBps" latency="0"/>
40     <route src="MyHost1" dst="MyHost2">
41       <link_ctn id="link1"/>
42     </route>
43   </zone>
44 </platform>