Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp170048iog; Fri, 17 Jun 2022 01:00:43 -0700 (PDT) X-Google-Smtp-Source: AGRyM1syVh5Y8Nw1TVIufGXaB1LPB3hdmXXw6ZPHgbmIXI11YQ2aH+oQaz13WAzqUk9E5ckjAP+g X-Received: by 2002:a17:906:739a:b0:713:3ac7:976f with SMTP id f26-20020a170906739a00b007133ac7976fmr7808767ejl.22.1655452843337; Fri, 17 Jun 2022 01:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655452843; cv=none; d=google.com; s=arc-20160816; b=g33QHoW7nYVorVa0ehf5nEo2VyMRNxoGUmOtPN2y11HrTgWurQzWHpVb+BoQ9oV2j4 i6e+Vk9cm8wx3h6VQ1MfL/mW4FLpR+fxrCcDd2BG55thZg/8NhPpcHKy17Ub433ZMnY+ T2JrA/wuz0XxmmKevZEgbmgj5k2n+eEG1ic7utvYNmHC+2TcqdVm+RD6pd/bsv57QEE7 3JdUDlOPr+sMY+7FfYBDeRJRUSYxuXV/wLdM3gjp4UTUq7SZMJsUe3nIMOKIg2RmPpgC kYZ2aherakB6ndBn2nkJhEKbT/nceECpUoOB39h6fdhFfPBXGqj62F78AwMq7frKPnD/ Xhsw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/5JQEnezBo8SAr6g2AvndTomb05vaO1mzGxpKpnfNFw=; b=lrBlzMPsTE2zejdH2S6Jr9risk4byAPw4GkLH99XvH4cuOlI3W+MZje8OWxjxMjkVw Se0juRvWKVKc5AP1Px/ia/wykjZ5RlxG1NSGXFPoauZzd+budVmHw0IA6+YwbcRVxYdR TA32tC91RRINPbwO9FkUM+4jL2kBr1CNMVFLx7ZbRxX+H6ub2RgsPks6+ZGGgEFXBHpB 3eXlTlS6co8fkNN5Zqsa6uHhmLpNTyHvUmEDvcZ9ynhrykicCrACLA4MalaaaEcqwdwg oMApOBxJPmgSF0FGqiUOIqV7BsHY5hfBMBS0tSKwaHOit2SNlZpZQpVYZacewSP45qnz fWSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=ZeTtH3Da; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q19-20020a056402519300b0042b0dc85de3si2177955edd.341.2022.06.17.01.00.15; Fri, 17 Jun 2022 01:00:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=ZeTtH3Da; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1380024AbiFQHuF (ORCPT + 99 others); Fri, 17 Jun 2022 03:50:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377895AbiFQHuD (ORCPT ); Fri, 17 Jun 2022 03:50:03 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D300C674FA for ; Fri, 17 Jun 2022 00:50:02 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id e24so3380531pjt.0 for ; Fri, 17 Jun 2022 00:50:02 -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:content-transfer-encoding:in-reply-to; bh=/5JQEnezBo8SAr6g2AvndTomb05vaO1mzGxpKpnfNFw=; b=ZeTtH3DabDO7sw5h2E093njHE2+DJU4emaCoQlZUp7EeNN+4aqMW1wh+gGD4kgX9Mb un4tS4Jz1w73FWDZF9ZIdgVT4CjQfT+O58u4lonCUU4uDdjPPFhd/QhQSUWmU1Cfl/uH ARkOv26uS6Tj6rYl3rJyTDKKXbQWwSvGnysutexvWFVLvrTJdMnQ4544eG97GvJ9CpwH YAg9krnua2PFEENTm+SWJv1BXx7U1o/MnvzD+3uFuTubs401RvZe9elIco/tuXL9jhOh P2uHvQFQ2AHrJbAzOH6EFe0vMgyyXMjYYTFHYRhm9HMU2rqIB8oKHsWHamCQQI5XKdvx XjiQ== 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:content-transfer-encoding :in-reply-to; bh=/5JQEnezBo8SAr6g2AvndTomb05vaO1mzGxpKpnfNFw=; b=0S+0bebgLtHxOQRN8W8mFIpZLmHNJ8nBMsbSYL/j++vZZWONTKSD543gHWvmOBnx4x ux+jpw/xn2WS9oxfKE0cncwMboPiC89jBeuiBRGyXlDVX+1caP5Ck3axafQz097kIfhn S1hZtE/g3nZECZQ/JdW+ntrfEqQL3W66e+ucYJrWBGicU9+oGLUYYtCb46mpoKdnSZuS jHCbT64hseXMsxQu+L9UoMonjHMux/Fw6r1jZw4IBcBCsOMru0gFDPKZIl4CL2rbqVIH BKCG8ZBkKF+o62h1dC+pQXVQYBuDZPtPC1Q/Q+EUUmfx9J+pdaSD3J3r8rSO3Xroa/UZ /QmQ== X-Gm-Message-State: AJIora83RBtjbUL5GH05N3QBd3BRvu5dxIlIeLubZSoBjXBeMaP1+ScJ W9j6yv/zveP0gttWit2GSGY2BQ== X-Received: by 2002:a17:902:c946:b0:163:ed13:7ab1 with SMTP id i6-20020a170902c94600b00163ed137ab1mr8111674pla.36.1655452202297; Fri, 17 Jun 2022 00:50:02 -0700 (PDT) Received: from localhost ([139.177.225.255]) by smtp.gmail.com with ESMTPSA id 203-20020a6218d4000000b0051ba0ee30cbsm2994752pfy.128.2022.06.17.00.49.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 00:49:58 -0700 (PDT) Date: Fri, 17 Jun 2022 15:49:55 +0800 From: Muchun Song To: Mike Kravetz Cc: Joao Martins , david@redhat.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, akpm@linux-foundation.org, corbet@lwn.net Subject: Re: [PATCH 3/6] mm: hugetlb_vmemmap: introduce the name HVO Message-ID: References: <20220613063512.17540-1-songmuchun@bytedance.com> <20220613063512.17540-4-songmuchun@bytedance.com> <41e2d762-2c0d-b13b-d6da-6e0e0e858a84@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Thu, Jun 16, 2022 at 03:27:40PM -0700, Mike Kravetz wrote: > On 06/16/22 11:28, Muchun Song wrote: > > On Wed, Jun 15, 2022 at 03:51:51PM +0100, Joao Martins wrote: > > > On 6/13/22 07:35, Muchun Song wrote: > > > > It it inconvenient to mention the feature of optimizing vmemmap pages associated > > > > with HugeTLB pages when communicating with others since there is no specific or > > > > abbreviated name for it when it is first introduced. Let us give it a name HVO > > > > (HugeTLB Vmemmap Optimization) from now. > > > > > > > > > > Just thought I would throw this suggestion, even though I am probably too late. > > > > > > > Not too late, we are still discussing the name. > > > > > I find the term "vmemmap deduplication" more self-explanatory (at least for me) > > > to refer to your technique ,and similarly s/optimize/dedup. Or vmemmap tail page > > > deduplication (too verbose maybe) because really that's what this optimization is all > > > about. OTOH it would slightly deviate from what maybe established now > > > in hugetlb code. > > > > > > > Well, I have looked up this word "deduplication" which refers to a method of > > eliminating a dataset’s redundant data. At least I agree with you "deduplication" > > is more expressive for my technique. So I am thinking of renaming "HVO" to "HVD ( > > HugeTLB Vmemmap Deduplication)". In this series (patch 6), I have renamed > > hugetlb_vmemmap_alloc/free to hugetlb_vmemmmap_optimize/restore. I am also > > thinking of replacing it to: > > > > hugetlb_vmemmmap_deduplicate vs hugetlb_vmemmmap_duplicate. > > > > Many other places in hugetlb_vmemmap.c use "optimize" word, maybe most of them do > > not need to be changed since "deduplication" is also a __optimization__ technique. > > > > Hi Mike and David: > > > > What your opinion on this? I want to hear some thoughts from you. > > I can understand Joao's preference for deduplication. However, I can > also understand just using the term optimization. IMO, neither is far > superior to the other. It is mostly a matter of personal preference. > > My preference would be to leave it as named in this series unless > someone has a strong preference for changing. > All right. I'll keep the HVO name. Thanks.