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-ia64-devel

Re: [Xen-ia64-devel] [PATCH] Use saner dom0 memory and vcpu defaults, d

To: Alex Williamson <alex.williamson@xxxxxx>
Subject: Re: [Xen-ia64-devel] [PATCH] Use saner dom0 memory and vcpu defaults, don't panic on over-allocation
From: Jarod Wilson <jwilson@xxxxxxxxxx>
Date: Mon, 06 Aug 2007 10:11:23 -0400
Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 06 Aug 2007 07:09:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1186407197.6802.207.camel@bling>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Red Hat, Inc.
References: <46AFF7F6.5090105@xxxxxxxxxx> <1185943424.6802.98.camel@bling> <20070801052434.GC14448%yamahata@xxxxxxxxxxxxx> <46B08EE2.5020106@xxxxxxxxxx> <46B0ACEB.3080200@xxxxxxxxxx> <46B0C21C.9010605@xxxxxxxxxx> <46B0D5AF.1050309@xxxxxxxxxx> <20070802021200.GA6395%yamahata@xxxxxxxxxxxxx> <46B1E766.7000003@xxxxxxxxxx> <46B1F9E6.9010404@xxxxxxxxxx> <46B2AFE1.6070803@xxxxxxxxxx> <46B3343A.9040106@xxxxxxxxxx> <46B34516.6030603@xxxxxxxxxx> <1186162709.6802.179.camel@bling> <46B5306F.8070504@xxxxxxxxxx> <1186407197.6802.207.camel@bling>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.5 (X11/20070719)
Alex Williamson wrote:
>> Based on empirical testing, it seems something along the lines of 1MB 
>> per 4GB of RAM, capped at like 64MB (though probably not necessary), 
>> might be sane. Its not exact of course, since memory amount doesn't 
>> necessarily indicate how many PCI root bridges there are to allocate, 
>> etc., but it seems to be a reasonable guess... The attached is a crack 
>> at that, and on your 96G machine, should decrease the default "all" 
>> memory allocation by about 24MB, allowing it to fully boot.
> 
>    I think we're going to have to go with something like this, but why
> would we reduce the cap to 64MB?  I usually think of ia64 systems as
> having "bigger" I/O than x86, so it seems like maybe we want to stick
> with at least 128MB(?)

I think my original thought was that since your 96G box only needed
really 17MB, 64MB was a ton to withhold. But after hitting send, I was
thinking that no cap at all might make more sense -- you'd need 288GB of
RAM to even get to 64MB here, and that's a tiny drop in the bucket when
you have that much. Even with 1TB of RAM, we would still withhold less
than 256MB. Until we have some 1TB+ systems to test on, we don't really
know if reserving more than 128MB makes sense or not... I'd have to lean
toward simply not capping this withholding at all, at least for right now.

>> Here's another thought: we could play it extra-safe, and slide that 
>> allocation down another 12-24MB, and possibly even switch to allocating 
>> "all" memory to dom0 by default... Then allocate all cpus too, and we'd 
>> have parity with x86 here... :)
> 
>    I'm not sure I see the value in that yet.  If you have a
> 32/64/128/etc-way system, do you really want to have all those extra
> vCPUs floating around?  Don't forget, XenSource is targeting 4-socket
> systems.  In that arena, it might make sense to allocate all CPUs, but
> as you scale the system up, I'm not sure it continues to make sense.

The thought is that you can always balloon dom0 down if you need/want
to, and take away cpus. In addition to x86 parity (we do have people
running xen on some pretty large x86_64 systems...), you've also got
parity with the bare-metal kernel. Also, my understanding is that if you
only allocate 4GB of RAM and 4 cpus to start out, that's the maximum
that dom0 can ever have. So if its doable, why not start out making all
resources available by default, and then reduce resources as needed?

In my particular case, the best system I've got direct access to is a
16-way, and I actually *do* like having all 16 vcpus available to dom0,
as I usually do development work (i.e. lots of compiling) in dom0, so
the more cpu power the better. I suppose I could just spin up a guest
with a ton of vcpus, but then my i/o performance isn't nearly as hot (I
usually use blktap w/disk images for guests, not dedicated partitions)...

But then I don't know what the typical end-user use case of ia64 xen is,
or what the average system size is, which would seem to be a fairly
relevant factor in deciding the most reasonable defaults... My intuition
says that most of our customers would like to have their systems boot up
using all available resources though. That, and I'm already starting to
feel like a 4G/4cpu default is a bit wimpy. :)

-- 
Jarod Wilson
jwilson@xxxxxxxxxx


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>