From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Memory under KVM? Date: Tue, 15 Dec 2009 12:06:41 +0200 Message-ID: <4B275FB1.7000608@redhat.com> References: <4B22BCE5.7040208@binaryfreedom.info> <200912130941.47737.tfjellstrom@shaw.ca> <4B251A32.4010207@redhat.com> <200912131016.43193.tfjellstrom@shaw.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: tfjellstrom@shaw.ca Return-path: Received: from mx1.redhat.com ([209.132.183.28]:7947 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759416AbZLOKGo (ORCPT ); Tue, 15 Dec 2009 05:06:44 -0500 In-Reply-To: <200912131016.43193.tfjellstrom@shaw.ca> Sender: kvm-owner@vger.kernel.org List-ID: On 12/13/2009 07:16 PM, Thomas Fjellstrom wrote: > >> Linux usually keeps very little RAM free (it's kept as cache). So there >> has to be some action on the part of the host to get the guest to free >> things. For Windows guests you can use ksm to reclaim free memory >> (since Windows will zero it). >> >> > I'm waiting for 2.6.32 to hit Debian Sid before I start playing with ksm (I > don't think its in 2.6.31). > > The problem is it should be automatic. The balloon driver itself or some > other mechanism should be capable of noticing when it can free up a bunch of > guest memory. I can't be bothered to manually sit around and monitor memory > usage on my host so I can then go into virt-manager to reduce memory to each > guest. > That should be pretty easy though it will have an effect on guest performance. -- error compiling committee.c: too many arguments to function