Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3724077ybv; Tue, 25 Feb 2020 06:17:21 -0800 (PST) X-Google-Smtp-Source: APXvYqy0+hSxkYDnz/v75w28AqHLlfPqCgGnH0miH/BFTeRMRtgHRnrADpT3d2ybzqATgOeE79mv X-Received: by 2002:aca:4183:: with SMTP id o125mr3581337oia.125.1582640241014; Tue, 25 Feb 2020 06:17:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582640241; cv=none; d=google.com; s=arc-20160816; b=PGSEqbNa+4di/edzro/Wu5n3zyO5wKN/OKH6KT+P1OmItA/HIfKTdV0gxKqDLGfZc3 PfHZHWfB0uKr5uSK+nsVLS7V1ANbo0TDciJ/2kgn6vzn5+FO6zGwttq0DfrY80WcONkl RAw7lfI7WwFJvc+G213O63ZLE4r9D3eNPy4BvHKTrkAXiXTroY07d9c4f1TOVwYmFhgT B0pFI1zEK/rfE1Sz17ha0w1T80o8Kc0Hl6aDAuUmv+U+ubZkmUYZK0xOcgb10ak3mr6i fVTz3cNVPSFa8BZBuYrY4/K6ls/VaDdNHe4SiQpIu39uvaoY05raeQVRiBzoUfjHFgYH nxww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=Wz7HFXeyPhBNFF/foB41Kfc1jvyOJshbcpqAMVJh7R0=; b=eZWo3B76deCThb8UydXPVcF8j2rcjMWAR7nsKVmGeMBv+Kav0PdrUgfq5AyRoKu5sR 2HfCiNDnHZiDgo9MBaawhPVfxMBU7Z2AlkNtXpggmoGx/TZL2yk5ciaTKiepM7lSz90J FbE+iEWjzXr5kgYEvEBofZzMw//HJWvrrM3eq1Ih8LcrvcJtqaLErp28QowG6Z4SYP4i IEsi7SuQcwTBkyK8DDUCBGmwKjILt/YOZs3W2muWJQOvoNyKFScxp3XYt7SvyoGJeHRM ndeoKTn5IZgvhB0xAVDzs4sUyOvQcuMYw/eyehq/palwioP3QOTjMOMLZz3XJ7kSDrKj sJXQ== 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 24si6498294oiz.237.2020.02.25.06.17.07; Tue, 25 Feb 2020 06:17:21 -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 S1730655AbgBYOPn (ORCPT + 99 others); Tue, 25 Feb 2020 09:15:43 -0500 Received: from outbound-smtp46.blacknight.com ([46.22.136.58]:45641 "EHLO outbound-smtp46.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730392AbgBYOPi (ORCPT ); Tue, 25 Feb 2020 09:15:38 -0500 Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp46.blacknight.com (Postfix) with ESMTPS id E87F9FA7B4 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: -- 2.16.4