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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2BC8EC433EF for ; Wed, 2 Mar 2022 21:21:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245200AbiCBVWk (ORCPT ); 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 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