Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4639641iob; Sun, 8 May 2022 20:13:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyks7KTXIH+YSYEFLMSuC5v+ctTNprrVwZWJZyTEnq+lLAT8N91s+PnDTVrbaXcdDCKiZag X-Received: by 2002:a17:90b:606:b0:1d9:5dd5:1489 with SMTP id gb6-20020a17090b060600b001d95dd51489mr24176454pjb.171.1652066009856; Sun, 08 May 2022 20:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652066009; cv=none; d=google.com; s=arc-20160816; b=KfoeD0XpagrdDSZmZ/IP2jONA0jMwXVc//wEsnQFI6Lvnc8nTyIEut095290oa/2pe kPchmrMeXxoPpdgXVECoPMVGiRxNMJsjM+c7VEBBsICLbbNur1e3HMDBJsKRrBui+Xkm nfffPY0Uymw4GB7EuufSjYB/lBDHsv2O5oKWbWQJei413OdiOnTC01NhPkotiywzgxJL 5IB/8wmvHYVvUKs/4TmiavBMfgdaqXKoY6GmYT+/nsQ/rRD8nscESvg1DaDHGfhb/Cz3 7y3xJIz20pN32wDvXWCPxu9/JK6aKKf5qYL5qvpS9cGzWqvDF2QM205MjxIyS50nIReL Obgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=CjRuVuiMRdehZex+0ui0yXn7bFh4sYRAewb5Bpgfm14=; b=yimg99I4SXwEUW3aQNyTj5b40H9T1ZvUWpNx0hZyWHVObG0jGW7Q/GL+qOPfqgc8zf lVT7g9lxmJfOiywD22omZM12gUDXu4UtpqM0sgQ4omAuawmtaw+KTSGoab+MyHYjrvsr LYQoA+/rLQWxFTAJdz+87jA4v4gG/SgHnc6B0ivBSZUWeW7bx0hXc2c8HE/PaUz0os/+ j1obJd5PNVQhjozS8f08lWSnvK1nB9hT8BmrAOR1XsYdKNi0ZRF5gn2zmYe441vxuk78 X5QTzkJMM7MihhIyDK2HmqrMlb33ky4/uaju9t8ioD0PrvdvBKwNBlA6Dl5J8IPhYJaT CZxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=qxP2AP0l; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e23-20020a170902ed9700b0015f138767e8si2172754plj.459.2022.05.08.20.13.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 20:13:29 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=qxP2AP0l; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6B61392D16; Sun, 8 May 2022 20:12:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230396AbiEGVJC (ORCPT + 99 others); Sat, 7 May 2022 17:09:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387445AbiEGVI7 (ORCPT ); Sat, 7 May 2022 17:08:59 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3808B23BFC; Sat, 7 May 2022 14:05:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E5959B8068C; Sat, 7 May 2022 21:05:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BB80C385A5; Sat, 7 May 2022 21:05:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1651957509; bh=qYJf6KKIw0kS7h3klkpFrLBCOJEdBYsXoDnCkBbFot8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=qxP2AP0lq9d2eXVJ8PA6dz/JiOL9xsmVaaf1clt+8Ad5mfECqtsRZDb9a5dBiJQfk SOPlgf7msLNc6PhcyaPgxTLCMEI2KQvWbOUGRd333UnGei+mEEUTt2Mr9Bhbe35wXy ee82ymIYse7stEUwRtebn8IQ76nJwnQD48BCeWck= Date: Sat, 7 May 2022 14:05:08 -0700 From: Andrew Morton To: Muchun Song Cc: Mike Kravetz , corbet@lwn.net, mcgrof@kernel.org, keescook@chromium.org, yzaikin@google.com, osalvador@suse.de, david@redhat.com, masahiroy@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, duanxiongchun@bytedance.com, smuchun@gmail.com Subject: Re: [PATCH v9 2/4] mm: memory_hotplug: override memmap_on_memory when hugetlb_free_vmemmap=on Message-Id: <20220507140508.38c9e211eae4715134f9fa31@linux-foundation.org> In-Reply-To: References: <20220429121816.37541-1-songmuchun@bytedance.com> <20220429121816.37541-3-songmuchun@bytedance.com> <3d040faf-7fc1-80a6-c584-aafeff27af18@oracle.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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, 4 May 2022 11:37:43 +0800 Muchun Song wrote: > > Freeing HugeTLB vmemmap pages is not compatible with allocating memmap on > > hot added memory. If "hugetlb_free_vmemmap=on" and > > memory_hotplug.memmap_on_memory" are both passed on the kernel command line, > > freeing hugetlb pages takes precedence. However, the global variable > > memmap_on_memory will still be set to 1, even though we will not try to > > allocate memmap on hot added memory. > > > > Not sure if that is more clear or not. > > > > Clearer than mine. I updated, thanks.