From: Julien Gossa Date: Fri, 4 Mar 2016 11:37:58 +0000 (+0100) Subject: Merge branch 'master' of git+ssh://scm.gforge.inria.fr/gitroot/simgrid/simgrid X-Git-Tag: v3_13~561^2^2~4 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d3154c75960afc4f3fe7e53c835e35f2584ed97a?hp=e27a029fd9ac8f4fbeeb04faaa410c1c09422d74 Merge branch 'master' of git+ssh://scm.gforge.inria.fr/gitroot/simgrid/simgrid Only docs and output formatting work. --- diff --git a/doc/doxygen/inside_tests.doc b/doc/doxygen/inside_tests.doc index 80988e89d2..d09cbe2d35 100644 --- a/doc/doxygen/inside_tests.doc +++ b/doc/doxygen/inside_tests.doc @@ -195,9 +195,9 @@ To add a new integration test, you thus have 3 things to do: are displayed (using the #XBT_LOG_ISENABLED() macro), or the modification of the log formats to hide the timings when they depend on the host machine.\n - The script located in /tools/cmake/tesh/generate_tesh.sh can + The script located in /tools/tesh/generate_tesh can help you a lot in particular if the output is large (though a smaller output is preferable). - There are also example tesh files in the /tools/cmake/tesh/ directory, that can be useful to understand the tesh syntax. + There are also example tesh files in the /tools/tesh/ directory, that can be useful to understand the tesh syntax. - Add your test in the cmake infrastructure. For that, modify the file /tools/cmake/Tests.cmake. Make sure to diff --git a/examples/java/cloud/cloud.tesh b/examples/java/cloud/cloud.tesh index 1318b2bc42..7dd261faed 100644 --- a/examples/java/cloud/cloud.tesh +++ b/examples/java/cloud/cloud.tesh @@ -5,8 +5,6 @@ $ java -classpath ${classpath:=.} cloud/Cloud ${srcdir:=.}/../platforms/platform.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" > [ 0.000000] (0:maestro@) Using regular java threads. > [ 0.000000] (0:maestro@) Start2 hosts -> [ 0.000000] (0:maestro@) Create VM(VM00)@PM(Intel) with 0 mounted disks -> [ 0.000000] (0:maestro@) Create VM(VM01)@PM(Provost) with 0 mounted disks > [ 0.000000] (1:Master@Jacquelin) create VM00 > [ 0.000000] (1:Master@Jacquelin) Put Worker WRK00 on VM00 > [ 0.000000] (1:Master@Jacquelin) create VM01 @@ -29,9 +27,7 @@ $ java -classpath ${classpath:=.} cloud/Cloud ${srcdir:=.}/../platforms/platform > [ 4.798398] (3:WRK01@VM01) WRK01 executed task (Task01) > [1000.000000] (1:Master@Jacquelin) Migrate everyone to Fernand > [1000.000000] (1:Master@Jacquelin) Migrate VM00fromIntelto Fernand -> [1000.000000] (5:__pr_mig_tx:VM00(Intel-Fernand)@Intel) Stage 1: Gonna send 1073741824 > [3467.577368] (1:Master@Jacquelin) Migrate VM01fromProvostto Fernand -> [3467.577368] (7:__pr_mig_tx:VM01(Provost-Fernand)@Provost) Stage 1: Gonna send 1073741824 > [5931.433875] (0:maestro@) MSG_main finished; Cleaning up the simulation... > [5931.433875] (1:Master@Jacquelin) Let's shut down the simulation and kill everyone. > [5931.433875] (1:Master@Jacquelin) Master done. diff --git a/examples/java/cloud/energy/energy.tesh b/examples/java/cloud/energy/energy.tesh index f94a06d907..df7999a383 100644 --- a/examples/java/cloud/energy/energy.tesh +++ b/examples/java/cloud/energy/energy.tesh @@ -3,8 +3,6 @@ $ java -classpath ${classpath:=.} cloud/energy/Main ${srcdir:=.}/../platforms/energy_platform.xml > [0.000000] [jmsg/INFO] Using regular java threads. > [MyHost1:energy VM runner:(1) 0.000000] [jmsg/INFO] Creating and starting two VMs -> [0.000000] [surf_vm/INFO] Create VM(vmHost1)@PM(MyHost1) with 0 mounted disks -> [0.000000] [surf_vm/INFO] Create VM(vmHost3)@PM(MyHost3) with 0 mounted disks > [MyHost1:energy VM runner:(1) 0.000000] [jmsg/INFO] Create two tasks on Host1: one inside a VM, the other directly on the host > [MyHost1:energy VM runner:(1) 0.000000] [jmsg/INFO] Create two tasks on Host2: both directly on the host > [MyHost1:energy VM runner:(1) 0.000000] [jmsg/INFO] Create two tasks on Host3: both inside a VM diff --git a/examples/java/cloud/migration/migration.tesh b/examples/java/cloud/migration/migration.tesh index fd5c496e2a..0368370d49 100644 --- a/examples/java/cloud/migration/migration.tesh +++ b/examples/java/cloud/migration/migration.tesh @@ -5,30 +5,15 @@ $ java -classpath ${classpath:=.} cloud/migration/Main ${srcdir:=.}/../platforms > [host0:cloud/migration/Test:(1) 0.000000] [jmsg/INFO] This example evaluates the migration time of a VM in presence of collocated VMs on the source and the dest nodes > [host0:cloud/migration/Test:(1) 0.000000] [jmsg/INFO] The migrated VM has a memory intensity rate of 70% of the network BW and a cpu load of 90% " (see cloudcom 2013 paper "Adding a Live Migration Model Into SimGrid" for further information) > [host0:cloud/migration/Test:(1) 0.000000] [jmsg/INFO] Load of collocated VMs fluctuate between 0 and 90% in order to create a starvation issue and see whether it impacts or not the migration time -> [0.000000] [surf_vm/INFO] Create VM(vm0)@PM(host0) with 0 mounted disks -> [0.000000] [surf_vm/INFO] Create VM(vm1)@PM(host0) with 0 mounted disks -> [0.000000] [surf_vm/INFO] Create VM(vm2)@PM(host0) with 0 mounted disks -> [0.000000] [surf_vm/INFO] Create VM(vm3)@PM(host0) with 0 mounted disks -> [0.000000] [surf_vm/INFO] Create VM(vm4)@PM(host0) with 0 mounted disks -> [0.000000] [surf_vm/INFO] Create VM(vm5)@PM(host0) with 0 mounted disks -> [0.000000] [surf_vm/INFO] Create VM(vm6)@PM(host0) with 0 mounted disks -> [0.000000] [surf_vm/INFO] Create VM(vm7)@PM(host1) with 0 mounted disks -> [0.000000] [surf_vm/INFO] Create VM(vm8)@PM(host1) with 0 mounted disks -> [0.000000] [surf_vm/INFO] Create VM(vm9)@PM(host1) with 0 mounted disks -> [0.000000] [surf_vm/INFO] Create VM(vm10)@PM(host1) with 0 mounted disks -> [0.000000] [surf_vm/INFO] Create VM(vm11)@PM(host1) with 0 mounted disks -> [0.000000] [surf_vm/INFO] Create VM(vm12)@PM(host1) with 0 mounted disks > [host0:cloud/migration/Test:(1) 0.000000] [jmsg/INFO] Round trip of VM1 (load 90%) > [host0:cloud/migration/Test:(1) 0.000000] [jmsg/INFO] - Launch migration from host 0 to host 1 > [host0:cloud/migration/Test:(1) 0.000000] [jmsg/INFO] Start migration of VM vm0 to host1 > [host0:cloud/migration/Test:(1) 0.000000] [jmsg/INFO] currentLoad:90/ramSize:2048/dpIntensity:70/remaining:8.10E+11 -> [host0:__pr_mig_tx:vm0(host0-host1):(16) 0.000000] [msg_vm/INFO] Stage 1: Gonna send 2147483648 > [host0:cloud/migration/Test:(1) 35.084170] [jmsg/INFO] End of migration of VM vm0 to node host1 > [host0:cloud/migration/Test:(1) 35.084170] [jmsg/INFO] - End of Migration from host 0 to host 1 (duration:35.0841702956701) > [host0:cloud/migration/Test:(1) 35.084170] [jmsg/INFO] - Launch migration from host 1 to host 0 > [host0:cloud/migration/Test:(1) 35.084170] [jmsg/INFO] Start migration of VM vm0 to host0 > [host0:cloud/migration/Test:(1) 35.084170] [jmsg/INFO] currentLoad:90/ramSize:2048/dpIntensity:70/remaining:6.22E+11 -> [host1:__pr_mig_tx:vm0(host1-host0):(18) 35.084170] [msg_vm/INFO] Stage 1: Gonna send 2147483648 > [host0:cloud/migration/Test:(1) 67.551019] [jmsg/INFO] End of migration of VM vm0 to node host0 > [host0:cloud/migration/Test:(1) 67.551019] [jmsg/INFO] - End of Migration from host 1 to host 0 (duration:32.46684874546391) > [host0:cloud/migration/Test:(1) 67.551019] [jmsg/INFO] @@ -37,13 +22,11 @@ $ java -classpath ${classpath:=.} cloud/migration/Main ${srcdir:=.}/../platforms > [host0:cloud/migration/Test:(1) 67.551019] [jmsg/INFO] - Launch migration from host 0 to host 1 > [host0:cloud/migration/Test:(1) 67.551019] [jmsg/INFO] Start migration of VM vm0 to host1 > [host0:cloud/migration/Test:(1) 67.551019] [jmsg/INFO] currentLoad:80/ramSize:2048/dpIntensity:70/remaining:4.64E+11 -> [host0:__pr_mig_tx:vm0(host0-host1):(20) 67.551019] [msg_vm/INFO] Stage 1: Gonna send 2147483648 > [host0:cloud/migration/Test:(1) 102.635189] [jmsg/INFO] End of migration of VM vm0 to node host1 > [host0:cloud/migration/Test:(1) 102.635189] [jmsg/INFO] - End of Migration from host 0 to host 1 (duration:35.08417029567006) > [host0:cloud/migration/Test:(1) 102.635189] [jmsg/INFO] - Launch migration from host 1 to host 0 > [host0:cloud/migration/Test:(1) 102.635189] [jmsg/INFO] Start migration of VM vm0 to host0 > [host0:cloud/migration/Test:(1) 102.635189] [jmsg/INFO] currentLoad:80/ramSize:2048/dpIntensity:70/remaining:2.77E+11 -> [host1:__pr_mig_tx:vm0(host1-host0):(22) 102.635189] [msg_vm/INFO] Stage 1: Gonna send 2147483648 > [host0:cloud/migration/Test:(1) 135.102038] [jmsg/INFO] End of migration of VM vm0 to node host0 > [host0:cloud/migration/Test:(1) 135.102038] [jmsg/INFO] - End of Migration from host 1 to host 0 (duration:32.46684874546395) > [host0:cloud/migration/Test:(1) 135.102038] [jmsg/INFO] Forcefully destroy VMs diff --git a/examples/msg/cloud/master_worker_vm.tesh b/examples/msg/cloud/master_worker_vm.tesh index 66ee4581ad..37b2eb0e0f 100644 --- a/examples/msg/cloud/master_worker_vm.tesh +++ b/examples/msg/cloud/master_worker_vm.tesh @@ -5,11 +5,9 @@ p Testing the Cloud API with a simple masterslave $ $SG_TEST_EXENV ${bindir:=.}/master_worker_vm$EXEEXT --log=no_loc ${srcdir:=.}/../../platforms/platform.xml > [Jacquelin:master:(1) 0.000000] [msg_test/INFO] # Launch 2 VMs > [Jacquelin:master:(1) 0.000000] [msg_test/INFO] create VM00 on PM(Intel) -> [0.000000] [surf_vm/INFO] Create VM(VM00)@PM(Intel) with 0 mounted disks > [Jacquelin:master:(1) 0.000000] [msg_test/INFO] put a process (WRK00) on VM00 > [VM00:WRK00:(2) 0.000000] [msg_test/INFO] WRK00 is listening on mailbox(MBOX:WRK00) > [Jacquelin:master:(1) 0.000000] [msg_test/INFO] create VM01 on PM(Provost) -> [0.000000] [surf_vm/INFO] Create VM(VM01)@PM(Provost) with 0 mounted disks > [Jacquelin:master:(1) 0.000000] [msg_test/INFO] put a process (WRK01) on VM01 > [VM01:WRK01:(3) 0.000000] [msg_test/INFO] WRK01 is listening on mailbox(MBOX:WRK01) > [Jacquelin:master:(1) 0.000000] [msg_test/INFO] # Send a task to 2 worker process @@ -44,15 +42,11 @@ $ $SG_TEST_EXENV ${bindir:=.}/master_worker_vm$EXEEXT --log=no_loc ${srcdir:=.}/ > [VM01:WRK03:(5) 1097.307521] [msg_test/INFO] WRK03 received task(Task03) from mailbox(MBOX:WRK03) > [Jacquelin:master:(1) 1097.307521] [msg_test/INFO] # Migrate all VMs to PM(Intel) > [Intel:__pr_mig_tx:VM00(Intel-Intel):(7) 1097.307521] [msg_vm/WARNING] use the default max_downtime value 30ms -> [Intel:__pr_mig_tx:VM00(Intel-Intel):(7) 1097.307521] [msg_vm/INFO] Stage 1: Gonna send 1073741824 > [VM01:WRK03:(5) 1097.380336] [msg_test/INFO] WRK03 executed task(Task03) > [Provost:__pr_mig_tx:VM01(Provost-Intel):(9) 1100.382717] [msg_vm/WARNING] use the default max_downtime value 30ms -> [Provost:__pr_mig_tx:VM01(Provost-Intel):(9) 1100.382717] [msg_vm/INFO] Stage 1: Gonna send 1073741824 > [Jacquelin:master:(1) 3567.161124] [msg_test/INFO] # Migrate all VMs to PM(Provost) > [Intel:__pr_mig_tx:VM00(Intel-Provost):(11) 3567.161124] [msg_vm/WARNING] use the default max_downtime value 30ms -> [Intel:__pr_mig_tx:VM00(Intel-Provost):(11) 3567.161124] [msg_vm/INFO] Stage 1: Gonna send 1073741824 > [Intel:__pr_mig_tx:VM01(Intel-Provost):(13) 6034.900487] [msg_vm/WARNING] use the default max_downtime value 30ms -> [Intel:__pr_mig_tx:VM01(Intel-Provost):(13) 6034.900487] [msg_vm/INFO] Stage 1: Gonna send 1073741824 > [Jacquelin:master:(1) 8502.639850] [msg_test/INFO] # Shutdown the half of worker processes gracefuly. The remaining half will be forcibly killed. > [VM00:WRK00:(2) 8504.519504] [msg_test/INFO] WRK00 received task(finalize) from mailbox(MBOX:WRK00) > [VM01:WRK01:(3) 8506.399157] [msg_test/INFO] WRK01 received task(finalize) from mailbox(MBOX:WRK01) diff --git a/examples/msg/cloud/simple_vm.tesh b/examples/msg/cloud/simple_vm.tesh index f0e92583a5..e60b2c0c9b 100644 --- a/examples/msg/cloud/simple_vm.tesh +++ b/examples/msg/cloud/simple_vm.tesh @@ -15,23 +15,17 @@ $ $SG_TEST_EXENV ${bindir:=.}/simple_vm$EXEEXT --log=no_loc ${srcdir:=.}/../../p > [Fafard:master_:(1) 6.000000] [msg_test/INFO] ## Test 1 (ended) > [Fafard:master_:(1) 6.000000] [msg_test/INFO] ## Test 2 (started): check impact of running a task inside a VM (there is no degradation for the moment) > [Fafard:master_:(1) 6.000000] [msg_test/INFO] ### Put a VM on a PM, and put a task to the VM -> [6.000000] [surf_vm/INFO] Create VM(VM0)@PM(Fafard) with 0 mounted disks > [VM0:compute:(7) 6.013107] [msg_test/INFO] VM0:compute task executed 0.0131068 > [Fafard:master_:(1) 8.000000] [msg_test/INFO] ## Test 2 (ended) > [Fafard:master_:(1) 8.000000] [msg_test/INFO] ## Test 3 (started): check impact of running a task collocated with a VM (there is no VM noise for the moment) > [Fafard:master_:(1) 8.000000] [msg_test/INFO] ### Put a VM on a PM, and put a task to the PM -> [8.000000] [surf_vm/INFO] Create VM(VM0)@PM(Fafard) with 0 mounted disks > [Fafard:compute:(8) 8.013107] [msg_test/INFO] Fafard:compute task executed 0.0131068 > [Fafard:master_:(1) 10.000000] [msg_test/INFO] ## Test 3 (ended) > [Fafard:master_:(1) 10.000000] [msg_test/INFO] ## Test 4 (started): compare the cost of running two tasks inside two different VMs collocated or not (for the moment, there is no degradation for the VMs. Hence, the time should be equals to the time of test 1 > [Fafard:master_:(1) 10.000000] [msg_test/INFO] ### Put two VMs on a PM, and put a task to each VM -> [10.000000] [surf_vm/INFO] Create VM(VM0)@PM(Fafard) with 0 mounted disks -> [10.000000] [surf_vm/INFO] Create VM(VM1)@PM(Fafard) with 0 mounted disks > [VM0:compute:(9) 10.026214] [msg_test/INFO] VM0:compute task executed 0.0262137 > [VM1:compute:(10) 10.026214] [msg_test/INFO] VM1:compute task executed 0.0262137 > [Fafard:master_:(1) 12.000000] [msg_test/INFO] ### Put a VM on each PM, and put a task to each VM -> [12.000000] [surf_vm/INFO] Create VM(VM0)@PM(Fafard) with 0 mounted disks -> [12.000000] [surf_vm/INFO] Create VM(VM1)@PM(Tremblay) with 0 mounted disks > [VM1:compute:(12) 12.010194] [msg_test/INFO] VM1:compute task executed 0.0101942 > [VM0:compute:(11) 12.013107] [msg_test/INFO] VM0:compute task executed 0.0131068 > [Fafard:master_:(1) 14.000000] [msg_test/INFO] ## Test 4 (ended) @@ -42,33 +36,24 @@ $ $SG_TEST_EXENV ${bindir:=.}/simple_vm$EXEEXT --log=no_loc ${srcdir:=.}/../../p > [Tremblay:comm_rx:(18) 19.291085] [msg_test/INFO] Fafard:comm_tx to Tremblay:comm_rx => 0.291085 sec > [Tremblay:comm_rx:(16) 19.291085] [msg_test/INFO] Fafard:comm_tx to Tremblay:comm_rx => 0.291085 sec > [Fafard:master_:(1) 24.000000] [msg_test/INFO] ### Make a connection between PM0 and VM0@PM0 -> [24.000000] [surf_vm/INFO] Create VM(VM0)@PM(Fafard) with 0 mounted disks > [VM0:comm_rx:(20) 24.002265] [msg_test/INFO] Fafard:comm_tx to VM0:comm_rx => 0.00226529 sec > [Fafard:master_:(1) 29.000000] [msg_test/INFO] ### Make a connection between PM0 and VM0@PM1 -> [29.000000] [surf_vm/INFO] Create VM(VM0)@PM(Tremblay) with 0 mounted disks > [VM0:comm_rx:(22) 29.158397] [msg_test/INFO] Fafard:comm_tx to VM0:comm_rx => 0.158397 sec > [Fafard:master_:(1) 34.000000] [msg_test/INFO] ### Make two connections between PM0 and VM0@PM1 -> [34.000000] [surf_vm/INFO] Create VM(VM0)@PM(Tremblay) with 0 mounted disks > [VM0:comm_rx:(26) 34.291085] [msg_test/INFO] Fafard:comm_tx to VM0:comm_rx => 0.291085 sec > [VM0:comm_rx:(24) 34.291085] [msg_test/INFO] Fafard:comm_tx to VM0:comm_rx => 0.291085 sec > [Fafard:master_:(1) 39.000000] [msg_test/INFO] ### Make a connection between PM0 and VM0@PM1, and also make a connection between PM0 and PM1 -> [39.000000] [surf_vm/INFO] Create VM(VM0)@PM(Tremblay) with 0 mounted disks > [Tremblay:comm_rx:(30) 39.291085] [msg_test/INFO] Fafard:comm_tx to Tremblay:comm_rx => 0.291085 sec > [VM0:comm_rx:(28) 39.291085] [msg_test/INFO] Fafard:comm_tx to VM0:comm_rx => 0.291085 sec > [Fafard:master_:(1) 44.000000] [msg_test/INFO] ### Make a connection between VM0@PM0 and PM1@PM1, and also make a connection between VM0@PM0 and VM1@PM1 -> [44.000000] [surf_vm/INFO] Create VM(VM0)@PM(Fafard) with 0 mounted disks -> [44.000000] [surf_vm/INFO] Create VM(VM1)@PM(Tremblay) with 0 mounted disks > [VM1:comm_rx:(34) 44.291085] [msg_test/INFO] VM0:comm_tx to VM1:comm_rx => 0.291085 sec > [VM1:comm_rx:(32) 44.291085] [msg_test/INFO] VM0:comm_tx to VM1:comm_rx => 0.291085 sec > [Fafard:master_:(1) 49.000000] [msg_test/INFO] ## Test 5 (ended) > [Fafard:master_:(1) 49.000000] [msg_test/INFO] ## Test 6 (started): Check migration impact (not yet implemented neither on the CPU resource nor on the network one > [Fafard:master_:(1) 49.000000] [msg_test/INFO] ### Relocate VM0 between PM0 and PM1 -> [49.000000] [surf_vm/INFO] Create VM(VM0)@PM(Fafard) with 0 mounted disks > [Fafard:__pr_mig_tx:VM0(Fafard-Tremblay):(38) 49.010000] [msg_vm/WARNING] use the default max_downtime value 30ms -> [Fafard:__pr_mig_tx:VM0(Fafard-Tremblay):(38) 49.010000] [msg_vm/INFO] Stage 1: Gonna send 1073741824 > [Bourassa:comm_rx:(36) 49.204993] [msg_test/INFO] VM0:comm_tx to Bourassa:comm_rx => 0.204993 sec > [Tremblay:__pr_mig_tx:VM0(Tremblay-Fafard):(40) 191.674258] [msg_vm/WARNING] use the default max_downtime value 30ms -> [Tremblay:__pr_mig_tx:VM0(Tremblay-Fafard):(40) 191.674258] [msg_vm/INFO] Stage 1: Gonna send 1073741824 > [334.199056] [surf_vm/CRITICAL] FIXME: may need a proper handling, 1 > [Fafard:master_:(1) 339.199251] [msg_test/INFO] ## Test 6 (ended) > [339.199251] [msg_test/INFO] Bye (simulation time 339.199) diff --git a/examples/msg/cloud/two_tasks_vm.tesh b/examples/msg/cloud/two_tasks_vm.tesh index c0c543efab..c522d7b614 100644 --- a/examples/msg/cloud/two_tasks_vm.tesh +++ b/examples/msg/cloud/two_tasks_vm.tesh @@ -3,7 +3,6 @@ p Testing a vm with two successive tasks $ $SG_TEST_EXENV ${bindir:=.}/two_tasks_vm$EXEEXT ${srcdir:=.}/../../platforms/small_platform.xml -> [0.000000] [surf_vm/INFO] Create VM(VM0)@PM(Fafard) with 0 mounted disks > [VM0:compute:(2) 0.000000] [msg_test/INFO] VM0:compute task 1 created 0 > [Fafard:master_:(1) 0.000000] [msg_test/INFO] aTask remaining duration: 1e+09 > [Fafard:master_:(1) 1.000000] [msg_test/INFO] aTask remaining duration: 9.23704e+08 diff --git a/examples/msg/energy/vm/energy_vm.tesh b/examples/msg/energy/vm/energy_vm.tesh index e886b9faac..116a014606 100644 --- a/examples/msg/energy/vm/energy_vm.tesh +++ b/examples/msg/energy/vm/energy_vm.tesh @@ -4,8 +4,6 @@ p Testing the mechanism for computing host energy consumption in case of VMs $ $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" > [ 0.000000] (1:dvfs@MyHost1) Creating and starting two VMs -> [ 0.000000] (0:maestro@) Create VM(vm_host1)@PM(MyHost1) with 0 mounted disks -> [ 0.000000] (0:maestro@) Create VM(vm_host3)@PM(MyHost3) with 0 mounted disks > [ 0.000000] (1:dvfs@MyHost1) Create two tasks on Host1: one inside a VM, the other directly on the host > [ 0.000000] (1:dvfs@MyHost1) Create two tasks on Host2: both directly on the host > [ 0.000000] (1:dvfs@MyHost1) Create two tasks on Host3: both inside a VM diff --git a/src/bindings/java/jmsg_vm.cpp b/src/bindings/java/jmsg_vm.cpp index 81da0b2233..3eb6c151d6 100644 --- a/src/bindings/java/jmsg_vm.cpp +++ b/src/bindings/java/jmsg_vm.cpp @@ -131,7 +131,7 @@ Java_org_simgrid_msg_VM_internalmig(JNIEnv *env, jobject jvm, jobject jhost) { TRY{ MSG_vm_migrate(vm,host); } CATCH(e){ - XBT_INFO("CATCH EXCEPTION MIGRATION %s",e.msg); + XBT_VERB("CATCH EXCEPTION MIGRATION %s",e.msg); xbt_ex_free(e); jxbt_throw_host_failure(env, (char*)"during migration"); } diff --git a/src/msg/msg_vm.cpp b/src/msg/msg_vm.cpp index 1d0c78e90c..dd1747e9e7 100644 --- a/src/msg/msg_vm.cpp +++ b/src/msg/msg_vm.cpp @@ -610,17 +610,17 @@ static sg_size_t send_migration_data(msg_vm_t vm, msg_host_t src_pm, msg_host_t } else if (ret == MSG_TIMEOUT) { sg_size_t remaining = (sg_size_t)MSG_task_get_remaining_communication(task); sent = size - remaining; - XBT_INFO("timeout (%lf s) in sending_migration_data, remaining %llu bytes of %llu", + XBT_VERB("timeout (%lf s) in sending_migration_data, remaining %llu bytes of %llu", timeout, remaining, size); } /* FIXME: why try-and-catch is used here? */ if(ret == MSG_HOST_FAILURE){ - //XBT_INFO("SRC host failed during migration of %s (stage %d)", sg_host_name(vm), stage); + //XBT_DEBUG("SRC host failed during migration of %s (stage %d)", sg_host_name(vm), stage); MSG_task_destroy(task); THROWF(host_error, 0, "SRC host failed during migration of %s (stage %d)", sg_host_get_name(vm), stage); }else if(ret == MSG_TRANSFER_FAILURE){ - //XBT_INFO("DST host failed during migration of %s (stage %d)", sg_host_name(vm), stage); + //XBT_DEBUG("DST host failed during migration of %s (stage %d)", sg_host_name(vm), stage); MSG_task_destroy(task); THROWF(host_error, 0, "DST host failed during migration of %s (stage %d)", sg_host_get_name(vm), stage); } @@ -726,13 +726,13 @@ static int migration_tx_fun(int argc, char *argv[]) /* At stage 1, we do not need timeout. We have to send all the memory * pages even though the duration of this tranfer exceeds the timeout * value. */ - XBT_INFO("Stage 1: Gonna send %llu", ramsize); + XBT_VERB("Stage 1: Gonna send %llu", ramsize); sg_size_t sent = send_migration_data(ms->vm, ms->src_pm, ms->dst_pm, ramsize, ms->mbox, 1, 0, mig_speed, -1); remaining_size -= sent; computed_during_stage1 = lookup_computed_flop_counts(ms->vm, 1, 0); if (sent < ramsize) { - XBT_INFO("mig-stage1: timeout, force moving to stage 3"); + XBT_VERB("mig-stage1: timeout, force moving to stage 3"); skip_stage2 = 1; } else if (sent > ramsize) XBT_CRITICAL("bug"); @@ -747,7 +747,7 @@ static int migration_tx_fun(int argc, char *argv[]) double clock_post_send = MSG_get_clock(); mig_timeout -= (clock_post_send - clock_prev_send); if (mig_timeout < 0) { - XBT_INFO("The duration of stage 1 exceeds the timeout value (%lf > %lf), skip stage 2", + XBT_VERB("The duration of stage 1 exceeds the timeout value (%lf > %lf), skip stage 2", (clock_post_send - clock_prev_send), MIGRATION_TIMEOUT_DO_NOT_HARDCODE_ME); skip_stage2 = 1; } @@ -815,7 +815,7 @@ static int migration_tx_fun(int argc, char *argv[]) } else if (sent < updated_size) { /* When timeout happens, we move to stage 3. The size of memory pages * updated before timeout must be added to the remaining size. */ - XBT_INFO("mig-stage2.%d: timeout, force moving to stage 3. sent %llu / %llu, eta %lf", + XBT_VERB("mig-stage2.%d: timeout, force moving to stage 3. sent %llu / %llu, eta %lf", stage2_round, sent, updated_size, (clock_post_send - clock_prev_send)); remaining_size -= sent; @@ -899,12 +899,12 @@ static int do_migration(msg_vm_t vm, msg_host_t src_pm, msg_host_t dst_pm) if(ret == MSG_HOST_FAILURE){ // Note that since the communication failed, the owner did not change and the task should be destroyed on the other side. // Hence, just throw the execption - XBT_INFO("SRC crashes, throw an exception (m-control)"); + XBT_ERROR("SRC crashes, throw an exception (m-control)"); //MSG_process_kill(tx_process); // Adrien, I made a merge on Nov 28th 2014, I'm not sure whether this line is required or not return -1; } else if((ret == MSG_TRANSFER_FAILURE) || (ret == MSG_TIMEOUT)){ // MSG_TIMEOUT here means that MSG_host_is_avail() returned false. - XBT_INFO("DST crashes, throw an exception (m-control)"); + XBT_ERROR("DST crashes, throw an exception (m-control)"); return -2; } diff --git a/src/simix/smx_vm.cpp b/src/simix/smx_vm.cpp index 1bf7c7aa43..ae5fdbd923 100644 --- a/src/simix/smx_vm.cpp +++ b/src/simix/smx_vm.cpp @@ -60,7 +60,7 @@ static int __can_be_started(sg_host_t vm) } if (pm_overcommit) { - XBT_INFO("%s allows memory overcommit.", sg_host_get_name(pm)); + XBT_VERB("%s allows memory overcommit.", sg_host_get_name(pm)); return 1; } diff --git a/src/surf/vm_hl13.cpp b/src/surf/vm_hl13.cpp index e453e8a6d1..b0952d3446 100644 --- a/src/surf/vm_hl13.cpp +++ b/src/surf/vm_hl13.cpp @@ -142,7 +142,7 @@ VMHL13::VMHL13(VMModel *model, const char* name, xbt_dict_t props, sg_host_t hos /* FIXME: TODO: we have to periodically input GUESTOS_NOISE to the system? how ? */ p_action = sub_cpu->execution_start(0); - XBT_INFO("Create VM(%s)@PM(%s) with %ld mounted disks", + XBT_VERB("Create VM(%s)@PM(%s) with %ld mounted disks", name, p_hostPM->name().c_str(), xbt_dynar_length(p_storage)); } diff --git a/teshsuite/msg/host_on_off_processes/host_on_off_processes.tesh b/teshsuite/msg/host_on_off_processes/host_on_off_processes.tesh index 090157acf6..1f4b5830f7 100644 --- a/teshsuite/msg/host_on_off_processes/host_on_off_processes.tesh +++ b/teshsuite/msg/host_on_off_processes/host_on_off_processes.tesh @@ -68,7 +68,6 @@ $ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platfor $ ./host_on_off_processes ${srcdir:=.}/../../../examples/platforms/small_platform.xml ${srcdir:=.}/host_on_off_processes_d.xml 6 --log=no_loc --log=msg.thresh:error --log=surf_maxmin.thresh:error > [Tremblay:test_launcher:(1) 0.000000] [msg_test/INFO] Test 6: Turn on Jupiter, assign a VM on Jupiter, launch a process inside the VM, and turn off the node -> [0.000000] [surf_vm/INFO] Create VM(vm0)@PM(Jupiter) with 0 mounted disks > [vm0:process_daemon:(2) 0.000000] [msg_test/INFO] Start daemon on vm0 (76296000.000000) > [vm0:process_daemon:(2) 0.000000] [msg_test/INFO] Execute daemon > [Jupiter:process_daemonJUPI:(3) 0.000000] [msg_test/INFO] Start daemon on Jupiter (76296000.000000)