File: energy_vm.java.tesh

package info (click to toggle)
simgrid 4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,192 kB
  • sloc: cpp: 124,913; ansic: 66,744; python: 8,560; java: 6,773; fortran: 6,079; f90: 5,123; xml: 4,587; sh: 2,194; perl: 1,436; makefile: 111; lisp: 49; javascript: 7; sed: 6
file content (23 lines) | stat: -rw-r--r-- 1,744 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env tesh

p Testing the mechanism for computing host energy consumption in case of VMs

$ ${javacmd} -cp ../../simgrid.jar:energy_vm.jar energy_vm ${platfdir}/energy_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
> [  0.000000] (0:maestro@) Using regular java threads.
> [  0.000000] (1:dvfs@MyHost1) Creating and starting two VMs
> [  0.000000] (1:dvfs@MyHost1) Create two activities on Host1: both inside a VM
> [  0.000000] (1:dvfs@MyHost1) Create two activities on Host2: one inside a VM, the other directly on the host
> [  0.000000] (1:dvfs@MyHost1) Create two activities on Host3: both directly on the host
> [  0.000000] (1:dvfs@MyHost1) Wait 5 seconds. The activities are still running (they run for 3 seconds, but 2 activities are co-located, so they run for 6 seconds)
> [  5.000000] (1:dvfs@MyHost1) Wait another 5 seconds. The activities stop at some point in between
> [  6.000000] (5:p22@MyHost2) This worker is done.
> [  6.000000] (7:p32@MyHost3) This worker is done.
> [  6.000000] (6:p31@MyHost3) This worker is done.
> [  6.000000] (3:p12@vm_host1) This worker is done.
> [  6.000000] (2:p11@vm_host1) This worker is done.
> [  6.000000] (4:p21@vm_host2) This worker is done.
> [ 10.000000] (0:maestro@) Total energy consumption: 4320.000000 Joules (used hosts: 4320.000000 Joules; unused/idle hosts: 0.000000)
> [ 10.000000] (0:maestro@) Simulation ends. Host2 and Host3 must have the exact same energy consumption; Host1 is multi-core and will differ.
> [ 10.000000] (0:maestro@) Energy consumption of host MyHost1: 1120.000000 Joules
> [ 10.000000] (0:maestro@) Energy consumption of host MyHost2: 1600.000000 Joules
> [ 10.000000] (0:maestro@) Energy consumption of host MyHost3: 1600.000000 Joules