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] Baffled by multipage_allocation_permitted()

To: "Dave McCracken" <dcm@xxxxxxxx>
Subject: Re: [Xen-devel] Baffled by multipage_allocation_permitted()
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Tue, 16 Jun 2009 14:23:35 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Tue, 16 Jun 2009 06:24:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200906160810.29184.dcm@xxxxxxxx>
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: <C65D276A.7EE3%keir.fraser@xxxxxxxxxxxxx> <200906160810.29184.dcm@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> Dave McCracken <dcm@xxxxxxxx> 16.06.09 15:10 >>>
>Out of curiosity, why is it necessary to restrict the size of multipage 
>allocations at all?  I'd think the memory size limits would adequately protect 
>against any guest going wild with it.  What harm could come from, for example, 
>a guest asking for a 16M contiguous page?  I don't know of any current need 
>for such a thing.  I'm just wondering why we restrict it.

Because contiguous memory is a more precious resource than just individual
pages, and allocations strictly needing multiple contiguous pages should not
fail because of a random guest doing odd things.

Jan


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