Received: by 10.223.185.116 with SMTP id b49csp1040292wrg; Fri, 16 Feb 2018 11:17:59 -0800 (PST) X-Google-Smtp-Source: AH8x2264yCTbRZpGnWe860y6frnhsJyqRH52kbgRfljzMuHooYF8luqAKuXwEMsr+FYPsupCZbq7 X-Received: by 2002:a17:902:a515:: with SMTP id s21-v6mr6754611plq.393.1518808679568; Fri, 16 Feb 2018 11:17:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518808679; cv=none; d=google.com; s=arc-20160816; b=TrrQxtXPe2chazXqAIOEbFI4wnPQcN7GjAjbT3Fak+auaC3+noDGvXR9VVlty+8oSd gzsNqUUAvT5bDVVKvL2ZMNi4Pl1PCrVtNw5KYH+qV7RDpXTfcoSQM/wyyQumxLqZcHhu qpXzO1aGugtaGnOJgxNTvdPLn0OqK9EQ+N/9lQJObnvql4rxRPnTQW1hiIn1OSr8I6JT Pv5csNUKUmYZb+MGkY8iGY/mz9wwdN1RhMlNepj0Md7YBd0WJKCQ7rqSCxR7eFntwO7q j/nqmfuOqU5DjtPmrIkBQ7RMks95gVuGOzKzrNyKSOW8MSkyAG7qTblMIH6TJkyqd8Y1 8Cww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=Qmg0WotTEoLISK4TWNaJO+2b54Sybykr/hiixygzgVI=; b=NQPRnQPd6YtFChoQ0TEYPgDhs7fRpsdZSqSX8PeCYCQagfdsEd/ukKCUMXG8i97uqO OusxdcOrM1g2WtfaLacwgR59YIO+ce/cpYxgI50J+Dff4vUOYdl9Jd8FEImp9jSNu4gX APJO2H5nQjWb885JXGjaxiNmntdLykWUPZXLaaBM11QViPWhXlxYAAIbBExataYVQRiH ME9tJcdFXWNVRmpCBdjd+qLgMEeDL38y1xLatijtQgCx97XTmZ8I2N8q2TodJcmEXsVy S2AmipVtkEUOFZIRKeC3t2n4h0hsFeKpCfXTglf2FMxwqR+mYgnDIbooBF1S0B2fra1S I8DA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4-v6si3383893plz.143.2018.02.16.11.17.45; Fri, 16 Feb 2018 11:17:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756642AbeBPPlo (ORCPT + 99 others); Fri, 16 Feb 2018 10:41:44 -0500 Received: from resqmta-ch2-05v.sys.comcast.net ([69.252.207.37]:37364 "EHLO resqmta-ch2-05v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756579AbeBPPlj (ORCPT ); Fri, 16 Feb 2018 10:41:39 -0500 Received: from resomta-ch2-13v.sys.comcast.net ([69.252.207.109]) by resqmta-ch2-05v.sys.comcast.net with ESMTP id mi76eQomKliDimi8peLbZH; Fri, 16 Feb 2018 15:41:39 +0000 Received: from gentwo.org ([98.222.162.64]) by resomta-ch2-13v.sys.comcast.net with SMTP id mi8neADpqXtXFmi8neXRfZ; Fri, 16 Feb 2018 15:41:38 +0000 Received: by gentwo.org (Postfix, from userid 1001) id EDBED116016D; Fri, 16 Feb 2018 09:41:36 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id EA45E116013F; Fri, 16 Feb 2018 09:41:36 -0600 (CST) Date: Fri, 16 Feb 2018 09:41:36 -0600 (CST) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Matthew Wilcox cc: Michal Hocko , David Rientjes , Andrew Morton , Jonathan Corbet , Vlastimil Babka , Mel Gorman , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-doc@vger.kernel.org Subject: Re: [patch 1/2] mm, page_alloc: extend kernelcore and movablecore for percent In-Reply-To: <20180215201405.GA22948@bombadil.infradead.org> Message-ID: References: <20180214095911.GB28460@dhcp22.suse.cz> <20180215144525.GG7275@dhcp22.suse.cz> <20180215151129.GB12360@bombadil.infradead.org> <20180215201405.GA22948@bombadil.infradead.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfAy/Eh8ag4ief/aTMBH6+mIIvcP9bCzu1jFc+6ou/wPwAmiLCuA/vIfxv9pPGXSlAWB3o4MvCvsPiK6aVBW7+T4Pe2JYSc6srsLv2hn5iiOk2CTW3KSs XJCDXi6/BddpwhGOi3jSJlnM1x01eJyX7zsNWlWYDoNdGnwaqCtaffhtmlIhtT55DNz2GnLiHCYPHaGJkEbJVmcq7RfJAHn96BmVnS9HBtglpj5NwWR02xhg ZiYDPMlTtevZhkP6i1TJngP5+nRroIWIZgWMhTi+6swKjYoKZBEw7aV0bIWi+3ZgGH0/uCzNuCGgSfiis1hw1hgV2Sj/LOOjWJMK7WVXc2/Komy2tf+FxACC jok24xo5mHusMJD37lbhrpPpKDVQPGUlOLRGFD52wMWi3Sau0lCxJlSy6VSyuDI3vAoGG04kAV5VFw/epo2bV7/ZBxAzxg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 15 Feb 2018, Matthew Wilcox wrote: > On Thu, Feb 15, 2018 at 09:49:00AM -0600, Christopher Lameter wrote: > > On Thu, 15 Feb 2018, Matthew Wilcox wrote: > > > > > What if ... on startup, slab allocated a MAX_ORDER page for itself. > > > It would then satisfy its own page allocation requests from this giant > > > page. If we start to run low on memory in the rest of the system, slab > > > can be induced to return some of it via its shrinker. If slab runs low > > > on memory, it tries to allocate another MAX_ORDER page for itself. > > > > The inducing of releasing memory back is not there but you can run SLUB > > with MAX_ORDER allocations by passing "slab_min_order=9" or so on bootup. > > Maybe we should try this patch in order to automatically scale the slub > page size with the amount of memory in the machine? Well setting slub_min_order may cause allocation failures. You would leave that at 0 for a prod configuration. Setting slub_max_order higher would work.