From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7C8AC2D0E4 for ; Mon, 23 Nov 2020 22:02:13 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A20F2206E3 for ; Mon, 23 Nov 2020 22:02:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="PaJdSMiw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A20F2206E3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id BF96B6B005D; Mon, 23 Nov 2020 17:02:11 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BA75D6B006E; Mon, 23 Nov 2020 17:02:11 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A6F676B0070; Mon, 23 Nov 2020 17:02:11 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0028.hostedemail.com [216.40.44.28]) by kanga.kvack.org (Postfix) with ESMTP id 7AABE6B005D for ; Mon, 23 Nov 2020 17:02:11 -0500 (EST) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 18286362C for ; Mon, 23 Nov 2020 22:02:11 +0000 (UTC) X-FDA: 77517056862.29.alarm40_361318727368 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin29.hostedemail.com (Postfix) with ESMTP id DE76818086CD8 for ; Mon, 23 Nov 2020 22:02:10 +0000 (UTC) X-HE-Tag: alarm40_361318727368 X-Filterd-Recvd-Size: 3555 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf03.hostedemail.com (Postfix) with ESMTP for ; Mon, 23 Nov 2020 22:02:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=mhCpis23NqY63c8NxX6Wxg38gWQuSreQ5clgMaAKViA=; b=PaJdSMiw4iN/I92Z9bYbMfvscb 9HdMsduPzdTIWJyB7e51N3arRZiy6S9g2BEVESuiG4aHlFqUVtzpiHADx5/vpdb4EsfqzxwQaJ501 8X4XZ1f5cae1Gtb2wfzzBtKYWL7eHl8h08lFMoGtaHk3ITOOet0NdKxNtaDLhK8dVho/V1FEmI6tA 6veew9XNjrE/VaddCQg6FI8xVBEcLcBX2HPiuKZyg3iAna/mlju19wC6xuBdRs/tvvZwJ74mYuWUm UrjkO13j9FbNlho28eMkAfhgPXwyhed3yB0Sd18s9qs6YQGExCsFAOXewM+LpBP5pCPAVNO8gNi0w dA3THayQ==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1khJtZ-0005K1-So; Mon, 23 Nov 2020 22:01:13 +0000 Date: Mon, 23 Nov 2020 22:01:13 +0000 From: Matthew Wilcox To: Mike Kravetz Cc: Michal Hocko , David Hildenbrand , Muchun Song , corbet@lwn.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, dave.hansen@linux.intel.com, luto@kernel.org, peterz@infradead.org, viro@zeniv.linux.org.uk, akpm@linux-foundation.org, paulmck@kernel.org, mchehab+huawei@kernel.org, pawan.kumar.gupta@linux.intel.com, rdunlap@infradead.org, oneukum@suse.com, anshuman.khandual@arm.com, jroedel@suse.de, almasrymina@google.com, rientjes@google.com, osalvador@suse.de, song.bao.hua@hisilicon.com, duanxiongchun@bytedance.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v5 00/21] Free some vmemmap pages of hugetlb page Message-ID: <20201123220113.GW4327@casper.infradead.org> References: <20201120064325.34492-1-songmuchun@bytedance.com> <20201120084202.GJ3200@dhcp22.suse.cz> <6b1533f7-69c6-6f19-fc93-c69750caaecc@redhat.com> <20201120093912.GM3200@dhcp22.suse.cz> <55e53264-a07a-a3ec-4253-e72c718b4ee6@oracle.com> <20201123073842.GA27488@dhcp22.suse.cz> <37f4bf02-c438-9fbd-32ea-8bedbe30c4da@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <37f4bf02-c438-9fbd-32ea-8bedbe30c4da@oracle.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, Nov 23, 2020 at 01:52:13PM -0800, Mike Kravetz wrote: > On 11/22/20 11:38 PM, Michal Hocko wrote: > > On Fri 20-11-20 09:45:12, Mike Kravetz wrote: > >> Not sure if I agree with that last statement. Database and virtualization > >> use cases from my employer allocate allocate hugetlb pages after boot. It > >> is shortly after boot, but still not from boot/kernel command line. > > > > Is there any strong reason for that? > > The reason I have been given is that it is preferable to have SW compute > the number of needed huge pages after boot based on total memory, rather > than have a sysadmin calculate the number and add a boot parameter. Oh, I remember this bug! I think it was posted publically, even. If the sysadmin configures, say, 90% of the RAM to be hugepages and then a DIMM fails and the sysadmin doesn't remember to adjust the boot parameter, Linux does some pretty horrible things and the symptom is "Linux doesn't boot".