X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d965315a301933eca36c66b20d9e36a27b21a4e0..245ddc814c1b3a8ee9126f56123466d99bb523cd:/examples/java/cloud/migration/Test.java diff --git a/examples/java/cloud/migration/Test.java b/examples/java/cloud/migration/Test.java index 7edaa0a3a2..b697049f8e 100644 --- a/examples/java/cloud/migration/Test.java +++ b/examples/java/cloud/migration/Test.java @@ -39,10 +39,10 @@ public class Test extends Process{ int dpRate = 70; int load1 = 90; int load2 = 80; - + Msg.info("This example evaluates the migration time of a VM in presence of collocated VMs on the source and the dest nodes"); - Msg.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) "); + Msg.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) "); Msg.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"); XVM vm1 = null; @@ -129,6 +129,7 @@ public class Test extends Process{ endTime = Msg.getClock(); Msg.info(" - End of Migration from host 1 to host 0 (duration:"+(endTime-startTime)+")"); + Msg.info("\n \n \nRound trip of VM1 (load "+load2+"%)"); vm1.setLoad(load2); Msg.info(" - Launch migration from host 0 to host 1"); @@ -143,8 +144,9 @@ public class Test extends Process{ Msg.info(" - End of Migration from host 1 to host 0 (duration:"+(endTime-startTime)+")"); Main.setEndOfTest(); - Msg.info("Destroy VMs"); + Msg.info("Forcefully destroy VMs"); for (VM vm: vms) - vm.destroy(); + vm.finalize(); + } }