Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp281101pxy; Wed, 21 Apr 2021 02:52:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjr5AquKXcRUU6wM1nR2aPERMOyw6IeSiObaqkmxwoQUI99j2LT3QtqJVrLsby79E+RhuF X-Received: by 2002:aa7:d9d9:: with SMTP id v25mr24435060eds.83.1618998771086; Wed, 21 Apr 2021 02:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618998771; cv=none; d=google.com; s=arc-20160816; b=fVcmIS2c0FiD/GuFFbEz1fVLKDu13ewQ3yXk69Hn5kHCkomcKxmoT9Cu3mZMBO4e60 7joV2FFt74567kd+NuzLafiBhvY4G7t2SFd3vFLdRHBhdPyAFsfLydiDgwXsDqloBhIR ETdckepmUMDaTHVMB3UT/rlvBVSCtH+4/cV73X1/SpHW6D2f7Zvul6xxmPDWyHS5tWBW Yj0s4UMytgaYU1x4sBS6diPXIgs7ApgbH69jo7LIjC7HxBFC6+qFYDdaPL1cAKtzW9il midGQXRfsxASsIV+hHdOLHfFUV7TH/0C0LIjgSr+3LBwacnjd1H7MFPsWlLlpo20lWEs CLeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=RLU7eAG6uGyEZFXEQxUB2KICG546T0puAsm3Z49eNR4=; b=osuRKFo2aYJ8syyd8UFX31jdtrlVMO1d0a/8PB8P2oH+x7CqDZODrpD4WIh9tXzdn1 vuLFJNiGmbyPWdnH3gtNEIBSDFxJ5LyXzov76bYAFBtRdbkfFLqCXqOWzQ+wOsAK1ltu dJ7L8ogIgP8fTyBtdX/3DbD89CJ9d8odbZwmYv5WBwdfDPe2tbzhLeUSDwxoShBwETZv MkWDSRgzhX2E++Y9FYYzlkCgZVQo9v3by0eqZTrdkwVNmtv5GvIRdQMGlkdgYAVuHFEs MKBIffb5KkqyZaewp8Cexx/vUPJpAmpqw5egxUghaKOziSe5wbj6DDmbSGTRkijmU2Vz AS2g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si1647894edd.475.2021.04.21.02.52.27; Wed, 21 Apr 2021 02:52:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235748AbhDUHeb (ORCPT + 99 others); Wed, 21 Apr 2021 03:34:31 -0400 Received: from mx2.suse.de ([195.135.220.15]:54590 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234038AbhDUHea (ORCPT ); Wed, 21 Apr 2021 03:34:30 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id D932AAFE6; Wed, 21 Apr 2021 07:33:56 +0000 (UTC) Date: Wed, 21 Apr 2021 09:33:52 +0200 From: Oscar Salvador To: Muchun Song Cc: Jonathan Corbet , Mike Kravetz , Thomas Gleixner , Ingo Molnar , bp@alien8.de, X86 ML , hpa@zytor.com, dave.hansen@linux.intel.com, luto@kernel.org, Peter Zijlstra , Alexander Viro , Andrew Morton , paulmck@kernel.org, pawan.kumar.gupta@linux.intel.com, Randy Dunlap , oneukum@suse.com, anshuman.khandual@arm.com, jroedel@suse.de, Mina Almasry , David Rientjes , Matthew Wilcox , Michal Hocko , "Song Bao Hua (Barry Song)" , David Hildenbrand , HORIGUCHI =?utf-8?B?TkFPWUEo5aCA5Y+jIOebtOS5nyk=?= , Joao Martins , Xiongchun duan , fam.zheng@bytedance.com, linux-doc@vger.kernel.org, LKML , Linux Memory Management List , linux-fsdevel Subject: Re: [External] Re: [PATCH v20 8/9] mm: memory_hotplug: disable memmap_on_memory when hugetlb_free_vmemmap enabled Message-ID: <20210421073346.GA22456@linux> References: <20210415084005.25049-1-songmuchun@bytedance.com> <20210415084005.25049-9-songmuchun@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 21, 2021 at 11:41:24AM +0800, Muchun Song wrote: > > Documentation/admin-guide/kernel-parameters.txt already provides an > > explanation on memory_hotplug.memmap_on_memory parameter that states > > that the feature cannot be enabled when using hugetlb-vmemmap > > optimization. > > > > Users can always check whether the feature is enabled via > > /sys/modules/memory_hotplug/parameters/memmap_on_memory. Heh, I realized this is not completely true. Users can check whether the feature is __enabled__ by checking the sys fs, but although it is enabled, it might not be effective. This might be due to a different number of reasons, vmemmap does not fully span a PMD, the size we want to add spans more than a single memory block, etc. That is what "Note that even when enabled, there are a few cases where the feature is not effective." is supposed to mean. Anyway, I did not change my opionion on this. Thanks -- Oscar Salvador SUSE L3