repository: /home/avi/kvm
branch: master
commit 65e61cf88af1ae527b2fd610e1ad8955ad7fce13
Author: Uri Lublin <[EMAIL PROTECTED]>
Date:   Sun Aug 26 12:41:40 2007 +0300

    migration: make bandwidth limitation adaptive
    
    When there seems to be no-progress (pages are getting dirty faster
    than pages are getting transferred), try harder by increasing (double)
    the bandwidth limitation.

diff --git a/qemu/migration.c b/qemu/migration.c
index cb866d7..f6e2754 100644
--- a/qemu/migration.c
+++ b/qemu/migration.c
@@ -32,7 +32,7 @@
 
 #define MIN_FINALIZE_SIZE      (200 << 10)
 #define MAX_ITERATIONS           30
-#define MAX_RAPID_WRITES          2
+#define MAX_RAPID_WRITES          5
 
 typedef struct MigrationState
 {
@@ -349,6 +349,8 @@ static void migrate_write(void *opaque)
 
     if ((s->iteration) && (s->last_updated_pages <= s->updated_pages)) {
         s->rapid_writes++; /* "dirt-speed" is faster than transfer speed */
+        if (max_throttle < (1 << 30))
+            max_throttle *= 2; /* try harder */
     }
     s->last_updated_pages = s->updated_pages;
     s->updated_pages = 0;

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-commits mailing list
kvm-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-commits

Reply via email to