From: Andy Smith Subject: User question: balloon memory, currentMemory and Linux/FreeBSD guests Date: Wed, 14 Mar 2012 12:51:14 +0100 Message-ID: <45e3fcac61fc83a88d7c2cd9865c7aee@pingnetworks.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit To: Return-path: Received: from mx0.pingnetworks.co.uk ([93.191.35.91]:59757 "EHLO mx0.pingnetworks.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030507Ab2CNMb7 (ORCPT ); Wed, 14 Mar 2012 08:31:59 -0400 Received: from [172.31.252.81] (port=46685 helo=webmail.pingnetworks.co.uk) by mx0.pingnetworks.co.uk with esmtpsa (Exim 4.77; FreeBSD; TLSv1:AES256-SHA:256) auth-from a.smith@pingnetworks.co.uk envelope-from a.smith@pingnetworks.co.uk envelope-to kvm@vger.kernel.org id 1S7mjb-000O6W-3G; Wed, 14 Mar 2012 11:51:15 +0000 Sender: kvm-owner@vger.kernel.org List-ID: Hi, I'm a KVM user, using it for the first time and so far very happy with it. I wonder if someone can help me get my head round the issue of balloon memory and overallocation. Basically I have a Debian wheezy/sid KVM server, on which I have a couple of Linux guests and several FreeBSD guests and I see different behaviour between the two guest types. On FreeBSD I have installed the virtio and balloon drivers (disk and network working great!), there is definately a balloon process running. The behaviour I see is that both Linux and FreeBSD guests always show the "currentMemory" number when quiered with "qemu-monitor-command --hmp ClientName --cmd 'info balloon'". But from a "top" in the debian KVM host the "RES" size of the Linux guest processes varies (presumably depending on the demand of the guest OS) but the FreeBSD kvm processes always sit at exactly the "currentMemory" size. Basically I'm interested to know what is going on, whether what I see is normal and whether balloon currently dynamically manages memory usage or if its still the case that it requires administrator intervention to re-release memory after the OS has previously been allocated it. If there's a more appropriate place to ask this type of question please let me know, thanks a lot! Andy.