From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z747h-0007cZ-3U for qemu-devel@nongnu.org; Mon, 22 Jun 2015 11:59:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z747c-0000AA-HF for qemu-devel@nongnu.org; Mon, 22 Jun 2015 11:59:01 -0400 Received: from mail-lb0-x234.google.com ([2a00:1450:4010:c04::234]:33701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z747c-00009Y-5Z for qemu-devel@nongnu.org; Mon, 22 Jun 2015 11:58:56 -0400 Received: by lbbvz5 with SMTP id vz5so63585133lbb.0 for ; Mon, 22 Jun 2015 08:58:54 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <55880DFC.20403@innervision.pl> References: <5582DE3E.5050504@innervision.pl> <5583F9AC.6080200@innervision.pl> <55880DFC.20403@innervision.pl> From: Andrey Korolyov Date: Mon, 22 Jun 2015 18:58:34 +0300 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] incorrect memory size inside vm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Piotr Rybicki Cc: "qemu-devel@nongnu.org" , Vasiliy Tolstov On Mon, Jun 22, 2015 at 4:30 PM, Piotr Rybicki wrote: > > > W dniu 2015-06-19 o 14:01, Andrey Korolyov pisze: > >> On Fri, Jun 19, 2015 at 2:14 PM, Piotr Rybicki >> wrote: >>> >>> Hello. >>> >>> Actually it was my mistake. >>> After some time using memory in guest (find /, cp bigfine, etc), res size >>> of >>> qemu process shrinks to expected value. >>> >>> Sorry for disturbing. >>> Now i don't see any memory waste in guest and host when using 'base' >>> memory >>> + 'dimm' memory. >>> >>> Although i have one issue. >>> >>> When i start qemu via libvirt with 16GB mem and 1G current mem: >>> (...) >>> 16777216 >>> 1048576 >>> (...) >>> >>> Qemu starts, and balloon can't free memmory, so guest doesn't boot (It >>> hangs >>> or is looped in ' virtio_balloon virtio2: Out of puff! Can't get 1 >>> pages'). >>> I think this is because dimm memmory is not yet onlined, and balloon >>> already >>> tries to shring memory in guest. >>> >>> Best regards >>> Piotr Rybicki >>> >>> >> - libvir@ >> >> Please don`t top-post in technical mailing lists. Do you have a >> crashkernel-reserved area there in the boot arguments? What >> distro/guest kernel are running in this guest and what is dimm >> configuration? >> > > Hi. > > No, I don't have a crashkernel reserved area. > > But I've solved my problem. I load virtio-balloon device as a module > (previously it was kernel built-in), and everything is working as expected. > > Thank You for Your attention. > > Best regards > Piotr Rybicki Thanks Piotr, the lack of the host-side memory shrinkage after balloon deflation is interesting anyway, hopefully you may share guest` dmesg bits from compiled-in balloon to check visible signs of the issue (balloon should be initialized *before* DIMMs are being onlined, so the behavior of the balloon itself it not clear at least for me).