From: Keir Fraser Subject: Re: Memory fragmentation, order>0 allocation, and 4.0 dynamic RAM optimization features Date: Mon, 08 Feb 2010 19:11:24 +0000 Message-ID: References: <7b9201fb-b0ad-4e4f-9c95-b9bc637e362c@default> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <7b9201fb-b0ad-4e4f-9c95-b9bc637e362c@default> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer , "xen-devel@lists.xensource.com" , Grzegorz Milos , Patrick Colp , Andre Cc: Ian Pratt , Jan Beulich List-Id: xen-devel@lists.xenproject.org On 08/02/2010 18:13, "Dan Magenheimer" 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