Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5870473ioo; Wed, 1 Jun 2022 14:33:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2tjxeIUEqPhS0nuRCqoPiLVxUhmlWEwXj3Vo7vVWx3ZENsAuMDoCe4B8QqRRxjofkiK6u X-Received: by 2002:a17:90a:4615:b0:1df:40e6:6474 with SMTP id w21-20020a17090a461500b001df40e66474mr1496623pjg.194.1654119193176; Wed, 01 Jun 2022 14:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654119193; cv=none; d=google.com; s=arc-20160816; b=teOY2JV0eMY/BVpMSy0bIDXR8DVygpvrIlsF36M0yQmzWwJsAD3HetAeDIUzWLXqEq DUGDscS09BSlBI+HYmswn8z0aCHpeZkLOs0Y9OVXFN1nOaiA46uHEzCe1MKtj8X58jFm xgSm6hXRBsViGCe3m1hbojY7st+Lk+uubGhWstKQsMeb1acWBj5PQtXknHGvvUD/iZAJ N0/wAU8fF7tLt8bKA72TnT12apYnzilMI5ZnTHFWMQcz7PHYBqfiar00keA5tx5s9jz7 TDDuHgnQINUlv6IJx0YWKKxqDfqby7dzu3H6synJLN7HwKDF2ZncEDgDU8IxFEm/f4Ff JP7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pR6VzLoG/n8Hl9GbCmfWr6M9WLjiGWY3XL3BO0710dM=; b=xMHYYTsmRyRjckNUYi4yXP8hf0jsW/NdyyUpn2TVzzZo80wL9sy0nkHrn/NmppzeKa NW5ryTzyS3asfy/uL2g2SekIhCMp0jQgd5GjgnWjeSeA1+ZQPa2wRd0ijsOqvIYD75kQ u5vmUe67wakVjjnpql7TtEob16trnJt5ywlVcm0u42cF9h69mK0QzhikUZWLtq1VWWSi KtmCxhCTj/e/meG6CJzHO7dS3S6e9vK0CXmsS+Q1JFhvei1ph/mktlt77Il9KIFhDgZf EwgoSK/5ely6x6hZ9jlXXKuF1xxwBHAV9UTy4GMbd2jqOoX0u5rbrbCmYt4AAYrXf1t/ 7cbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=w6WHPfiA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s26-20020a63525a000000b003f5ea6774f8si3688753pgl.518.2022.06.01.14.33.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:33:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=w6WHPfiA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6A88E1ABFA9; Wed, 1 Jun 2022 13:21:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243958AbiFAL4n (ORCPT + 99 others); Wed, 1 Jun 2022 07:56:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242108AbiFAL4k (ORCPT ); Wed, 1 Jun 2022 07:56:40 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95E5B6B7C0 for ; Wed, 1 Jun 2022 04:56:37 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id c14so1661773pgu.13 for ; Wed, 01 Jun 2022 04:56:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=pR6VzLoG/n8Hl9GbCmfWr6M9WLjiGWY3XL3BO0710dM=; b=w6WHPfiAa2BV+6s2Aq+bTPDlC3usBQQMUEzBNO9v68Ym/XmdcCTaiut0SFHNA5JtEs PeDc1Jch6hPTLaX+2tZxz9rxEFnVL3qAYPGJWp9krdPas0eTy+o+2BUe5cJaAAY24dU4 3tSkFPc+dG9/uLbT+Of1zSZ+S/AQv6OP/H+1pKxQ7sJmXR80+gwIe1rabajINc9aRrly 3eSpIw8dDhQvYURe8U06jgFjHGg1lC8nF8/RapYfjKXYKZkZH9kcLTVlP37U4L+qIw86 D+pxNhJxwpgJlN9aNw/ZhFWcJwtMJSsz+B9I0kM0OfR4ywm9IYjUAb9Wrldo9qxs5qFh 8SQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=pR6VzLoG/n8Hl9GbCmfWr6M9WLjiGWY3XL3BO0710dM=; b=TQ5HKMdZxtJr376D13dbL9FpVorLRaGZ2rdcL78gK3hN6m5lVAMMW+5+iGQPYH0eN+ 0x7toekz9Y9zf7tOPQAG1CM9EfK1hC/Y68wheDGwdxIwFqYXeAXQRblsTMeyq1FWQny1 EZ9HEFmZPiApPO6r7VpG2R80avce/kGXUphsIF677Dvxp3imoXV1VKBgQkDPqgFfsGCW Eghg5n4rM0WmmAqj5d3VWIyjmTWhDScoJlICsXerRBy7ya1jgCI+tf7d9G74Br77cGda muRefhxHBB0KiF361vM+G5CxrIqSDVdKBa0xfnn9IehW5iHN5KIL8ebLP+rzUeyX7b9Y Qf5g== X-Gm-Message-State: AOAM533hKaB021OCQqNiTc0yV9ABphPhP6o4lSm66vnLPse1PrqahIK6 tIUW0bztawQpOmnxo3cu3kx3jA== X-Received: by 2002:a05:6a00:994:b0:518:6f30:502d with SMTP id u20-20020a056a00099400b005186f30502dmr59379307pfg.68.1654084597086; Wed, 01 Jun 2022 04:56:37 -0700 (PDT) Received: from localhost ([2408:8207:18da:2310:f9bc:fb5f:5b66:a80e]) by smtp.gmail.com with ESMTPSA id g29-20020aa79ddd000000b0050dc762819esm1264305pfq.120.2022.06.01.04.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 04:56:36 -0700 (PDT) Date: Wed, 1 Jun 2022 19:56:31 +0800 From: Muchun Song To: David Hildenbrand Cc: mike.kravetz@oracle.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, smuchun@bytedance.com Subject: Re: [PATCH 3/3] mm: hugetlb_vmemmap: cleanup CONFIG_HUGETLB_PAGE_FREE_VMEMMAP* Message-ID: References: <20220404074652.68024-1-songmuchun@bytedance.com> <20220404074652.68024-4-songmuchun@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 01, 2022 at 12:10:29PM +0200, David Hildenbrand wrote: > On 01.06.22 11:54, Muchun Song wrote: > > On Wed, Jun 01, 2022 at 11:32:37AM +0200, David Hildenbrand wrote: > >> On 04.04.22 09:46, Muchun Song wrote: > >>> The word of "free" is not expressive enough to express the feature of optimizing > >>> vmemmap pages associated with each HugeTLB, rename this keywork to "optimeze". > >>> In this patch , cheanup configs to make code more expressive. > >> > >> Nit: why not simply CONFIG_HUGETLB_OPTIMIZE_VMEMMAP if we're touching > >> this already? At least I don't see value in the additional "PAGE" :) > >> > > > > I thought it keep consistent with CONFIG_HUGETLB_PAGE. If you think > > CONFIG_HUGETLB_OPTIMIZE_VMEMMAP is a better name, maybe we need to > > another separate patch since this series is already on mm-stable branch. > > I see, makes sense then. > > >>> > >>> Signed-off-by: Muchun Song > >>> --- > >>> Documentation/admin-guide/kernel-parameters.txt | 4 ++-- > >>> Documentation/admin-guide/mm/hugetlbpage.rst | 2 +- > >>> arch/arm64/Kconfig | 2 +- > >>> arch/arm64/mm/flush.c | 2 +- > >>> arch/x86/Kconfig | 2 +- > >>> arch/x86/mm/init_64.c | 2 +- > >>> fs/Kconfig | 16 ++++++++-------- > >>> include/linux/hugetlb.h | 2 +- > >>> include/linux/mm.h | 2 +- > >>> include/linux/page-flags.h | 6 +++--- > >>> mm/Makefile | 2 +- > >>> mm/hugetlb_vmemmap.c | 4 ++-- > >>> mm/hugetlb_vmemmap.h | 4 ++-- > >>> mm/sparse-vmemmap.c | 4 ++-- > >>> 14 files changed, 27 insertions(+), 27 deletions(-) > >>> > >>> diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > >>> index 56edbe3f458f..89a58ac49d5f 100644 > >>> --- a/Documentation/admin-guide/kernel-parameters.txt > >>> +++ b/Documentation/admin-guide/kernel-parameters.txt > >>> @@ -1660,7 +1660,7 @@ > >>> Format: size[KMG] > >>> > >>> hugetlb_free_vmemmap= > >> > >> We didn't change the parameter name in #2, correct? > >> > > > > I think this is a interface to users. Is it correct to > > change it? > > I guess so ... I was just wanted to confirm that this is still correct :) > Well, I think it is not correct to change it since it could change behavior to users. :-) Thanks.