SimGrid  3.18
Versatile Simulation of Distributed Systems
examples/platforms/energy_platform.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  <!-- Multiple pstate processor capacities can be defined as a list of powers specified for a given host -->
6  <!-- Attribute 'pstate' specifies the initialy selected pstate (here, the lowest pstate corresponds to the highest
7  processor speed) -->
8  <host id="MyHost1" speed="100.0Mf,50.0Mf,20.0Mf" pstate="0" core="4" >
9  <!-- List of Idle:OneCore:AllCores (in Watts) corresponding to the speed consumed when the processor is idle
10  and when one core is at full speed, and when all cores are fully loaded -->
11  <!-- The list must contain one energetic profile for each previously defined pstate-->
12  <prop id="watt_per_state" value="100.0:120.0:200.0, 93.0:110.0:170.0, 90.0:105.0:150.0" />
13  <prop id="watt_off" value="10" />
14  </host>
15 
16  <host id="MyHost2" speed="100.0Mf,50.0Mf,20.0Mf" pstate="0" core="1" >
17  <!-- This host is mono-core, so AllCores=OneCore and is omitted -->
18  <prop id="watt_per_state" value="100.0:200.0, 93.0:170.0, 90.0:150.0" />
19  <prop id="watt_off" value="10" />
20  </host>
21 
22  <host id="MyHost3" speed="100.0Mf,50.0Mf,20.0Mf" pstate="0" core="1" >
23  <!-- This host is mono-core, so AllCores=OneCore and is omitted -->
24  <prop id="watt_per_state" value="100.0:200.0, 93.0:170.0, 90.0:150.0" />
25  <prop id="watt_off" value="10" />
26  </host>
27 
28  <link id="bus" bandwidth="100kBps" latency="0" sharing_policy="SHARED">
29 <!-- REALISTIC VALUES <prop id="watt_range" value="10.3581:10.7479" /> -->
30 <!-- IREALISTIC VALUES FOR THE TEST --> <prop id="watt_range" value="1:3" />
31  </link>
32  <route src="MyHost1" dst="MyHost2">
33  <link_ctn id="bus"/>
34  </route>
35  <route src="MyHost1" dst="MyHost3">
36  <link_ctn id="bus"/>
37  </route>
38  <route src="MyHost2" dst="MyHost3">
39  <link_ctn id="bus"/>
40  </route>
41  </zone>
42 </platform>