From: Balamuruhan S <bal...@linux.vnet.ibm.com> Based on the discussion with Dave and David Gibson earlier with respect to expected_downtime calculation,
https://lists.gnu.org/archive/html/qemu-devel/2018-04/msg02418.html got suggestions that the calculation is of not accurate and we need to consider the ram that gets redirtied during the time when we would have actually transferred ram in the current iteration. so I have came up with a calculation by considering the ram that could get redirtied during the current iteration at the time we would have transferred the remaining ram in current iteration. By this way, the total ram to be transferred will be remaining ram + redirtied ram and dividing with bandwidth would yield us better expected_downtime value. Please help to review and suggest about this approach. Balamuruhan S (1): migration: calculate expected_downtime considering redirtied ram migration/migration.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 2.14.5