|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-devel
[Xen-devel] Re: Memory fragmentation, order>0 allocation, and 4.0 dynami 
| To: | Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>,	"xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>,	Grzegorz Milos <gm281@xxxxxxxxx>, Patrick Colp <pjcolp@xxxxxxxxx>,	Andrew Peace <Andrew.Peace@xxxxxxxxxxxxx>,	George Dunlap <George.Dunlap@xxxxxxxxxxxxx>,	Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx> |  
| Subject: | [Xen-devel] Re: Memory fragmentation, order>0 allocation, and 4.0 dynamic RAM optimization features |  
| From: | Keir Fraser <keir.fraser@xxxxxxxxxxxxx> |  
| Date: | Mon, 08 Feb 2010 19:11:24 +0000 |  
| Cc: | Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxxxx> |  
| Delivery-date: | Mon, 08 Feb 2010 11:11:50 -0800 |  
| Envelope-to: | www-data@xxxxxxxxxxxxxxxxxxx |  
| In-reply-to: | <7b9201fb-b0ad-4e4f-9c95-b9bc637e362c@default> |  
| 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> |  
| Sender: | xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |  
| Thread-index: | Acqo6prQAZgkSTm2QMK4IbXhd190QgAB+aWu |  
| Thread-topic: | Memory fragmentation, order>0 allocation, and 4.0 dynamic RAM	optimization features |  
| User-agent: | Microsoft-Entourage/12.23.0.091001 |  
| On 08/02/2010 18:13, "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx> wrote:
> In a recent thread:
> 
> http://lists.xensource.com/archives/html/xen-devel/2010-02/msg00295.html
> 
> Jan Beulich points out that the memory fragmentation that results
> from Transcendent Memory ("tmem") sometimes causes problems for
> domain creation and PV migration because the shadow code requires
> order=2 allocations and the domain struct is order=4.
> 
> Though tmem accelerates fragmentation, I *think* this fragmentation
> can occur with page sharing/swapping, and possibly PoD.  In fact,
> I think it can occur even with just ballooning.
> 
> I think the domain struct issue should be relatively easy to
> resolve (though maybe with a large patch), but the shadow code
> may be much harder.
I think everything but the shadow use of order-2 allocations is pretty easy
to fix; just a case of logically carving up the multi-page structures.
I'm not sure, but suspect that fragmenting the shadow allocations may
require extra book-keeping space in the page_info structure, for example.
 -- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 | 
 |  | 
  
    |  |  |