X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9e6224ecd95ff7b6452fe9b2c088138877797542..c7a0ad9ac245dbab9317cb06ebf028118bc0c687:/examples/msg/energy/e2/energy_consumption.tesh diff --git a/examples/msg/energy/e2/energy_consumption.tesh b/examples/msg/energy/e2/energy_consumption.tesh index 7f2087bfe6..8f1e1ce57a 100644 --- a/examples/msg/energy/e2/energy_consumption.tesh +++ b/examples/msg/energy/e2/energy_consumption.tesh @@ -1,29 +1,22 @@ #! ./tesh -p Testing the mechanism for computing host energy consumption +p Testing the mechanism for computing host energy consumption ! output sort -$ $SG_TEST_EXENV energy/e2/e2$EXEEXT ${srcdir:=.}/energy/e2/platform_e2.xml ${srcdir:=.}/energy/e2/deployment_e2.xml --log=surf_cpu.thres:debug --log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n -> [ 0.000000] (0:@) CPU create: peak=100000000.000000, pstate=0 -> [ 0.000000] (1:dvfs_test@MyHost1) Current power peak=100000000.000000 -> [ 0.000000] (1:dvfs_test@MyHost1) Total energy (Joules): 0.000000 -> [ 1.000000] (0:@) [cpu_update_energy] action time interval=(0.000000-1.000000), current power peak=100000000.000000, current pstate=0 -> [ 1.000000] (0:@) [get_current_watts] min_power=95.000000, max_power=200.000000, slope=105.000000 -> [ 1.000000] (0:@) [get_current_watts] Current power (watts) = 200.000000, load = 1.000000 -> [ 1.000000] (0:@) [cpu_update_energy] old_energy_value=0.000000, action_energy_value=200.000000 -> [ 1.000000] (1:dvfs_test@MyHost1) Task1 simulation time: 1.000000e+00 -> [ 1.000000] (1:dvfs_test@MyHost1) Total energy (Joules): 200.000000 -> [ 1.000000] (1:dvfs_test@MyHost1) =========Changing power peak value to 20000000.000000 (at index 2) -> [ 6.000000] (0:@) [cpu_update_energy] action time interval=(1.000000-6.000000), current power peak=20000000.000000, current pstate=2 -> [ 6.000000] (0:@) [get_current_watts] min_power=90.000000, max_power=150.000000, slope=60.000000 -> [ 6.000000] (0:@) [get_current_watts] Current power (watts) = 150.000000, load = 1.000000 -> [ 6.000000] (0:@) [cpu_update_energy] old_energy_value=200.000000, action_energy_value=750.000000 -> [ 6.000000] (1:dvfs_test@MyHost1) Task2 simulation time: 5.000000e+00 -> [ 6.000000] (1:dvfs_test@MyHost1) Total energy (Joules): 950.000000 -> [ 9.000000] (0:@) [cpu_update_energy] action time interval=(6.000000-9.000000), current power peak=20000000.000000, current pstate=2 -> [ 9.000000] (0:@) [get_current_watts] min_power=90.000000, max_power=150.000000, slope=60.000000 -> [ 9.000000] (0:@) [get_current_watts] Current power (watts) = 90.000000, load = 0.000000 -> [ 9.000000] (0:@) [cpu_update_energy] old_energy_value=950.000000, action_energy_value=270.000000 -> [ 9.000000] (1:dvfs_test@MyHost1) Task3 (sleep) simulation time: 4.000000e+00 -> [ 9.000000] (1:dvfs_test@MyHost1) Total energy (Joules): 1220.000000 -> [ 9.000000] (0:@) Total simulation time: 9.000000e+00 +$ $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" +> [ 0.000000] (1:dvfs_test@MyHost1) Energetic profile: 95.0:200.0, 93.0:170.0, 90.0:150.0 +> [ 0.000000] (1:dvfs_test@MyHost1) Initial peak speed=1E+08 flop/s; Energy dissipated =0E+00 J +> [ 0.000000] (1:dvfs_test@MyHost1) Sleep for 10 seconds +> [ 10.000000] (1:dvfs_test@MyHost1) Done sleeping (duration: 10.00 s). Current peak speed=1E+08; Energy dissipated=950.00 J +> [ 10.000000] (1:dvfs_test@MyHost1) Run a task for 100E6 flops +> [ 11.000000] (1:dvfs_test@MyHost1) Task done (duration: 1.00 s). Current peak speed=1E+08 flop/s; Energy dissipated=1150 J +> [ 11.000000] (1:dvfs_test@MyHost1) ========= Requesting pstate 2 (speed should be of 20000000.00 flop/s and is of 20000000.00 flop/s) +> [ 11.000000] (1:dvfs_test@MyHost1) Run a task for 100E6 flops +> [ 16.000000] (1:dvfs_test@MyHost1) Task done (duration: 5.00 s). Current peak speed=2E+07 flop/s; Energy dissipated=1900 J +> [ 16.000000] (1:dvfs_test@MyHost1) Sleep for 4 seconds +> [ 20.000000] (1:dvfs_test@MyHost1) Done sleeping (duration: 4.00 s). Current peak speed=2E+07 flop/s; Energy dissipated=2260 J +> [ 20.000000] (1:dvfs_test@MyHost1) Turning MyHost2 off, and sleeping another 10 seconds. MyHost2 dissipated 2000 J so far. +> [ 30.000000] (0:@) Total simulation time: 30.00 +> [ 30.000000] (0:@) Total energy of host MyHost1: 3160.000000 Joules +> [ 30.000000] (0:@) Total energy of host MyHost2: 2100.000000 Joules +> [ 30.000000] (1:dvfs_test@MyHost1) Done sleeping (duration: 10.00 s). Current peak speed=2E+07 flop/s; Energy dissipated=3160 J