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 3 of 7] docs: add a document describing the xl cf

To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 3 of 7] docs: add a document describing the xl cfg file syntax\
From: Tim Deegan <tim@xxxxxxx>
Date: Thu, 10 Nov 2011 09:54:28 +0000
Cc: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Delivery-date: Thu, 10 Nov 2011 01:55:32 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1320912604.16747.110.camel@xxxxxxxxxxxxxxxxxxxx>
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: <patchbomb.1320678789@xxxxxxxxxxxxxxxxxxxxxxxxx> <291f6cb0d03e56e4edbe.1320678792@xxxxxxxxxxxxxxxxxxxxxxxxx> <1320912604.16747.110.camel@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
At 08:10 +0000 on 10 Nov (1320912604), Ian Campbell wrote:
> Tim, George:
> 
> Is this broadly accurate? In particular the bit about why one would use
> the shadow_memory option and the suggestion that it also controls the
> space used by the HAP overhead.
> 
> Cheers,
> Ian.
> 
> On Mon, 2011-11-07 at 15:13 +0000, Ian Campbell wrote:
> > 
> > +### Paging
> > +
> > +The following options control the mechanisms used to virtualise guest
> > +memory.  The defaults are selected to give the best results for the
> > +common case and so you should normally leave these options
> > +unspecified.
> > +
> > + * `hap=BOOLEAN`: Turns "hardware assisted paging" (the use of the
> > +   hardware' nested page table feature) on or off.  Affects HVM
> > guests
> > +   only.  If turned off, Xen will run the guest in "shadow page
> > table"
> > +   mode where the guest's page table updates and/or TLB flushes
> > +   etc. will be emulated.  Use of HAP is the default when available.

Yep.  Might be worth mentioning that HAP is called EPT and NPT (or RVI)
by the hardware vendors.

> > + * `oos=BOOLEAN`: Turns "out of sync pagetables" on or off.  When
> > +   running in shadow page table mode, the guest's page table updates
> > +   may be deferred as specified in the Intel/AMD architecture
> > manuals.
> > +   However this may expose unexpected bugs in the guest, or find bugs
> > +   in Xen, so it is possible to disable this feature.  Use of out of
> > +   sync page tables, when Xen thinks it appropriate, is the default.

Yep. 

> > + * `shadow_memory=MBYTES`: Number of megabytes to set aside for
> > +   shadowing guest pagetable pages (effectively acting as a cache of
> > +   translated pages) or to use for HAP state. By default this is 1MB
> > +   per guest vcpu plus 8KB per MB of guest RAM. You should not
> > +   normally need to adjust this value. However if you are not using
> > +   hardware assisted paging (i.e. you are using shadow mode) and your
> > +   guest workload consists of a large number of processes which do
> > not
> > +   share address space then increasing this value may improve
> > +   performance. 

Actually in the bad case the processes _do_ share address space
(otherwise the guest would be thrashing for RAM before it rnus out of
shadow memory).  Maybe 'a very large number of similar processes'?

Cheers,

Tim.

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

<Prev in Thread] Current Thread [Next in Thread>