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] failed to start centos 5 domU with maxmem=30000

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Subject: RE: [Xen-devel] failed to start centos 5 domU with maxmem=30000
From: Vasiliy G Tolstov <v.tolstov@xxxxxxxxx>
Date: Thu, 12 Aug 2010 16:24:05 +0400
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 12 Aug 2010 05:26:02 -0700
Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=selfip.ru; s=dk; h=Content-Transfer-Encoding:Mime-Version:Message-ID:Date:Content-Type:References:In-Reply-To:Cc:To:Reply-To:From:Subject; bh=y8HnZFUpbKdKitkBTHr2CBIiRoYXZC2QZ+mE68XICto=; b=PiNd4+X3K3u/69UyHetAYvkwH+rVN1RiBTTkZFvNUbanlghiDCSLGDjWLm5dGycMzrA1b7V0pr2ObVhHNUCqYgvggS/Pc8yMRo6KfZiGVBwxiU4hy/JU86aOIiQvuVT+;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <042d87c1-bb13-436b-a5ba-9ec1578d53d0@default>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Selfip.Ru
References: <1281608645.5454.10.camel@xxxxxxxxx> <20100812113731.GP2804@xxxxxxxxxxx 1281613063.5454.15.camel@xxxxxxxxx> <042d87c1-bb13-436b-a5ba-9ec1578d53d0@default>
Reply-to: v.tolstov@xxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
В Чтв, 12/08/2010 в 05:17 -0700, Dan Magenheimer пишет:
> > From: Vasiliy G Tolstov [mailto:v.tolstov@xxxxxxxxx]
> > Sent: Thursday, August 12, 2010 5:38 AM
> > To: Pasi Kärkkäinen
> > Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
> > Subject: Re: [Xen-devel] failed to start centos 5 domU with
> > maxmem=30000
> > 
> > В Чтв, 12/08/2010 в 14:37 +0300, Pasi Kärkkäinen пишет:
> > > On Thu, Aug 12, 2010 at 02:24:05PM +0400, Vasiliy G Tolstov wrote:
> > > > Hello. I'm try to start centos domU pvm under sles 11 sp1 xen
> > kernel
> > > > with memory=512 and maxmem=30000. Centos doing boot and freeze.
> > > > If i'm try to use maxmem=15000 all works.
> > > >
> > > > Can You tell me what's wrong?
> > > >
> > >
> > > Is the centos PV domU 32bit or 64bit ?
> > 
> > 64 bit kernel-xen.
> > 
> > I found this in xen sources:
> > 
> > /* Simple continuous piecewiese linear function:
> >          *  max MiB -> min MiB  gradient
> >          *       0         0
> >          *      16        16
> >          *      32        24
> >          *     128        72    (1/2)
> >          *     512       168    (1/4)
> >          *    2048       360    (1/8)
> >          *    8192       552    (1/32)
> >          *   32768      1320
> >          *  131072      4392
> >          */
> > 
> > Why this is not provided in documentation or on web site?
> 
> Hi Vasily --
> 
> This function limits how far memory can be reduced when
> ballooning a guest (including dom0).  It is only a heuristic
> but is intended to take into account the various overheads
> a guest Linux kernel requires to manage memory to avoid
> out-of-memory conditions.
> 
> But I think you are correct... the same (or similar)
> function should be published as it also serves as a
> guideline for the ratio between memory= and maxmem=
> parameters when creating a guest:  If the ratio
> of maxmem divided by memory is too high, the guest
> will not even boot.
> 

Is that possible to use memory=32 and maxmem=60000 ?

> I am curious as to why you would specify memory= so
> much smaller than maxmem=.  Are you trying to overcommit
> memory for guests that are often idle but sometimes use
> a very large amount of memory?

We want to provide ability to use small as possible memory if the guest
is idle. And much as possible when the guest under heavy load.

Thank You.
-- 
Vasiliy G Tolstov <v.tolstov@xxxxxxxxx>
Selfip.Ru


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