From: Tim Deegan Subject: Re: Memory fragmentation, order>0 allocation, and 4.0 dynamic RAM optimization features Date: Tue, 9 Feb 2010 10:50:10 +0000 Message-ID: <20100209105010.GE368@whitby.uk.xensource.com> References: <7b9201fb-b0ad-4e4f-9c95-b9bc637e362c@default> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Dan Magenheimer , "xen-devel@lists.xensource.com" , George Dunlap , Ian Pratt , Jan Beulich , Patrick Colp , Milos , Grzegorz, Andrew Peace List-Id: xen-devel@lists.xenproject.org At 19:11 +0000 on 08 Feb (1265656284), Keir Fraser wrote: > 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. I think it can be done without expanding page_info, but it involves pretty invasive changes to all the parts of the shadow code that deal with guest<->shadow mappings and with iterating across shadows. As I said in response to an earlier email, I think the right thing to do here is to move pretty much all allocation in Xen to superpage granularity (and not just because it makes this issue go away!). Tim -- Tim Deegan Principal Software Engineer, XenServer Engineering Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)