Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4310210ybv; Tue, 25 Feb 2020 17:32:53 -0800 (PST) X-Google-Smtp-Source: APXvYqzTejrWWjC7gMIE5zZ+2B06jZdo8EuurNjmq+nyQQJD5QAzeuzBWh/SAhtk9rPXDlSl4FFa X-Received: by 2002:a05:6830:1e72:: with SMTP id m18mr1054298otr.226.1582680773485; Tue, 25 Feb 2020 17:32:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582680773; cv=none; d=google.com; s=arc-20160816; b=DzPm2BHUZugWN/GxVaqr5fCN9WyFsbFo7ceo6/hfqj+RiUnNl32UXIWskvB7agsyJr ma6796X6Lw62zhaMsglgLb9aTFmr+cBYv8Xzj6fnqeuWr5UxazN1tK5VvAkBUOoxgP14 8LyvgAaUZK8dkh/qXNHk1SI94F8GB6R8QvAG0tQTKu+3JwWnGlkTJblYLA1eQEQ82yqH fyGl3UnW5ONZRHonqhElRrn49JCRPCakIU+TLwjlgPuF9MTgwnMsubtSKk/i1v6DVhvx SKLWtlL1gpfGmWAtwA2gOPji1dCTFGrEdp4EE8sNpIJXnEIqHUiMFekkRriEsqi+iO1L AJUg== 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; bh=QGVoInCNmu8ZzMYmZXdTHXHi+j3WLOo8+btiFix0h28=; b=QQ5P07fwtfvaC7I9g8YDgroSkhOXIcPOfpQAqL+LNuX0/E7k/Ma2Yqc38HCNez76aJ JNHojC1CYSKV8lup0LZOiTRMHbxszXklrriZ+7RbP8zAC+fRh2l0zLgI7emvatZcs2er F260g7JnAL9Udd+sdWoQZ0OyUyU+kzE3wxwHOi5nKZR27haATlwEPi1SFl6dmdQNDNb8 8VEgZWGM57CaDrZS0AT2USAQfbWepYFDaqj7VncAfbN+wYizA25DcxDbcFXESBhYW4HB nYSoTLccdsFEvyxWt9Q/Iaksbtpsll3bIlm3Rd+QQ0d3UbVGm8pmhfCz8/a7RaLRxAnV 0Q/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cMZyruXs; 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 i124si267339oif.214.2020.02.25.17.32.41; Tue, 25 Feb 2020 17:32:53 -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=cMZyruXs; 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 S1729795AbgBZBc3 (ORCPT + 99 others); Tue, 25 Feb 2020 20:32:29 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:37306 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729395AbgBZBc2 (ORCPT ); Tue, 25 Feb 2020 20:32:28 -0500 Received: by mail-pf1-f194.google.com with SMTP id p14so551909pfn.4 for ; Tue, 25 Feb 2020 17:32:28 -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=QGVoInCNmu8ZzMYmZXdTHXHi+j3WLOo8+btiFix0h28=; b=cMZyruXsJf+pGUh7iEAlG5NywteERqKsrsx7J98svJV4/9Xln+d/iie6kpru3zcKvS yw3R+sEA8r5MvMBbXohJ62LLc4RH5VrOHVvWumGNwBAxozyFDkVpFiV0uOf9lSsck96W ohLXDCKiarMkJZbreViNDGewyU7jADg1d+A3tgr/naBCpgrvY49Q8UI2GXDSUngtRdOr k6YoeVSo4i/U52qxoDvgpeSy/SjQPGAvaip4bQn6110e0L6iRSiTsbtxjFEl+gVn7rrT lhDdSj05O2eCngCrgUvJcdHlpWVc3vwqPA+HwWgFhWAQo3if9YK9MuhJT1//L4wi9tI4 t2sQ== 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=QGVoInCNmu8ZzMYmZXdTHXHi+j3WLOo8+btiFix0h28=; b=r+XSeqgYoMIyJMRBPxlMW/yJLMa1gFuyfnOuSdPgVMFf2eHzOVr9FcMmJj1KJAv13z LVVwgyui8Wsa5RP6IbtDabEezHf1uFVEnhLCrQD/EPMSvFN9DVXGI6/3m0Qd6UDHKaPU Z6pKPminHk6xa4ZaaIeBwfuFb4j9N3b+5oYZZfevfihIatBdgH9oRP3+KcG/yG+xBF5s TsqF4fb6VQQJvrFQjUHLzTNOymuIpOm1L7syxt91SXgC3ey5McIqyvtIXAXkhyJkVFxy RJw2oJrkAS8HF8Rj+zVZLkkByJVc15cs0RcrAgzEBOmTCkY1zhFVNoCVnoKb7/BIsPu6 jeMQ== X-Gm-Message-State: APjAAAX9kQ/xu80oX59N/Onum1LPZ0azvU3RmdZH670L+CFb9sLK7ORk JzHgnDP0sOtggmXuc8DPQWWXtA== X-Received: by 2002:a62:16d0:: with SMTP id 199mr1643753pfw.96.1582680747619; Tue, 25 Feb 2020 17:32:27 -0800 (PST) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id b3sm349178pfr.88.2020.02.25.17.32.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 17:32:25 -0800 (PST) Date: Tue, 25 Feb 2020 17:32:24 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Mel Gorman 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 In-Reply-To: <20200225141534.5044-3-mgorman@techsingularity.net> Message-ID: References: <20200225141534.5044-1-mgorman@techsingularity.net> <20200225141534.5044-3-mgorman@techsingularity.net> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) 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 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?