From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:39342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHy3U-0007Z5-8X for qemu-devel@nongnu.org; Tue, 19 Mar 2013 11:02:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHy3O-0001Ar-11 for qemu-devel@nongnu.org; Tue, 19 Mar 2013 11:02:24 -0400 Received: from e8.ny.us.ibm.com ([32.97.182.138]:37490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHy3N-0001An-TS for qemu-devel@nongnu.org; Tue, 19 Mar 2013 11:02:17 -0400 Received: from /spool/local by e8.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 19 Mar 2013 11:02:17 -0400 Received: from d01relay01.pok.ibm.com (d01relay01.pok.ibm.com [9.56.227.233]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id 6A4F238C806E for ; Tue, 19 Mar 2013 11:02:13 -0400 (EDT) Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay01.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r2JF2D8f159694 for ; Tue, 19 Mar 2013 11:02:13 -0400 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r2JF2ChD027190 for ; Tue, 19 Mar 2013 11:02:12 -0400 Message-ID: <51487DF4.9080601@linux.vnet.ibm.com> Date: Tue, 19 Mar 2013 11:02:12 -0400 From: "Michael R. Hines" MIME-Version: 1.0 References: <1363576743-6146-1-git-send-email-mrhines@linux.vnet.ibm.com> <1363576743-6146-9-git-send-email-mrhines@linux.vnet.ibm.com> <5146D9BF.3030407@redhat.com> <51477A26.8090600@linux.vnet.ibm.com> <51482D78.3010301@redhat.com> <5148643F.2070401@linux.vnet.ibm.com> <51486733.7060207@redhat.com> <51486AD0.80309@linux.vnet.ibm.com> <51486C0D.2040609@redhat.com> <514871C2.5020108@linux.vnet.ibm.com> <5148748C.5050509@redhat.com> In-Reply-To: <5148748C.5050509@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [Bug]? (RDMA-related) ballooned memory not consulted during migration? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: aliguori@us.ibm.com, mst@redhat.com, qemu-devel@nongnu.org, owasserm@redhat.com, abali@us.ibm.com, mrhines@us.ibm.com, gokul@us.ibm.com Consider the following sequence: 1. Boot fresh VM (say, a boring 1GB vm) => Resident set is small, say 100M 2. Touch all the memory (with a utility or something) => Resident set is ~1G 3. Send QMP "balloon 500" => Resident set is ~500M 4. Now, migrate the VM => Resident set is 1G again This suggests to me that migration is not accounting for what memory was ballooned. I suspect this is because the migration_bitmap does not coordinate with the list of ballooned-out memory that was MADVISED(). This affects RDMA as well as TCP on the sender side. Is there any hard reason why we're not validating migration_bitmap against the memory that was MADVISED()'d? - Michael R. Hines