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] Re: Reducing impact of save/restore/dump on Dom0

To: "Andi Kleen" <ak@xxxxxxx>, "Graham, Simon" <Simon.Graham@xxxxxxxxxxx>
Subject: RE: [Xen-devel] Re: Reducing impact of save/restore/dump on Dom0
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Wed, 7 Feb 2007 12:52:58 -0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 07 Feb 2007 04:53:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <342BAC0A5467384983B586A6B0B3767104A69BB9@xxxxxxxxxxxxxxxxxxxxx> <p73veiekw12.fsf@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcdKqNYla507v8YmSCujN+mQ9AJqLQACDO3w
Thread-topic: [Xen-devel] Re: Reducing impact of save/restore/dump on Dom0
> > Currently, save, restore and dump all used cached I/O in Dom0 to
> > write/read the file containing the memory image of the DomU - when
the
> > memory assigned to the DomU is greater than free memory in Dom0,
this
> > leads to severe memory thrashing and generally the Dom0 performance
goes
> > into the toilet.
> >
> > The 'classic' answer to avoiding this when writing very large files
is,
> > of course, to use non-cached I/O to manipulate the files -
> 
> Otherwise you can just use madvise()/fadvise() to tell the kernel
> to drop the old data [the later might need a fairly recent kernel
> to work]
> 
> It has the advantage that it doesn't need much other changes.

It's pretty easy for us to arrange that everything is page aligned. If
there was a measurable performance advantage using o_direct rather than
madvise/fadvise it probably makes sense to use it -- I can't see
o_direct going away any time soon.

Ian

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