Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4625095ybv; Wed, 26 Feb 2020 00:08:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxbhv8KW8cZJPggF9szVwdcFPHrxlzkQX4XmXmAtjVYP61qAlqyT+JTakON3ltlerHj+2+I X-Received: by 2002:a05:6808:3b4:: with SMTP id n20mr2019033oie.78.1582704501734; Wed, 26 Feb 2020 00:08:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582704501; cv=none; d=google.com; s=arc-20160816; b=stn8rs2GijmXKoH2eD+L+tUTelAaPd+Ie3GWB2TGQk5LWo4/G7zmsb3q8ADA6nQvCQ wlT06pFqw2qx64TjLu7pnBJdrP8gd3C/LZx2yzGI3JGPmhsIY7bveMnVIQzVZWjLHqIb sasI2jzoMWiGm/RqI+kpNn3DDSrtXXbELFqGv3rrRsV0zJ2KrXs9qB7tmgPySjHOHxe4 8tGCksaLIdvggAE0ZdfPXmL0auqJ+GOdJnvhTTy+67X0skbxMKIvEI05+4jO63CVBRvi m13bwqTRnJ9+45X156KluDHZM+YP1srstsa2yhY5CVg3Dm3TPSiBRfyl1drVizLAs/tQ ID7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=UVNej/69NLGE7UvUUzre/IzOR/5lpl1PvrLiahEST2E=; b=Rav4ed+HFXRn1Z63RMe6rm1Ed6FuPTr7wtOjDjHZr+tEI86m7pZlnx/q6Z1rgiBUTD uiKH6Pw8+F7wTih8n9LoLNjjuwxnSqwA9mDMMGtmYu4damwdmPi1N0RLQzGP9HpZEXYC xCkFhpXTYJT1hUmVj1wPAIif6zSfzJm5ZUGspyKctQIMl3UsByDr8C4tXaYzVRna8NJX cPkqEywi9EvL1N68+cywcI3hLi2/jxtWyhs3t73PR4qU9Qn7GvutCR6m02ukQvQfOHsE ecGzgzA9wQ9gb0Y6V2kvVJyypk5p+UCfSktosFRdDHG527bqzYGe0mzsUA3yoJ6AGXI0 AYsQ== 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 m14si814180otr.131.2020.02.26.00.08.09; Wed, 26 Feb 2020 00:08: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 S1727450AbgBZIID (ORCPT + 99 others); Wed, 26 Feb 2020 03:08:03 -0500 Received: from outbound-smtp15.blacknight.com ([46.22.139.232]:41423 "EHLO outbound-smtp15.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727276AbgBZIIC (ORCPT ); Wed, 26 Feb 2020 03:08:02 -0500 Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp15.blacknight.com (Postfix) with ESMTPS id 25A4F1C4553 for ; Wed, 26 Feb 2020 08:08:00 +0000 (GMT) Received: (qmail 13849 invoked from network); 26 Feb 2020 08:08:00 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.18.57]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 26 Feb 2020 08:07:59 -0000 Date: Wed, 26 Feb 2020 08:07:57 +0000 From: Mel Gorman To: David Rientjes Cc: Andrew Morton , Michal Hocko , Vlastimil Babka , Ivan Babrou , Rik van Riel , Linux-MM , Linux Kernel Mailing List Subject: Re: [PATCH 2/3] mm, page_alloc: Disable watermark boosting if THP is disabled at boot Message-ID: <20200226080757.GB3818@techsingularity.net> References: <20200225141534.5044-1-mgorman@techsingularity.net> <20200225141534.5044-3-mgorman@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 25, 2020 at 05:32:24PM -0800, David Rientjes wrote: > On Tue, 25 Feb 2020, Mel Gorman wrote: > > > 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: > > Seems like watermark boosting can help prevent fragmentation so it > benefits all hugepage sized allocations for the long term and that would > include dynamic provisioning of hugetlb memory or hugetlb overcommit? Yes but it's very rare to hear of cases where hugetlb is dynamically provisioned or overcommitted once THP existed and stopped stalling the system excessively. I'm happy enough to drop this patch because I'm not relying on it in the context of this bug. -- Mel Gorman SUSE Labs