From patchwork Tue Feb 25 14:15:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mel Gorman X-Patchwork-Id: 11403963 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4791513A4 for ; Tue, 25 Feb 2020 14:15:50 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 13F8D218AC for ; Tue, 25 Feb 2020 14:15:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 13F8D218AC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=techsingularity.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 1D95F6B0008; Tue, 25 Feb 2020 09:15:49 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 1B1866B000A; Tue, 25 Feb 2020 09:15:49 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0EE276B000C; Tue, 25 Feb 2020 09:15:49 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0020.hostedemail.com [216.40.44.20]) by kanga.kvack.org (Postfix) with ESMTP id E66026B0008 for ; Tue, 25 Feb 2020 09:15:48 -0500 (EST) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 8EC85824556B for ; Tue, 25 Feb 2020 14:15:48 +0000 (UTC) X-FDA: 76528847976.11.hands87_144558ce5d11c Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin11.hostedemail.com (Postfix) with ESMTP id 166B5180F8B8B for ; Tue, 25 Feb 2020 14:15:40 +0000 (UTC) X-Spam-Summary: 2,0,0,e4973f47fe4f0b20,d41d8cd98f00b204,mgorman@techsingularity.net,,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1345:1359:1437:1534:1540:1711:1714:1730:1747:1777:1792:2198:2199:2393:2559:2562:2731:3138:3139:3140:3141:3142:3351:3865:3866:3867:3868:3871:3872:3874:4250:4321:5007:6119:6120:6261:7901:8634:10004:11026:11473:11537:11658:11914:12043:12198:12297:12438:12517:12519:12522:12555:12895:13069:13146:13161:13229:13230:13255:13311:13357:14040:14096:14384:14394:14721:21080:21627:21966:30054:30060,0,RBL:81.17.249.193:@techsingularity.net:.lbl8.mailshell.net-62.2.114.100 64.100.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: hands87_144558ce5d11c X-Filterd-Recvd-Size: 2247 Received: from outbound-smtp25.blacknight.com (outbound-smtp25.blacknight.com [81.17.249.193]) by imf16.hostedemail.com (Postfix) with ESMTP for ; Tue, 25 Feb 2020 14:15:38 +0000 (UTC) Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp25.blacknight.com (Postfix) with ESMTPS id EA8B2CAB2D for ; Tue, 25 Feb 2020 14:15:36 +0000 (GMT) Received: (qmail 1974 invoked from network); 25 Feb 2020 14:15:36 -0000 Received: from unknown (HELO stampy.112glenside.lan) (mgorman@techsingularity.net@[84.203.18.57]) by 81.17.254.9 with ESMTPA; 25 Feb 2020 14:15:36 -0000 From: Mel Gorman To: Andrew Morton Cc: Michal Hocko , Vlastimil Babka , Ivan Babrou , Rik van Riel , Linux-MM , Linux Kernel Mailing List , Mel Gorman Subject: [PATCH 2/3] mm, page_alloc: Disable watermark boosting if THP is disabled at boot Date: Tue, 25 Feb 2020 14:15:33 +0000 Message-Id: <20200225141534.5044-3-mgorman@techsingularity.net> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200225141534.5044-1-mgorman@techsingularity.net> References: <20200225141534.5044-1-mgorman@techsingularity.net> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Watermark boosting is intended to increase the success rate and reduce latency of high-order allocations, particularly THP. If THP is disabled at boot, then it makes sense to disable watermark boosting as well. While there are other high-order allocations that potentially benefit, they are relatively rare. Signed-off-by: Mel Gorman --- mm/huge_memory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index b08b199f9a11..565bb9973ff8 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -472,6 +472,7 @@ static int __init setup_transparent_hugepage(char *str) &transparent_hugepage_flags); clear_bit(TRANSPARENT_HUGEPAGE_REQ_MADV_FLAG, &transparent_hugepage_flags); + disable_watermark_boosting(); ret = 1; } out: