Received: from eggs.gnu.org ([2001:4830:134:3::10]:41099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHHT3-0000Um-QZ for qemu-devel@nongnu.org; Wed, 04 Sep 2013 14:06:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHHT2-0000P3-F4 for qemu-devel@nongnu.org; Wed, 04 Sep 2013 14:06:13 -0400 Received: from mail.avalus.com ([2001:41c8:10:1dd::10]:41105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHHT2-0000Oz-9J for qemu-devel@nongnu.org; Wed, 04 Sep 2013 14:06:12 -0400 Date: Wed, 04 Sep 2013 19:05:50 +0100 From: Alex Bligh Message-ID: <4E05C0A561DF799779B6023D@nimrod.local> In-Reply-To: <522768E9.9080408@redhat.com> References: <522768E9.9080408@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: [Qemu-devel] When does live migration give up? Reply-To: Alex Bligh List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, Alex Bligh Paolo, --On 4 September 2013 19:07:53 +0200 Paolo Bonzini wrote: > Il 04/09/2013 17:24, Alex Bligh ha scritto: >> We have seen a situation when migrating about 50 VMs at once where some >> of them fail. I think this is because they are dirtying pages faster than >> they can be transmitted. > > No, migration never "gives up". It may never converge, but it keeps > trying until cancelled. > > Could it be that you are choosing migration server ports from a small > range, and some of them are failing because two migrations pick the same > random port for the destination (which is where the server socket lies)? Should not be that. We create FDs (which are sockets) and pass them in at both ends. Approx 10% of migrations die after many minutes on the customer's platform. This does not appear to happen if migrations are not carried out 50 at a time. We appear to be getting something other than 'ms' returned through the monitoring system. Unhelpfully what that is is not logged. Is there anything (apart from the socket closing prematurely) which can cause a failed migration after many minutes? We've seen problems where the destination is not set up the same as the source (e.g. different numbers of NICs) but IIRC that fails much earlier. To make things easier (cough), this is qemu 1.0 (as shipped with Ubuntu Precise). -- Alex Bligh