Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New functions getWattMinAt and getWattMaxAt
[simgrid.git] / examples / msg / energy / e2 / energy_consumption.tesh
1 #! ./tesh
2
3 p Testing the mechanism for computing host energy consumption
4
5 ! output sort
6 $ $SG_TEST_EXENV energy/e2/e2$EXEEXT ${srcdir:=.}/../platforms/energy_platform.xml ${srcdir:=.}/energy/e2/deployment_e2.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
7 > [  0.000000] (1:dvfs_test@MyHost1) Energetic profile: 95.0:200.0, 93.0:170.0, 90.0:150.0
8 > [  0.000000] (1:dvfs_test@MyHost1) Initial peak speed=1E+08 flop/s; Energy dissipated =0E+00 J
9 > [  0.000000] (1:dvfs_test@MyHost1) Sleep for 10 seconds
10 > [ 10.000000] (1:dvfs_test@MyHost1) Done sleeping (duration: 10.00 s). Current peak speed=1E+08; Energy dissipated=950.00 J
11 > [ 10.000000] (1:dvfs_test@MyHost1) Run a task for 100E6 flops
12 > [ 11.000000] (1:dvfs_test@MyHost1) Task done (duration: 1.00 s). Current peak speed=1E+08 flop/s; Energy dissipated=1150 J
13 > [ 11.000000] (1:dvfs_test@MyHost1) ========= Requesting pstate 2 (speed should be of 20000000.00 flop/s and is of 20000000.00 flop/s)
14 > [ 11.000000] (1:dvfs_test@MyHost1) Run a task for 100E6 flops
15 > [ 16.000000] (1:dvfs_test@MyHost1) Task done (duration: 5.00 s). Current peak speed=2E+07 flop/s; Energy dissipated=1900 J
16 > [ 16.000000] (1:dvfs_test@MyHost1) Sleep for 4 seconds
17 > [ 20.000000] (1:dvfs_test@MyHost1) Done sleeping (duration: 4.00 s). Current peak speed=2E+07 flop/s; Energy dissipated=2260 J
18 > [ 20.000000] (1:dvfs_test@MyHost1) Turning MyHost2 off, and sleeping another 10 seconds. MyHost2 dissipated 2000 J so far.
19 > [ 30.000000] (0:@) Total simulation time: 30.00
20 > [ 30.000000] (0:@) Total energy of host MyHost1: 3160.000000 Joules
21 > [ 30.000000] (0:@) Total energy of host MyHost2: 2100.000000 Joules
22 > [ 30.000000] (1:dvfs_test@MyHost1) Done sleeping (duration: 10.00 s). Current peak speed=2E+07 flop/s; Energy dissipated=3160 J