Received: from eggs.gnu.org ([2001:4830:134:3::10]:49426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WT1Ry-0001KT-Ad for qemu-devel@nongnu.org; Wed, 26 Mar 2014 23:58:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WT1Rq-00007W-2E for qemu-devel@nongnu.org; Wed, 26 Mar 2014 23:57:54 -0400 Received: from e23smtp09.au.ibm.com ([202.81.31.142]:50576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WT1Ro-0008NV-76 for qemu-devel@nongnu.org; Wed, 26 Mar 2014 23:57:46 -0400 Received: from /spool/local by e23smtp09.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 27 Mar 2014 13:57:34 +1000 Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [9.190.234.120]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id 7A5C3357804F for ; Thu, 27 Mar 2014 14:57:31 +1100 (EST) Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s2R3bAJe61079614 for ; Thu, 27 Mar 2014 14:37:11 +1100 Received: from d23av02.au.ibm.com (localhost [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s2R3vTZZ001613 for ; Thu, 27 Mar 2014 14:57:30 +1100 From: Alexey Kardashevskiy Date: Thu, 27 Mar 2014 14:57:26 +1100 Message-Id: <1395892646-30283-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH] migration: Increase default max_downtime from 30ms to 300ms List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , Paolo Bonzini , "Dr . David Alan Gilbert" The existing timeout is 30ms which on 100MB/s (1Gbit) gives us 3MB/s rate maximum. If we put some load on the guest, it is easy to get page dirtying rate too big so live migration will never complete. In the case of libvirt that means that the guest will be stopped anyway after a timeout specified in the "virsh migrate" command and this normally generates even bigger delay. This changes max_downtime to 300ms which seems to be more reasonable value. Signed-off-by: Alexey Kardashevskiy --- migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration.c b/migration.c index e0e24d4..02bbce9 100644 --- a/migration.c +++ b/migration.c @@ -144,7 +144,7 @@ void process_incoming_migration(QEMUFile *f) * the choice of nanoseconds is because it is the maximum resolution that * get_clock() can achieve. It is an internal measure. All user-visible * units must be in seconds */ -static uint64_t max_downtime = 30000000; +static uint64_t max_downtime = 300000000; uint64_t migrate_max_downtime(void) { -- 1.8.4.rc4