From: Brian Jackson Subject: Re: Live memory allocation? Date: Sat, 28 Mar 2009 12:17:42 -0500 Message-ID: <200903281217.43062.iggy@theiggy.com> References: <49CB86BE.40505@poboxes.info> <49CB8CF6.70403@wpkg.org> <200903280738.34169.alberto@byu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "kvm@vger.kernel.org" To: Alberto =?utf-8?q?Trevi=C3=B1o?= Return-path: Received: from theiggy.com ([66.220.1.110]:60478 "EHLO mail.theiggy.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751637AbZC1RQ1 convert rfc822-to-8bit (ORCPT ); Sat, 28 Mar 2009 13:16:27 -0400 In-Reply-To: <200903280738.34169.alberto@byu.edu> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: On Saturday 28 March 2009 08:38:33 Alberto Trevi=C3=B1o wrote: > 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/cac= he)? > > > > 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. F= or > example, booting Windows XP in KVM 82 show a steady increase in memor= y.=20 > Then about the time the login box is about to appear, memory usage ju= mps to > the maximum allowed to the VM (512 MB in this case). I remember read= ing > somewhere Windows would try to initialize all memory during boot, cau= sing > 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? KVM devs have a patch called KSM (short for kernel shared memory I thin= k) that=20 helps windows guests a good bit. See the original announcement [1] for = some=20 numbers. I spoke to one of the devs recently and they said they are goi= ng to=20 resubmit it soon. [1] http://marc.info/?l=3Dkvm&m=3D122688851003046&w=3D2 > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html