Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
id -> storageId in mount tags + example of content_type + test of
[simgrid.git] / examples / platforms / storage.xml
index 3aea6ba..451a0bf 100644 (file)
@@ -2,37 +2,52 @@
 <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid.dtd">
 
 <platform version="3">
-       <AS id="AS0" routing="Full">
-
-               <storage id="Disk1" type="HDD" content="content.txt">
-                       <prop id="Bwrite" value="30" />
-                       <prop id="Bread" value="80" />
-               </storage>
-               <storage id="Disk2" type="SSD" content="content.txt">
-                       <prop id="Bwrite" value="110" />
-                       <prop id="Bread" value="300" />
-               </storage>
-               <storage id="Disk3" type="RAID0" content="content.txt">
-                       <prop id="Bwrite" value="60" />
-                       <prop id="Bread" value="160" />
-               </storage>
-
-               <host id="bob" power="1000000000">
-                       <prop id="storage" value="Disk1" />
-               </host>
-               
-               <storage id="Disk4" type="RAID1" content="content.txt">
-                       <prop id="Bwrite" value="30" />
-                       <prop id="Bread" value="80" />
-               </storage>
+
+<config>
+  <prop id="path" value="../examples/platforms/"/>
+</config>
+
+  <AS id="AS0" routing="Full">
+
+   <storage_type id="single_HDD" model="linear_no_lat" 
+                 content="content/storage_content.txt" size="500GiB"
+                 content_type="txt_unix">
+                       <prop id="Bwrite" value="30MBps" />
+                       <prop id="Bread" value="100MBps" />
+                       <prop id="Bconnection" value="150MBps" />
+   </storage_type>
+
+   <storage_type id="single_SSD" model="linear_no_lat"
+                 content="content/storage_content.txt" size="500GiB">
+                       <prop id="Bwrite" value="30MBps" />
+                       <prop id="Bread" value="100MBps" />
+                       <prop id="Bconnection" value="150MBps" />
+               </storage_type>
+
+               <storage id="Disk1" typeId="single_HDD"/>
+               <storage id="Disk2" typeId="single_SSD"/>
+               <storage id="Disk3" typeId="single_HDD"/>
+               <storage id="Disk4" typeId="single_SSD"/>
+
+               <host id="bob" power="1Gf">
+                       <mount storageId="Disk1" name="/home"/>                 
+               </host>         
                
-               <host id="alice" power="1000000000">
-                       <prop id="storage" value="Disk4" />
-               </host> 
+               <host id="alice" power="1Gf">
+                       <mount storageId="Disk2" name="/home"/>
+               </host>
+
+               <host id="carl" power="1Gf">            
+                       <mount storageId="Disk3" name="/home"/>         
+               </host>
                
-               <link id="link1" bandwidth="125000000" latency="5E-5"/>
-               <link id="link2" bandwidth="125000000" latency="5E-5" />
-               <link id="link3" bandwidth="125000000" latency="5E-5" />
+               <host id="denise" power="1Gf">
+                       <mount storageId="Disk4" name="/home"/> 
+               </host>
+
+               <link id="link1" bandwidth="125MBps" latency="50us" />
+               <link id="link2" bandwidth="125MBps" latency="50us" />
+               <link id="link3" bandwidth="125MBps" latency="50us" />
        
                <route src="bob" dst="alice" symmetrical="YES">
                        <link_ctn id="link1" />