Received: by 10.74.127.91 with SMTP id w88csp133808ooc; Tue, 13 Feb 2018 17:04:02 -0800 (PST) X-Google-Smtp-Source: AH8x226NhEqdf5owpZCODtord7Lsa4+I0jnEohR1FesMZZt8EeNAKhIJkqnADTTVERz5J/QhvLeA X-Received: by 2002:a17:902:5417:: with SMTP id d23-v6mr2745234pli.330.1518570109875; Tue, 13 Feb 2018 17:01:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518570109; cv=none; d=google.com; s=arc-20160816; b=w9Ifa6oBGuxR7vRgImUNcJ920SmiorvZ7lEyvFyoX1Wk/VsKJR3+Q87NxG11SI42Pn iEKSeWZ2J3qYBJGPh1CeGr2Y98X3E+SjQrZLcMx/zKHmuBIvualPIs5QZ/IWCsCIQTG7 k6asmbGz7DjTRFi3DCTr7ebZqr/fCM6gmyjJwNM7yaKK3rPJArfkarAWBDCCGgwd31Er t/FHLc1S4vb9J756pP3wDCFcmEgsV0Br+U3hu2Z/Ibm7v0kLj6Tq6E5VXYP4LZtKRdRn s9XKAlsCIa3RfFRe7HHMOUMRr+MVqsgpjvYb8E9EDWbJSmTHmJ2j5hZsho/YC4X0peuB MnLw== 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:dkim-signature :arc-authentication-results; bh=ekdXYDLpTaeXoU8d8VW7vU1HwQRgl67yLEAdgJZjg2E=; b=fxB3w+jqjzzMDUYSRAKJwF6yzsov6UtrohrHHDS3iYomUEwsxTcAIz5exh1dohJkPH i6mAxHCrRWNhDCa2R3RC/aE2voeCI9b+C/Fmvb+FdgnSF5e+a6R9VBnFBF2DVCEwzwEB StG2KUmChODupdmIFePkPJjhDj6dskdMARr8pH84eSGTQJ4rmJuPWTU4+k+VTIbE9tJo 4b8NniRqtRZhHOePhSqbNMz9YK8gnp3zRSP7bG7VvILnsA2bKL/SfLC3Vgm0ygSAl9OJ NBidDjgblwU0DgRELOrbxJa8+vzIsBlDQVJ6SG5FOKCNFF1RsiTLISb6fIiHUU7v3Ngo syvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ksLZ4Qu7; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i22-v6si107566pll.212.2018.02.13.17.01.35; Tue, 13 Feb 2018 17:01:49 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=ksLZ4Qu7; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966358AbeBNBA5 (ORCPT + 99 others); Tue, 13 Feb 2018 20:00:57 -0500 Received: from mail-io0-f193.google.com ([209.85.223.193]:41443 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966258AbeBNBAy (ORCPT ); Tue, 13 Feb 2018 20:00:54 -0500 Received: by mail-io0-f193.google.com with SMTP id f4so23371104ioh.8 for ; Tue, 13 Feb 2018 17:00:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=ekdXYDLpTaeXoU8d8VW7vU1HwQRgl67yLEAdgJZjg2E=; b=ksLZ4Qu7PxT/dRhjMri8UXgt8GODKYgdeOO3X38dpSHtuIHbIFwKbzSiaG8iujQbUu RyLKtSCPKXV0sMj6OFz5G0uljd+pPbCCkmxCBHa4Ahws1iL8LrTYz3ViR8NwtXTQeFE9 x1roJvfFWmWvI6wABzorVrBcyiqcpjmSx+ADtQXyRPoQtbJE4SHImIU9XG7knPIVOhiq 8q9zdhJvwYNFg7VVxhYV4xrgsX99bXsaa0MOmOUhoHwFobipY22o+W4qqu38LonXdRj6 er4jqGcN1U8MT0gBnxlRPw08dUuGVSlfgAVRr0UCGu6a7PAt8rlOjdMdlCC4Ywpi4AOd QIvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=ekdXYDLpTaeXoU8d8VW7vU1HwQRgl67yLEAdgJZjg2E=; b=tAB5wvoaGUZUYjA6CpQ8q3CNW1mF9V8HMKz16/axINcWBCEW2K5aHuVWsveXHDguQF 2Yi5thwYFJnJsY1aGzWhnqvPhSggZfH/4eYQvuu6VL2eV41XavQU277ndlzdGXsD6uIY 0Sq5peZK8662wNQnmwhyALTCWcS69s8CbNTa4hx6UsBGgrsqUQcwQDT1Srr1D5WrbNf0 +CLi+cMP0vHlLvWRenikUb5k+C3T4ixR1wD6o5YYJMTmsTEXcID88aZ3dH9wTQXa5uKZ UAn/4xOm86wbQiZiZ+jx8KNehCmCLAjzcyJgZfeR1+zZoGb3S2ogVSaWOCpJ09hBSYr3 dYLQ== X-Gm-Message-State: APf1xPC2946nlPEXeHfJRJaVuGiN+4ixMtGL814qcn5sbNRKVqcMfRFV uYi67yrn50/JSRRYwqgPtud80g== X-Received: by 10.107.129.8 with SMTP id c8mr3064035iod.218.1518570052626; Tue, 13 Feb 2018 17:00:52 -0800 (PST) Received: from [2620:15c:17:3:dc0:1ee9:9ea3:7c4f] ([2620:15c:17:3:dc0:1ee9:9ea3:7c4f]) by smtp.gmail.com with ESMTPSA id q29sm15216739ioi.29.2018.02.13.17.00.51 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Feb 2018 17:00:52 -0800 (PST) Date: Tue, 13 Feb 2018 17:00:50 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Andrew Morton , Mike Kravetz cc: Jonathan Corbet , Vlastimil Babka , Mel Gorman , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-doc@vger.kernel.org Subject: [patch -mm] mm, page_alloc: extend kernelcore and movablecore for percent fix In-Reply-To: Message-ID: References: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Specify that movablecore= can use a percent value. Remove comment about hugetlb pages not being movable per Mike. Cc: Mike Kravetz Signed-off-by: David Rientjes --- .../admin-guide/kernel-parameters.txt | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -1837,10 +1837,9 @@ ZONE_MOVABLE is used for the allocation of pages that may be reclaimed or moved by the page migration - subsystem. This means that HugeTLB pages may not be - allocated from this zone. Note that allocations like - PTEs-from-HighMem still use the HighMem zone if it - exists, and the Normal zone if it does not. + subsystem. Note that allocations like PTEs-from-HighMem + still use the HighMem zone if it exists, and the Normal + zone if it does not. It is possible to specify the exact amount of memory in the form of "nn[KMGTPE]", a percentage of total system @@ -2353,13 +2352,14 @@ mousedev.yres= [MOUSE] Vertical screen resolution, used for devices reporting absolute coordinates, such as tablets - movablecore=nn[KMG] [KNL,X86,IA-64,PPC] This parameter - is similar to kernelcore except it specifies the - amount of memory used for migratable allocations. - If both kernelcore and movablecore is specified, - then kernelcore will be at *least* the specified - value but may be more. If movablecore on its own - is specified, the administrator must be careful + movablecore= [KNL,X86,IA-64,PPC] + Format: nn[KMGTPE] | nn% + This parameter is the complement to kernelcore=, it + specifies the amount of memory used for migratable + allocations. If both kernelcore and movablecore is + specified, then kernelcore will be at *least* the + specified value but may be more. If movablecore on its + own is specified, the administrator must be careful that the amount of memory usable for all allocations is not too small.