WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] RAM allocation and miscellaneous questions

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] RAM allocation and miscellaneous questions
From: "Mark A. Williamson" <mark.williamson@xxxxxxxxxxxx>
Date: Wed, 29 Sep 2004 04:30:48 +0100
Cc: Paul Dorman <pauld@xxxxxxxxx>
Delivery-date: Wed, 29 Sep 2004 04:41:59 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: <200409291457.48465.pauld@xxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <200409291457.48465.pauld@xxxxxxxxx>
Reply-to: mark.williamson@xxxxxxxxxxxx
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.7
> I'm running 10 VMs now quite happily, using LVM2 with distinct storage
> areas for each VM filesystem.

Cool!

> can I allocate more RAM to each VM than arithmetic would suggest? 

Yes and no ;-)

Xen does not do paging to disk, so you can't (for instance) tell a domain it 
has 256MB but only give it 128MB and then fake out the extra capacity using 
disk.  The solution under Xen would be to just get the domain to do its own 
paging - this has the same end result and avoids certain performance and 
implementation nasties associated with paging in the VMM.

Using the balloon driver, you can have a setup where you add and remove memory 
to / from domains according to their need, so that you can shrink the memory 
footprints of domains that don't (currently) need as much in core.  This is 
done manually.

Of course, you can also use suspend / resume and live migration to move 
domains around in order to balance memory load.

> Is there some kind of compression or COW 
> that goes on in the Xen memory management code?

Not right now.  There is a plan to implement a shared buffer cache, which 
would allow domains to share unmodified pages of data that have been read 
from disk.  This is planned as a performance optimisation not a space 
optimisation, however.

> Would it be best to run one replicated MySQL server (or several with
> different versions) loaded into a VM on each physical machine, and have all
> the other machines use that over virtual network connections?

It probably depends.  I guess you'd save some memory footprint that way 
(compared to running many copies of the servers) but I really don't know how 
much.

> [64 bit machines]
> Does Xen work well with Opterons?

In 32-bit mode, it works.  In 64-bit mode, not quite yet.  x86_64 support is 
under development at the moment and is scheduled as a post-2.0 feature.  
However that will be the preferred path to large memory configurations.

HTH,
Mark


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel