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] Regression: [IA64] Saner dom0 memory and cpudefault

To: Alex Williamson <alex.williamson@xxxxxx>
Subject: Re: [Xen-ia64-devel] Regression: [IA64] Saner dom0 memory and cpudefaults
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Wed, 5 Sep 2007 10:20:42 +0900
Cc: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 05 Sep 2007 08:33:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1188936378.6307.55.camel@lappy>
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>
References: <82C666AA63DC75449C51EAD62E8B2BEC14DED9@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1188451986.6474.9.camel@lappy> <20070904021819.GD8027%yamahata@xxxxxxxxxxxxx> <1188936378.6307.55.camel@lappy>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Tue, Sep 04, 2007 at 02:06:18PM -0600, Alex Williamson wrote:
> On Tue, 2007-09-04 at 11:18 +0900, Isaku Yamahata wrote:
> > On Wed, Aug 29, 2007 at 10:33:06PM -0700, Alex Williamson wrote:
> > > On Thu, 2007-08-30 at 13:17 +0800, Duan, Ronghui wrote:
> > > > I make a new domain0 kernel with CONFIG_IA64_DIG .It still panic.
> > > 
> > > > (XEN) Maximum permitted dom0 size: 3973MB
> > > 
> > >    It looks like we need to reduce dom0 memory by the size of the
> > > contiguous region the swiotlb makes.  By default, this is 64MB, so
> > > booting with dom0_mem=3909M will probably work (at least that's the
> > > difference on my 2G system).  Unfortunately the swiotlb can be resized
> > > by a command line option, so statically removing 64MB isn't a very good
> > > solution.  Perhaps we need a more efficient create_contiguous_region()?
> > 
> > - When the memory exchange hypercall fails,
> >   kick balloon(or do something similar) and try the hypercall again.
> >   Although the ballooning makes the posibility higher, it doesn't gurantee.
> > 
> > - Start dom0 with minimal memory (e.g. 128MB) assigned and other memory
> >   is ballooned out when booting.
> >   After dom0 allocating contiguous region, populate the unassigned memory.
> > 
> > Any other ideas?
> 
> Hi Isaku,
> 
>    I'm not sure I understand the mechanism by which memory would be
> ballooned out in your second option.  Creating a non-fully populated
> dom0, then expanding it seems a bit tricky.  It also leaves the question
> of what's the right minimal memory amount (if NR_CPUS is set large, 128M
> isn't enough to boot).  Your first option seems plausible, although this
> needs to happen early enough that the balloon driver probably isn't
> going to be much help.  Relinquishing dom0 memory certainly wouldn't
> guarantee the create_contiguous_region() call would succeed, but it
> would be nice to see how it behaves in practice.

How about this option?
- Allocate pseudo physical contiguous region from the end of 
  conventional memory and relinquish at somewhere of the booting
  process. It would be almost the same effect ot reduce dom0 size by xen.

  Probably at the time dom0 switching from the init bootmem allocator to
  the buddy allocator or before the swith.
  With the buddy allocator it would be somewhat difficult.


I missed the trivial option.
- Xen parses dom0 command line looking for "swiotlb=", and
  reduce dom0 size more. Too easy/hacky?


>    It's an easy work around if you're a developer and can recognize a
> failure caused by too much/little dom0 memory.  For distribution support
> we can't count on that.  We need defaults that provide a large enough
> dom0 to be useful, and we need graceful failure mechanism should the
> defaults not work.  Thanks,

Sounds reasonable.
Even if we suggest to reduce dom0_mem with the panic message,
they won't read the message saying only panic or discarding Xen
with silence.

-- 
yamahata

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel