From: Alberto =?utf-8?q?Trevi=C3=B1o?= Subject: Re: Live memory allocation? Date: Sat, 28 Mar 2009 07:38:33 -0600 Message-ID: <200903280738.34169.alberto@byu.edu> References: <49CB86BE.40505@poboxes.info> <49CB8B59.20601@redhat.com> <49CB8CF6.70403@wpkg.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: "kvm@vger.kernel.org" Return-path: Received: from gato.byu.edu ([128.187.16.126]:42686 "EHLO gato.byu.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751424AbZC1Nii (ORCPT ); Sat, 28 Mar 2009 09:38:38 -0400 Received: from webmail-int.byu.edu (baler.byu.edu [128.187.16.45]) by gato.byu.edu (8.14.3/8.14.3) with ESMTP id n2SDcZ3g029962 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=OK) for ; Sat, 28 Mar 2009 07:38:35 -0600 In-Reply-To: <49CB8CF6.70403@wpkg.org> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: On Thursday 26 March 2009 08:11:02 am Tomasz Chmielewski wrote: > Like, two guests, each with 2 GB memory allocated only use 1 GB of > host's memory (as long as they don't have many programs/buffers/cache)? > > So yes, it's also supported by KVM. The problem I've seen with this feature is that Windows guests end up taking all of their available memory once they are up and running. For example, booting Windows XP in KVM 82 show a steady increase in memory. Then about the time the login box is about to appear, memory usage jumps to the maximum allowed to the VM (512 MB in this case). I remember reading somewhere Windows would try to initialize all memory during boot, causing KVM to allocate all memory. VMware, however (and I don't know about VirtualBox) knows about this and works around it, making sure memory isn't all allocated during the Windows boot process. Would there a way to work around the Windows memory allocation issue in KVM as well?