From: Tim Deegan Subject: Re: [RFC PATCH] page_alloc: use first half of higher order chunks when halving Date: Tue, 1 Apr 2014 14:22:23 +0200 Message-ID: <20140401122223.GA62612@deinos.phlegethon.org> References: <5332F948.1020909@gmail.com> <20140326163609.GD21368@phenom.dumpdata.com> <533312C0.1050507@gmail.com> <20140326175606.GA24179@phenom.dumpdata.com> <5333518E.40203@gmail.com> <20140328170201.GB12659@phenom.dumpdata.com> <5335F25F.9050309@gmail.com> <20140331141500.GB3159@phenom.dumpdata.com> <533A31B7.8090608@gmail.com> <20140401104825.GA5342@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WUxiA-0002Fh-UG for xen-devel@lists.xenproject.org; Tue, 01 Apr 2014 12:22:39 +0000 Content-Disposition: inline In-Reply-To: <20140401104825.GA5342@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: Keir Fraser , Matt Wilson , Matthew Rushton , Matt Wilson , Jan Beulich , Andrew Cooper , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org At 06:48 -0400 on 01 Apr (1396331306), Konrad Rzeszutek Wilk wrote: > On Mon, Mar 31, 2014 at 08:25:43PM -0700, Matthew Rushton wrote: > > Are there any concerns about the proposed Xen change as a reasonable > > work around for the current implementation? Thank you! > > So I finally understood what the concern was about it - the balloon > mechanics get the pages in worst possible order. I am wondeirng if there > is something on the Linux side we can do to tell Xen to give them to use > in the proper order? The best way, at least from Xen's point of view, is to explicitly allocate contiguous pages in the cases where it'll make a difference AIUI linux already does this for some classes of dma-able memory. > Could we swap the order of xen_do_chunk so it starts from the end and > goes to start? Would that help? As long as we don't also change the default allocation order in Xen. :) In general, linux shouldn't rely on the order that Xen allocates memory, as that might change later. If the current API can't do what's needed, maybe we can add another allocator hypercall or flag? Cheers, Tim.