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] Shadow page tables?

To: "Chengyuan Li" <chengyuanli@xxxxxxxxx>, "Keir Fraser" <keir.fraser@xxxxxxxxxxxx>
Subject: RE: [Xen-devel] Shadow page tables?
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Sun, 10 Oct 2004 09:55:46 +0100
Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 11 Oct 2004 00:36:44 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Thread-index: AcSudMb7Po8+tVhlSPaORwAB0YmvYAAMVumw
Thread-topic: [Xen-devel] Shadow page tables?
> If the shadow pagetable is enabled, Xen will maintain pagetables for
every guest 
> process. If 1000 processes are running in the guest, xen will at least
allocate 1000 
> pages as shadow pagetables. Will it consume too many memory frames?

That's the downside of shadow pagetables, and hence why we prefer to run
guests in 'direct mode' unless we're doing something 'weird' to them -
e.g. when we migrate a domain we switch to shadow page tables for the
duration of the migration.

Apache 1.3 is a good example of an application that requires large
amounts of memory for pagetables (many thousands of pages), and with
shadow pagetables this requiment effectively doubles. The shadow
pagetables are just a cache, so its simple to evict pages if you run low
on memory, but then performance will suck big time.

Ian

On Fri, 08 Oct 2004 10:11:18 +0100, Keir Fraser
<keir.fraser@xxxxxxxxxxxx> wrote:
> 
> Currently, shadow p.t.'s are only enabled when migrating OSes between 
> machines. This allows us to copy the memory image while the OS is 
> still running, and track which pages are updated after being copied 
> (and so need to be recopied).
> 
> We intend to flesh out the shadow p.t. code a little mroe to support 
> full memory virtualisation. It's not there yet, but it won't require 
> an enormous amount of code to get it going.
> 
> -- Keir
> 
> 
> 
> > Hi,
> >
> > I'm using Xen 2.0 (base kernel is 2.6.8.1) and found that it doesn't

> > enable the shadow page tables in Xen though there is code there.
> >
> > If the shadow page tables are enabled, does it mean that the guest 
> > Linux' memory management module could be fully virtualized?
> >
> > Thanks,
> > Chengyuan
> >
> > 
> > -------------------------------------------------------
> > This SF.net email is sponsored by: IT Product Guide on 
> > ITManagersJournal Use IT products in your business? Tell us what you

> > think of them. Give us Your Opinions, Get Free ThinkGeek Gift 
> > Certificates! Click to find out more 
> > http://productguide.itmanagersjournal.com/guidepromo.tmpl
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> > https://lists.sourceforge.net/lists/listinfo/xen-devel
> 
>


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give
us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find
out more http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel