Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
mv example from cloud to energy
[simgrid.git] / 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 (file)
index 0000000..da07646
--- /dev/null
@@ -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