Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp114922pxh; Tue, 9 Nov 2021 22:20:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJybqS5a0Li1J3VxP7g521AkWWmVrIPf59fZ14b4s2IapqyxcMZMzrXkfIiR+GfQmBQoVB2V X-Received: by 2002:a6b:f905:: with SMTP id j5mr9193695iog.27.1636525230969; Tue, 09 Nov 2021 22:20:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636525230; cv=none; d=google.com; s=arc-20160816; b=Z6MSadQu9SEvN73wtF8ChkSbDhzACH9636icxxocR4NZTYjz0NGa9OtDcgQG5uD6Sj kpbfZk58TUmVar6zMD6RR3rW3cXUYQ/5HR13sj1fqEbVenK9tdoMiVr81ykcv+2gO51S CQ03xS2HVI0O1Vf+VlJACs689hGiPVRZDfCkDr51G27naZ+wlgwJkiztbYAuGozpJ42o iGP+kqVqfDFHZH+gLAZPEohJhf0BVlITGXJl9eoZMO/HM0tfaEofpkhvhLMPwBAqFAFq ksltokwMb+vWHLvqx8eaZB6hq63NUD0ynhR4FilA1nJZZldLB1TCMT/sGKIha8HtHcPL /77w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=IjUT8zCp2aLFMQgSGnAyzSy9afXTEGUeSUT1uAZ7PO8=; b=i6S7CHEWTJPOD4fXhZytvQQHln4rszcaZXFGH9cFntZFxjrM5VQzfO3LdvW/mfBUxB 1JAV3plNuu86rikOScK117vrIxnAfxL3W9X4fegeG2nzf2QGTIpKJwE+pk0bR5PL6Drb 5q78AkHpIvaFywSkr2Ec5atpzQqklrsNF75/45Fyh0z2y2/Nz44hU1+jBcJqtKHiPsJm 4zTyusR0NMPpxFa/SP2Qd2wio6uiYMnf798/KgEdkwo60nBCdulnXTlWCoMq289g5Moo IygzFSfEQoi3bQLxuHsfE9nB5Q88dVKAMbrtzZ2KMcZB9WjRyit+QMXo8qNahtgn5+g6 hUsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="v9Y/NbJG"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t10si40591949iov.95.2021.11.09.22.20.16; Tue, 09 Nov 2021 22:20:30 -0800 (PST) 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; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="v9Y/NbJG"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229731AbhKJGVz (ORCPT + 99 others); Wed, 10 Nov 2021 01:21:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbhKJGVy (ORCPT ); Wed, 10 Nov 2021 01:21:54 -0500 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75E5AC061764 for ; Tue, 9 Nov 2021 22:19:07 -0800 (PST) Received: by mail-yb1-xb33.google.com with SMTP id o12so3809018ybk.1 for ; Tue, 09 Nov 2021 22:19:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IjUT8zCp2aLFMQgSGnAyzSy9afXTEGUeSUT1uAZ7PO8=; b=v9Y/NbJGrZHSlykl99QODQr2L+E6A/yXZBeBI6qkRCLgq3bsOIp2K86NV5/7A2MCWO W5iIvM32RREMYIexhAKSHaabulV+5QCary78yorn8Bdqf/JV/KR5nDVwXmrIkMnAVJtp lJb5H2+JwqrgqysOJXa7oZtiNWZmz+3weCON1t/D7ptQpsGxFYpL1nPfmAevqYrLpxGX B3tzSoNjBm/UbNWh6Z44JTfXa4c8SsYCIcb8hnczY++B5QoKj2palcQ+u+q4n/PuU/I7 /hcmU920o2jq57EE9RKaBfIgnHI3xyRpsZf/mzDfVAj45qDsEup1eaHpm648d/IJ+diT 7eKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IjUT8zCp2aLFMQgSGnAyzSy9afXTEGUeSUT1uAZ7PO8=; b=j6TsgVxrwn7xizBDDlnBT2qhu3PCxt2aQ0RMxTv4+iugYJv+zlxtmUj7d0yYcuTzSG 7JuZhoV9BWFGpraBPnXD69YGxSmzBpOPHkaNzVB29VNIPSV5QQcgCdvrmz+JjnFuMQK8 y5qPi0NDUF3BZiTUFndihaxKXRTMQ28szky+XBV5Zcs+RV5Ufdf/oPgA4UjlER5ruPIH KPzcWYmaA8puVq8/dusFmfvHQtaEeTr9j99EyeEPaxde0VBy21jNeX+vcko4VAKFT7gN zvj5P6Z8EtbUv75KL30eWO9sfbAWfghxAiJ+Pc9BV2Vdn/2YcEKgVmdrXl4lGVvNj+4d tkmg== X-Gm-Message-State: AOAM533BtdKvcKRHMKqTjInL6Te0QfVkIXuqGHJJee+Wpme0tJW8Fp/F 1VEqJXN14UUlo5KtmC6auIAl/E30qQYvT35YER1tlg== X-Received: by 2002:a25:ef0b:: with SMTP id g11mr14790116ybd.404.1636525146779; Tue, 09 Nov 2021 22:19:06 -0800 (PST) MIME-Version: 1.0 References: <20211101031651.75851-1-songmuchun@bytedance.com> <35c5217d-eb8f-6f70-544a-a3e8bd009a46@oracle.com> In-Reply-To: <35c5217d-eb8f-6f70-544a-a3e8bd009a46@oracle.com> From: Muchun Song Date: Wed, 10 Nov 2021 14:18:28 +0800 Message-ID: Subject: Re: [PATCH v7 0/5] Free the 2nd vmemmap page associated with each HugeTLB page To: Mike Kravetz Cc: Andrew Morton , Oscar Salvador , Michal Hocko , David Hildenbrand , Jonathan Corbet , Matthew Wilcox , Xiongchun duan , fam.zheng@bytedance.com, Muchun Song , Qi Zheng , linux-doc@vger.kernel.org, LKML , Linux Memory Management List , "Song Bao Hua (Barry Song)" , Barry Song <21cnbao@gmail.com>, Chen Huang , "Bodeddula, Balasubramaniam" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 9, 2021 at 3:33 AM Mike Kravetz wrote: > > On 11/8/21 12:16 AM, Muchun Song wrote: > > On Mon, Nov 1, 2021 at 11:22 AM Muchun Song wrote: > >> > >> This series can minimize the overhead of struct page for 2MB HugeTLB pages > >> significantly. It further reduces the overhead of struct page by 12.5% for > >> a 2MB HugeTLB compared to the previous approach, which means 2GB per 1TB > >> HugeTLB. It is a nice gain. Comments and reviews are welcome. Thanks. > >> > > > > Hi, > > > > Ping guys. Does anyone have any comments or suggestions > > on this series? > > > > Thanks. > > > > I did look over the series earlier. I have no issue with the hugetlb and > vmemmap modifications as they are enhancements to the existing > optimizations. My primary concern is the (small) increased overhead > for the helpers as outlined in your cover letter. Since these helpers > are not limited to hugetlb and used throughout the kernel, I would > really like to get comments from others with a better understanding of > the potential impact. Thanks Mike. I'd like to hear others' comments about this as well. From my point of view, maybe the (small) overhead is acceptable since it only affects the head page, however Matthew Wilcox's folio series could reduce this situation as well. Looking forward to others' comments. Thanks. > > -- > Mike Kravetz