X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d33aed39822fd01eb92af242ea062507d440479c..2534be6f143eb3b32a2dc3ea116a0f4510d4f0d5:/examples/java/energy/vm/energy_vm.tesh diff --git a/examples/java/energy/vm/energy_vm.tesh b/examples/java/energy/vm/energy_vm.tesh new file mode 100644 index 0000000000..da07646e25 --- /dev/null +++ b/examples/java/energy/vm/energy_vm.tesh @@ -0,0 +1,14 @@ +#! tesh + +$ java -classpath ${classpath:=.} energy/vm/Main ${srcdir:=.}/../platforms/energy_platform.xml +> [0.000000] [jmsg/INFO] Using regular java threads. +> [MyHost1:energy VM runner:(1) 0.000000] [jmsg/INFO] Creating and starting two VMs +> [MyHost1:energy VM runner:(1) 0.000000] [jmsg/INFO] Create two tasks on Host1: one inside a VM, the other directly on the host +> [MyHost1:energy VM runner:(1) 0.000000] [jmsg/INFO] Create two tasks on Host2: both directly on the host +> [MyHost1:energy VM runner:(1) 0.000000] [jmsg/INFO] Create two tasks on Host3: both inside a VM +> [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) +> [MyHost1:energy VM runner:(1) 5.000000] [jmsg/INFO] Wait another 5 seconds. The tasks stop at some point in between +> [10.000000] [jmsg/INFO] MSG_main finished; Cleaning up the simulation... +> [10.000000] [surf_energy/INFO] Total energy of host MyHost1: 1000.000000 Joules +> [10.000000] [surf_energy/INFO] Total energy of host MyHost2: 1000.000000 Joules +> [10.000000] [surf_energy/INFO] Total energy of host MyHost3: 1000.000000 Joules