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] [PATCH 7 of 8] xl: free memory before building a domain

To: Christoph Egger <Christoph.Egger@xxxxxxx>
Subject: Re: [Xen-devel] [PATCH 7 of 8] xl: free memory before building a domain
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Fri, 27 Aug 2010 12:41:53 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>, Stefano
Delivery-date: Fri, 27 Aug 2010 04:46:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <201008271337.19826.Christoph.Egger@xxxxxxx>
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>
References: <alpine.DEB.2.00.1008271217050.2545@kaball-desktop> <201008271337.19826.Christoph.Egger@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Fri, 27 Aug 2010, Christoph Egger wrote:
> On Friday 27 August 2010 13:19:19 Stefano Stabellini wrote:
> > xl: free memory before building a domain
> >
> > Free the needed amount of memory before proceeding with the domain
> > build.
> > Use a filelock to prevent other xl instances from conflicting during
> > this operation.
> >
> > Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
> >
> > diff -r b80a1688b5c9 tools/examples/xl.conf
> > --- a/tools/examples/xl.conf        Thu Aug 26 18:03:20 2010 +0100
> > +++ b/tools/examples/xl.conf        Thu Aug 26 18:26:04 2010 +0100
> > @@ -3,3 +3,6 @@
> >  # automatically balloon down dom0 when xen doesn't have enough free
> >  # memory to create a domain
> >  autoballon=1
> > +
> > +# full path of the lockfile used by xl during domain creation
> > +lockfile="/var/lock/xl"
> > diff -r b80a1688b5c9 tools/libxl/xl.c
> > --- a/tools/libxl/xl.c      Thu Aug 26 18:03:20 2010 +0100
> > +++ b/tools/libxl/xl.c      Thu Aug 26 18:26:04 2010 +0100
> > @@ -34,6 +34,7 @@
> >
> >  xentoollog_logger_stdiostream *logger;
> >  int autoballoon = 1;
> > +char *lockfile = "/var/lock/xl";
> 
> NetBSD doesn't have /var/lock. Is it ok to use /var/lib ?
> 

you can set it in the global xl config file to /var/lib or anything you
want.

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