Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1265053ybv; Thu, 20 Feb 2020 16:42:15 -0800 (PST) X-Google-Smtp-Source: APXvYqzLgm71Xa5ghWd4nUEDijFLPjbIBnqit4qm4P7FNtdDKO0Xw8Ay9c09VnoHGolRlGV4x6az X-Received: by 2002:a9d:171a:: with SMTP id i26mr21415733ota.202.1582245735269; Thu, 20 Feb 2020 16:42:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582245735; cv=none; d=google.com; s=arc-20160816; b=ysMZ6pgfWiA8CzKynNcWHHr5kC3hLsWNCJ0+x7+n3oEL4MsU8bq6AcIdndSyyXde98 gcWrTAm2oVGOmYNM9Q+sAlyXSawjOikO+tpUFuPLFofFqhnC+z/ABdoqBbtWWtUZfH0s E2axtAvTrMXbbm1pZnzaWaDuba23LysbSoqjLyEFtebkNPWJmDCCF0+Zz3MN8FBlJlQo 2aXNzMtlPr1qn+Ucc1viszr96WH2agM+eBvA/0OY8S9IHoHkuCMQqarNJTq/VhN/qElZ r/NNnAckWfOWmw+KwYSMbIx6eah6tzEFzEP2ExRHzz2JvAwQpweE0CMNzA+yaXsyhnAV pqFw== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=V1AYbTmfKOYx+Ov+cECb2yP4ckvysxVpdLm8jM9Rx6Y=; b=VQ4+I/5GDpFuJPzFBvbpdKIRVpe9IdAzDFKPhqTsSPG/w3ZXiPFbfJYjRgKSFZ2yVg 5auFwKOU3WK+bWQ6hnwdNbmz0ifMO124Be+m2Yfyelpg35NiytbGfeNnfUFsTmcUPbZU D9xnyKMMlaLuqbcSXrb8k69/Pcc1aR1bPjuVfr8C8dVD69y0bGKdE51EZPxcQ1x2zznP R6DTPdGIQOeQReIFeiWQn56OqTaKt6TQR/uqryA3YMErnMiIoiJDTyc5heyPPFW8Vo7Z MEtniaCouJHkC/jZJomh+CZy3a8auPvbsOa9up1ENuaYVmer/Ufsw1K6aLYN8pnP/9lD ZwwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vuni54K9; 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 a17si536285otp.236.2020.02.20.16.42.03; Thu, 20 Feb 2020 16:42:15 -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=@kernel.org header.s=default header.b=Vuni54K9; 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 S1729524AbgBUAkf (ORCPT + 99 others); Thu, 20 Feb 2020 19:40:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:46134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729365AbgBUAke (ORCPT ); Thu, 20 Feb 2020 19:40:34 -0500 Received: from X1 (nat-ab2241.sltdut.senawave.net [162.218.216.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2C38E207FD; Fri, 21 Feb 2020 00:40:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582245634; bh=hZ3dGT7YJqIbKFGjdrNH8loYD4/AxKe4J06eOSLcC6E=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Vuni54K9568CmSjIYiNas2JBby91Xm/1JOEwM+Akreo8FEcnNdjw92J3r4Fgby+jT pk1so+82is8MWqD5UAYuxK8geIwlA1LW/FFWhOJ7lJ6iSyVYSX7n9NrgY9EQhl3s+p gULzSpzkWR1r5ADD8iZLWgU8yMj0xEGsqFnKxTfI= Date: Thu, 20 Feb 2020 16:40:33 -0800 From: Andrew Morton To: Joel Savitz Cc: linux-kernel@vger.kernel.org, Rafael Aquini , linux-mm@kvack.org Subject: Re: [PATCH] mm/page_alloc: increase default min_free_kbytes bound Message-Id: <20200220164033.8634c2c836c1558daebd81b9@linux-foundation.org> In-Reply-To: <20200220150103.5183-1-jsavitz@redhat.com> References: <20200220150103.5183-1-jsavitz@redhat.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 20 Feb 2020 10:01:03 -0500 Joel Savitz wrote: > > Currently, the vm.min_free_kbytes sysctl value is capped at a hardcoded > 64M in init_per_zone_wmark_min (unless it is overridden by khugepaged > initialization). > > This value has not been modified since 2005, and enterprise-grade > systems now frequently have hundreds of GB of RAM and multiple 10, 40, > or even 100 GB NICs. We have seen page allocation failures on heavily > loaded systems related to NIC drivers. These issues were resolved by an > increase to vm.min_free_kbytes. > > This patch increases the hardcoded value by a factor of 4 as a temporary > solution. OK, better than nothing I guess. > 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(). > Yup, these hardcoded numbers are lame.