Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1303581ybv; Thu, 20 Feb 2020 17:28:56 -0800 (PST) X-Google-Smtp-Source: APXvYqyWztsauGuCrOqVlKeZ86s+EbTY5YyxDULGpjZmEzSBgbVibiPt/2tHdFW/VIKoCRjLaMlv X-Received: by 2002:aca:5150:: with SMTP id f77mr29652oib.52.1582248535946; Thu, 20 Feb 2020 17:28:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582248535; cv=none; d=google.com; s=arc-20160816; b=u6E5jXiI0Y9vcJXH5NNf/4xBhZTC5c6hXd5E44MUNxlIB9yrKYhsftpiRaAnBhJYkw P4e3UEk1lEYEiv7JQwzsCFXKXdY+F31CZtCpXFn3hFZX0FeolBmyMva5eUOqpty7a72d Yk3f5P2qOAzZhs3AQyq8zzDBJG4apl1HIr4F88z1argb34/zHGouvzal01LUscDUTe2b tTIbY7LHnLpr7l5vnmx39AnJAdGQmLuxr/bpEKTY+jj6patmZegHKsJKJGcl7Sv5SFwf W+GoB8ip+Ob5fac/qtngDDohMNUpPcnE5XWMCw61d7ouoRiAKfh/Ld//P0N7cb8aOm5p nmNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Rrw6zgBhTpZljWDelufh2KactDAgrwod4+Cs5lb4FDc=; b=CGziPvgQhuwo8TXlD5UxRJ1qeQLKOjyI2+nK9v5HxsnoMSsga7FfxzPKTtCisWmlh3 cOGlrhOnaRWUbg8mBtEdPiTpA4PCB26Ik6mqLTO8qLw6TokIHZluKGH5CJtr1+aoUlN0 hs6MXKBUzvbtVjKTDk68aDhSIuuC8Q4hyV56u6PrfAgOUOp7LfUFZUSNivnx7bHd4jFO OOEi3V0Ca9l/SJcKkwjz17bOWI1pyg6bVXM5W0cg41PEGakF6y0cRmnb/ua8ZYf6aGkT ec4u4OR4sAgPhQQiJmXWLOpv/C6OfNkEl61KNEa6TLBEY5GXeEsoWzpburZJpLQcfRMD waQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=NEY+RyTF; 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=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si600994oth.182.2020.02.20.17.28.43; Thu, 20 Feb 2020 17:28:55 -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=@oracle.com header.s=corp-2020-01-29 header.b=NEY+RyTF; 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=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729547AbgBUB1g (ORCPT + 99 others); Thu, 20 Feb 2020 20:27:36 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:51390 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729476AbgBUB1g (ORCPT ); Thu, 20 Feb 2020 20:27:36 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 01L1A71h177849; Fri, 21 Feb 2020 01:27:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=Rrw6zgBhTpZljWDelufh2KactDAgrwod4+Cs5lb4FDc=; b=NEY+RyTFyy2FGrVUbrdlBVFDULgpx8TCrxN8cmcptSujsXK0CXHpHQcZgxtkNyVC3Ihn EFPN5XW0ZI4sEiMLj2rTjGiuMeUnze+UiWCaUB72fn5EoTBzEMWNd3Uz34bTfQwdFxnG Cp8bo0YXM5sNaoQz4tfOQ0Tlfpo9D/hLt5VxpD2OiNO4pIM9npfF07ebUVYay0O6r0nW vFlUg3XolpJ7hSmT3job3mMeA1ggG88o5YPGcAg2apJurCwNIUOYY3o6MyZUteAtScB5 HCrxEkOx173B2e7bixzQymPl7bNFmKqxrrRwxuzfFfkFqAzlr8sawtCavOVehWqfvaZA eQ== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 2y8udddn8s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 21 Feb 2020 01:27:30 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 01L17q0J169437; Fri, 21 Feb 2020 01:27:30 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 2y8ud7ex04-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 21 Feb 2020 01:27:30 +0000 Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 01L1RTdD009636; Fri, 21 Feb 2020 01:27:29 GMT Received: from [192.168.1.206] (/71.63.128.209) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 20 Feb 2020 17:27:29 -0800 Subject: Re: [PATCH] mm/page_alloc: increase default min_free_kbytes bound To: Joel Savitz , linux-kernel@vger.kernel.org Cc: Andrew Morton , Rafael Aquini , linux-mm@kvack.org References: <20200220150103.5183-1-jsavitz@redhat.com> From: Mike Kravetz Message-ID: Date: Thu, 20 Feb 2020 17:27:28 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200220150103.5183-1-jsavitz@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9537 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxlogscore=948 mlxscore=0 adultscore=0 spamscore=0 suspectscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002210006 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9537 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 impostorscore=0 mlxlogscore=979 malwarescore=0 mlxscore=0 suspectscore=0 priorityscore=1501 bulkscore=0 adultscore=0 spamscore=0 lowpriorityscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002210006 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/20/20 7:01 AM, Joel Savitz wrote: > > Further work to make the calculation of vm.min_free_kbytes more > consistent throughout the kernel would be desirable. > > As an example of the inconsistency of the current method, this value is > recalculated by init_per_zone_wmark_min() in the case of memory hotplug > which will override the value set by set_recommended_min_free_kbytes() > called during khugepaged initialization even if khugepaged remains > enabled, however an on/off toggle of khugepaged will then recalculate > and set the value via set_recommended_min_free_kbytes(). I took a shot at fixing some of those inconsistencies. https://lore.kernel.org/linux-mm/20200210190121.10670-1-mike.kravetz@oracle.com/ -- Mike Kravetz