Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix the default working set size of migration
authorTakahiro Hirofuchi <t.hirofuchi+sg@aist.go.jp>
Thu, 24 Apr 2014 08:06:01 +0000 (17:06 +0900)
committerTakahiro Hirofuchi <t.hirofuchi+sg@aist.go.jp>
Thu, 24 Apr 2014 08:27:26 +0000 (17:27 +0900)
Cherry-pick from the hypervisor branch.
Note that 90% is just an example. More cleanup and documentation should
be necessary.

Conflicts:
src/msg/msg_vm.c

src/msg/msg_vm.c

index a4d0401..c45ad9c 100644 (file)
@@ -190,7 +190,7 @@ msg_vm_t MSG_vm_create(msg_host_t ind_pm, const char *name,
   params.skip_stage2 = 0;
   params.max_downtime = 0.03;
   params.dp_rate = (update_speed * 1024 * 1024) / host_speed;
-  params.dp_cap = params.ramsize / 0.9; // working set memory is 90%
+  params.dp_cap = params.ramsize * 0.9; // assume working set memory is 90% of ramsize
   params.mig_speed = (double)mig_netspeed * 1024 * 1024; // mig_speed
 
   //XBT_INFO("dp rate %f migspeed : %f intensity mem : %d, updatespeed %f, hostspeed %f",params.dp_rate, params.mig_speed, dp_intensity, update_speed, host_speed);