qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 1/4] migration: change initial value of expected_dow


From: Juan Quintela
Subject: [Qemu-devel] [PATCH 1/4] migration: change initial value of expected_downtime
Date: Fri, 22 Feb 2013 11:16:38 +0100

0 is a very bad initial value, what we are trying to get is
max_downtime, so that is a much better estimation.

Signed-off-by: Juan Quintela <address@hidden>


Reviewed-by: Orit Wasserman <address@hidden>
---
 migration.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/migration.c b/migration.c
index b1ebb01..b3f5ba4 100644
--- a/migration.c
+++ b/migration.c
@@ -774,6 +774,8 @@ void migrate_fd_connect(MigrationState *s)
     s->buffer = NULL;
     s->buffer_size = 0;
     s->buffer_capacity = 0;
+    /* This is a best 1st approximation. ns to ms */
+    s->expected_downtime = max_downtime/1000000;

     s->xfer_limit = s->bandwidth_limit / XFER_LIMIT_RATIO;
     s->complete = false;
-- 
1.8.1.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]