File: s4u-energy-vm.tesh

package info (click to toggle)
simgrid 4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 38,980 kB
  • sloc: cpp: 123,583; ansic: 66,779; python: 8,358; java: 6,406; fortran: 6,079; f90: 5,123; xml: 4,587; sh: 2,337; perl: 1,436; makefile: 105; lisp: 49; javascript: 7; sed: 6
file content (22 lines) | stat: -rw-r--r-- 1,671 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
#!/usr/bin/env tesh

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

$ ${bindir:=.}/s4u-energy-vm ${platfdir}/energy_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
> [  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@) Total simulation time: 10.00; 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