Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
f94a06d907ffd08e0ae32bbcec843de1864619a2
[simgrid.git] / examples / java / cloud / energy / energy.tesh
1 #! tesh
2
3 $ java -classpath ${classpath:=.} cloud/energy/Main ${srcdir:=.}/../platforms/energy_platform.xml
4 > [0.000000] [jmsg/INFO] Using regular java threads.
5 > [MyHost1:energy VM runner:(1) 0.000000] [jmsg/INFO] Creating and starting two VMs
6 > [0.000000] [surf_vm/INFO] Create VM(vmHost1)@PM(MyHost1) with 0 mounted disks
7 > [0.000000] [surf_vm/INFO] Create VM(vmHost3)@PM(MyHost3) with 0 mounted disks
8 > [MyHost1:energy VM runner:(1) 0.000000] [jmsg/INFO] Create two tasks on Host1: one inside a VM, the other directly on the host
9 > [MyHost1:energy VM runner:(1) 0.000000] [jmsg/INFO] Create two tasks on Host2: both directly on the host
10 > [MyHost1:energy VM runner:(1) 0.000000] [jmsg/INFO] Create two tasks on Host3: both inside a VM
11 > [MyHost1:energy VM runner:(1) 0.000000] [jmsg/INFO] Wait 5 seconds. The tasks are still running (they run for 3 seconds, but 2 tasks are co-located, so they run for 6 seconds)
12 > [MyHost1:energy VM runner:(1) 5.000000] [jmsg/INFO] Wait another 5 seconds. The tasks stop at some point in between
13 > [10.000000] [jmsg/INFO] MSG_main finished; Cleaning up the simulation...
14 > [10.000000] [surf_energy/INFO] Total energy of host MyHost1: 1000.000000 Joules
15 > [10.000000] [surf_energy/INFO] Total energy of host MyHost2: 1000.000000 Joules
16 > [10.000000] [surf_energy/INFO] Total energy of host MyHost3: 1000.000000 Joules