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] map memory holes with same page

To: "Tim Deegan" <Tim.Deegan@xxxxxxxxxx>, "Paul Durrant" <Paul.Durrant@xxxxxxxxxx>
Subject: RE: [Xen-devel] map memory holes with same page
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Mon, 23 May 2011 20:29:05 +1000
Cc: Keir Fraser <keir.xen@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 23 May 2011 03:35:01 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110523091307.GC12250@xxxxxxxxxxxxxxxxxxxxxxx>
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: <AEC6C66638C05B468B556EA548C1A77D01D5728C@trantor> <C9FD4F2B.1ABE7%keir.xen@xxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D01D5728D@trantor> <291EDFCB1E9E224A99088639C4762022B37FC17D49@xxxxxxxxxxxxxxxxxxxxxxxxx> <20110523091307.GC12250@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcwZKayhv65cnOH0Q5OXIkKKsh2HzgACcFpA
Thread-topic: [Xen-devel] map memory holes with same page
> 
> At 09:42 +0100 on 23 May (1306143771), Paul Durrant wrote:
> > > -----Original Message-----
> > [snip]
> > >
> > > Should there be a performance impact if Windows tries to touch a
> > > page that I have previously given pack with decrease_reservation?
> > > Will that invoke the PoD sweep?
> > >
> >
> > No. The p2m entry will be 'invalid', not 'PoD'. IIRC the sweep
should
> > only be invoked if the cache is exhausted when trying to fix up a
PoD
> > entry.
> 
> But yes, there will be a performance impact because all accesses to
the
> missing page will be emulated by sending an ioreq to qemu, so it will
> run _very_ slowly.
> 

Thanks. That matches what I'm seeing. For hibernate, it appears that
Windows compresses pages into a buffer and the buffer is what I pass to
Dom0.

I guess the only way to solve this is to stop every access hitting an
emulation. Either I can map a common read-only page into every hole
(which doesn't sound like a workable solution based on feedback so far),
or Xen could keep a common read-only page and map it into a hole every
time it is accessed (and then move the page when another hole is
accessed), which would reduce the problem to emulation on the first time
a different hole is accessed...

James


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