Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp322017pxm; Wed, 2 Mar 2022 16:20:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+2ReFaqS5yJoaKS6EsOYwoPM+2w+dzP89JB8Yskuo7jk030Lp4Q/Sro8kQnMPsbfjP8R6 X-Received: by 2002:a63:4b07:0:b0:373:e921:ca4e with SMTP id y7-20020a634b07000000b00373e921ca4emr27650048pga.58.1646266858176; Wed, 02 Mar 2022 16:20:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646266858; cv=none; d=google.com; s=arc-20160816; b=0gNTi4imVPQ5u/4RMkPJ/NK4RUSdt7cZGqs4fyzNj+DgBar27JjiUqiL5b1sT00/Li PxpPSSpcJV0NiQqnQeq2mbg/ttYPs5/RnGWgBZAVIkLF0GfkMr6EurwYPytatYFHhmBH LnNTxQWigNFqNrkmcTalyN51ULXoWqzkVVDr4VdvQlIfOnoMy9F5Dsf06EULRObP3pMQ q32uojGVlMTnS+iqXpA7b/wc1JojR4z4sZUHZRvWa4jyhGB8einrqhCJjUndHlzbAY90 8jH5tJfp2iDn0AX30bE9hCifxm86lpoYdGNIZ+JwLUCc0J4vPt4bVRsbVCKIVtflg/xQ hBdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=QGQwHCQX3j+TcKKZtmw4Nue4CTnQRxDyxtp3O3ZauA8=; b=a+PbThn4xSHgUZ9QvC80EtN+amdmvAEq/95VUHXFNuQHaY8TP//Qf61y/A9VvMIZq/ gaQ1f5rZm3yc0rsCQJUhkWjbBKjY2K7LXNA3fwXMKA+mGHI8eWCctxGWwZDD2O9+vx70 ExiwPw+bhHa5q+3kXSFeE0V94Q3Zxo0MK1Kaj0wT+/mO4A67WolclUqwt4+0XM3eaznG Ehn/fl37AI3uA889ZLWper3/Y3q9wdLVrrY8vP67BB613CNMgvnr/4Xb8v+3/Jf8u7ax m+eshmePyvebiN4mUABa5shrsoKSHHVjJFNN7/AzWsHGNp8GhNaPgCrG2tjFX/rfiB9N Ej3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=lYcaijEm; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t21-20020a63f355000000b00373e8f30b5bsi553792pgj.453.2022.03.02.16.20.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 16:20:58 -0800 (PST) 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=@infradead.org header.s=bombadil.20210309 header.b=lYcaijEm; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BE8C81EF359; Wed, 2 Mar 2022 15:34:07 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245169AbiCBVWk (ORCPT + 99 others); Wed, 2 Mar 2022 16:22:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234737AbiCBVWi (ORCPT ); Wed, 2 Mar 2022 16:22:38 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76D7C48E42; Wed, 2 Mar 2022 13:21:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:References; bh=QGQwHCQX3j+TcKKZtmw4Nue4CTnQRxDyxtp3O3ZauA8=; b=lYcaijEmRslYq3x6eyRWtLcAQq wgJKfe0IUb0dX0eXRFwcI6S944b3Z5XXManZwwaU0TDGnbXOGosC5c7Nu4I9eC5zC8TbwlHSvFGEg wSAI45wlWP0NsAInVV5SjB4H/HtpONAc0AUA7hTtXdbayCwIbPdvWj/m3HrPsLfTv/GH10RACIqi4 7csgyH7+04vAD1fd4l9ef23dhGfG7l2qPzm/+yURq3r8Ly8FOw8gX63GWTBnQCoT8PMvEuBzd7zIf +v5tpjWY4p7SDs+rgxj/+LqQ1HVMqSRcKh1t7TgAdTLSBkni4sGEcpSBwsF4dnCUkyTKfOaYcMVAc Sk/hxRBA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPWPt-004Gph-Mq; Wed, 02 Mar 2022 21:21:49 +0000 Date: Wed, 2 Mar 2022 13:21:49 -0800 From: Luis Chamberlain To: Muchun Song Cc: corbet@lwn.net, mike.kravetz@oracle.com, akpm@linux-foundation.org, keescook@chromium.org, yzaikin@google.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, duanxiongchun@bytedance.com, smuchun@gmail.com, Adam Manzanares , Davidlohr Bueso Subject: Re: [PATCH v2 1/3] mm: hugetlb: disable freeing vmemmap pages when struct page crosses page boundaries Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220302083758.32528-2-songmuchun@bytedance.com> Sender: Luis Chamberlain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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, Mar 02, 2022 at 04:37:56PM +0800, Muchun Song wrote: > If CONFIG_HUGETLB_PAGE_FREE_VMEMMAP_DEFAULT_ON is enabled and the size > of "struct page" is not power of two, we cannot optimize vmemmap pages > of HugeTLB pages. We should disable this feature in this case. The commit log does not descrie what happens if this is left enabled in that case? Is this a fix? Why would it be a fix? Was something failing? How did you spot this issue? What are the consequences of not applying this patch? Luis