From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TI1MV-0003TK-9Z for qemu-devel@nongnu.org; Sat, 29 Sep 2012 14:02:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TI1MU-0002UH-5p for qemu-devel@nongnu.org; Sat, 29 Sep 2012 14:01:59 -0400 Received: from mail.stepping-stone.ch ([194.176.109.206]:33683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TI1MT-0002U5-Vr for qemu-devel@nongnu.org; Sat, 29 Sep 2012 14:01:58 -0400 Received: from localhost (janitor-01.int.stepping-stone.ch [10.17.98.12]) by mta-01.int.stepping-stone.ch (Postfix) with ESMTP id B40849A879 for ; Sat, 29 Sep 2012 20:01:55 +0200 (CEST) Received: from mta-01.int.stepping-stone.ch ([10.17.98.30]) by localhost (janitor-01.int.stepping-stone.ch [10.17.98.12]) (amavisd-new, port 10026) with LMTP id GTmouE+6ceMu for ; Sat, 29 Sep 2012 20:01:52 +0200 (CEST) Received: from [192.168.0.103] (xdsl-188-155-33-54.adslplus.ch [188.155.33.54]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mail.stepping-stone.ch (Postfix) with ESMTPSA id 3A4789A878 for ; Sat, 29 Sep 2012 20:01:52 +0200 (CEST) Message-ID: <1348941711.6449.7.camel@storm> From: Tiziano =?ISO-8859-1?Q?M=FCller?= Date: Sat, 29 Sep 2012 20:01:51 +0200 Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Memory ballooning: wrong size? Reply-To: tiziano.mueller@stepping-stone.ch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi everyone A look through recent changes didn't reveal anything (or I missed it), so please excuse me if this is already fixed, but with qemu-1.1.1 and guest linux kernels 3.3.x and 3.5.0 the size of the memory qemu sets via memory ballooning and what the guest sees do not match: hmp: `balloon 1024` -> `grep MemTotal /proc/meminfo`: 904565 kB where I would rather expect 1019768 (which is what one would get with '-m 1024' only). The factor is constant 1/1024 with "-m 4096" but seems to change depending on the (maximum) memory set via "-m ...". I first expected libvirt to be the culprit here, but manually modifying the balloon via monitor passthrough revealed that something between qemu and guest virtio must go wrong. Any ideas? What do/did I miss? Thanks in advance, Tiziano -- stepping stone GmbH Neufeldstrasse 9 CH-3012 Bern Telefon: +41 31 332 53 63 www.stepping-stone.ch tiziano.mueller@stepping-stone.ch