From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GShAN-0007aD-AP for qemu-devel@nongnu.org; Wed, 27 Sep 2006 17:42:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GShAM-0007Yg-0s for qemu-devel@nongnu.org; Wed, 27 Sep 2006 17:42:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GShAL-0007YT-MQ for qemu-devel@nongnu.org; Wed, 27 Sep 2006 17:42:05 -0400 Received: from [65.74.133.4] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GShFH-0003NQ-Q6 for qemu-devel@nongnu.org; Wed, 27 Sep 2006 17:47:12 -0400 From: Paul Brook Subject: Re: [Qemu-devel] RAM overcomittment Date: Wed, 27 Sep 2006 22:41:59 +0100 References: <1ACF2542-5DEE-49B5-8177-5B958911B0F6@gmail.com> In-Reply-To: <1ACF2542-5DEE-49B5-8177-5B958911B0F6@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609272242.00637.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Wednesday 27 September 2006 22:31, The MoonSeeker wrote: > Hello, > > I'd like to know if qemu have a tool that let a VM to use more RAM > than it have (when initialised). > > Another question is : Can we run run many VM using more RAM than the > RAM installed (on the workstation)? For example I'd like to create 5 > VM's who have 256MB (can use 256MB but only for a slice of time) but > normally one VM use only 50MB. On the workstation I have only 512MB > RAM. Is it possible to create these VM's or have we to have 5 X 256 > RAM + HOST RAM = 1.5 GB installed on the workstation? > > I think we can save ressource by using RAM overcomittment. What do > you think? Is this implemented on qemu? Or will be implemented? qemu is just like any other application. It is only limited by how much virtual memory your OS can provide. ie. if you have sufficient swap you can have as many qemu instances using as much memory as you want. qemu is currently limits each guest to 2Gb ram. This is independent of how much physical memory the host has. Note that modern OS (everything except DOS) generally use all available ram. Telling qemu to use more memory than you have physical ram is liable to cause heavy swapping. Paul