Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix an example of vm migration
authorTakahiro Hirofuchi <t.hirofuchi+sg@aist.go.jp>
Wed, 18 Dec 2013 14:42:36 +0000 (15:42 +0100)
committerTakahiro Hirofuchi <t.hirofuchi+sg@aist.go.jp>
Wed, 18 Dec 2013 15:31:13 +0000 (16:31 +0100)
examples/msg/cloud/simple_vm.c

index e61c01c..630084f 100644 (file)
@@ -252,6 +252,12 @@ static int master_main(int argc, char *argv[])
   XBT_INFO("## Test 6 (started): Check migration impact (not yet implemented neither on the CPU resource nor on the network one");
   XBT_INFO("### Relocate VM0 between PM0 and PM1");
   vm0 = MSG_vm_create_core(pm0, "VM0");
+  {
+    s_ws_params_t params;
+    memset(&params, 0, sizeof(params));
+    params.ramsize = 1L * 1024 * 1024 * 1024; // 1Gbytes
+    MSG_host_set_params(vm0, &params);
+  }
   MSG_vm_start(vm0);
   launch_communication_worker(vm0, pm2);
   MSG_process_sleep(0.01);