Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove some smells in Java
[simgrid.git] / examples / java / energy / vm / energy_vm.tesh
1 #! tesh
2
3 $ java -classpath ${classpath:=.} energy/vm/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 > [MyHost1:energy VM runner:(1) 0.000000] [jmsg/INFO] Create two tasks on Host1: one inside a VM, the other directly on the host
7 > [MyHost1:energy VM runner:(1) 0.000000] [jmsg/INFO] Create two tasks on Host2: both directly on the host
8 > [MyHost1:energy VM runner:(1) 0.000000] [jmsg/INFO] Create two tasks on Host3: both inside a VM
9 > [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)
10 > [MyHost1:energy VM runner:(1) 5.000000] [jmsg/INFO] Wait another 5 seconds. The tasks stop at some point in between
11 > [10.000000] [jmsg/INFO] MSG_main finished; Cleaning up the simulation...
12 > [10.000000] [surf_energy/INFO] Total energy of host MyHost1: 1000.000000 Joules
13 > [10.000000] [surf_energy/INFO] Total energy of host MyHost2: 1000.000000 Joules
14 > [10.000000] [surf_energy/INFO] Total energy of host MyHost3: 1000.000000 Joules