Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
give all machines the exact same energetic profil, and adapt the tests accordingly
[simgrid.git] / examples / msg / energy / vm / energy_vm.tesh
1 #! ./tesh
2
3 p Testing the mechanism for computing host energy consumption in case of VMs
4
5 $ $SG_TEST_EXENV energy/vm/energy_vm$EXEEXT ${srcdir:=.}/../platforms/energy_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
6 > [  0.000000] (1:dvfs@MyHost1) Creating and starting two VMs
7 > [  0.000000] (0:@) Create VM(vm_host1)@PM(MyHost1) with 0 mounted disks
8 > [  0.000000] (0:@) Create VM(vm_host3)@PM(MyHost3) with 0 mounted disks
9 > [  0.000000] (1:dvfs@MyHost1) Create two tasks on Host1: one inside a VM, the other directly on the host
10 > [  0.000000] (1:dvfs@MyHost1) Create two tasks on Host2: both directly on the host
11 > [  0.000000] (1:dvfs@MyHost1) Create two tasks on Host3: both inside a VM
12 > [  0.000000] (1:dvfs@MyHost1) 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)
13 > [  5.000000] (1:dvfs@MyHost1) Wait another 5 seconds. The tasks stop at some point in between
14 > [  6.000000] (4:p21@MyHost2) This worker is done.
15 > [  6.000000] (5:p22@MyHost2) This worker is done.
16 > [  6.000000] (3:p12@MyHost1) This worker is done.
17 > [  6.000000] (2:p11@vm_host1) This worker is done.
18 > [  6.000000] (6:p31@vm_host3) This worker is done.
19 > [  6.000000] (7:p32@vm_host3) This worker is done.
20 > [ 10.000000] (0:@) Total simulation time: 10.00; All hosts must have the exact same energy consumption.
21 > [ 10.000000] (0:@) Total energy of host MyHost2: 1600.000000 Joules
22 > [ 10.000000] (0:@) Total energy of host vm_host1: 1600.000000 Joules
23 > [ 10.000000] (0:@) Total energy of host vm_host3: 1600.000000 Joules