From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1yj8-0003Kp-1C for qemu-devel@nongnu.org; Fri, 19 Dec 2014 09:40:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1yiy-0000yo-TM for qemu-devel@nongnu.org; Fri, 19 Dec 2014 09:40:21 -0500 Received: from mail-wg0-x22f.google.com ([2a00:1450:400c:c00::22f]:63351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1yiy-0000xX-Nm for qemu-devel@nongnu.org; Fri, 19 Dec 2014 09:40:12 -0500 Received: by mail-wg0-f47.google.com with SMTP id n12so1502232wgh.20 for ; Fri, 19 Dec 2014 06:40:11 -0800 (PST) Sender: Paolo Bonzini Message-ID: <549438C6.5030300@redhat.com> Date: Fri, 19 Dec 2014 15:40:06 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] Live migration bug, possible missing ram in migration? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?IkZyZXJvdCwgSmVhbi1Tw6liYXN0aWVuIg==?= , qemu-devel@nongnu.org Cc: josh.durgin@inktank.com, uintela@redhat.com On 19/12/2014 14:15, Frerot, Jean-Sébastien wrote: > Hi, I've been using kvm for some time now using live migration as well > with ceph backend. Recently I started running into an issue with only > one of my VM, which happens to be a windows server (2012). When I > migrate this particular VM it seems that not all the ram is transferred. > So when the migration completes, the vm that has been migrated simply > hangs and I have to force a shutdown. Notice that not long ago it was > working fine, however I didn't notice when it started to have the issue. > > Notice that my diagnostic of the problem may be wrong, I mean the > behavior i'm having is that my VM hangs after live migration, and I > don't see the problem on other VMs. But I noticed the difference in RAM > usage by the qemu process which leads me to believe that the ram is not > fully transferred. > > before migration on node2: > 15225 libvirt+ 20 0 7128048 4.200g 13592 S 15.0 27.3 1:14.18 > qemu-system-x86 > libvirt+ 15225 52.7 27.3 7128048 4404244 ? Sl 12:57 1:14 > qemu-system-x86_64 > > after migration on node1: > 16507 libvirt+ 20 0 6571864 1.610g 13152 R 7.6 10.5 0:07.63 > qemu-system-x86 > libvirt+ 16507 15.7 10.4 6571864 1688392 ? Sl 13:00 0:08 > qemu-system-x86_64 > Windows VMs often have a lot of zero pages, because Windows zeroes pages in the background. These are migrated, but they are left unallocated on the destination machine. This is the reason why you are seeing smaller memory usage on the destination. Paolo