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 X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86618C432BE for ; Thu, 26 Aug 2021 04:02:21 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0E945610F8 for ; Thu, 26 Aug 2021 04:02:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0E945610F8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 247898D0002; Thu, 26 Aug 2021 00:02:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1F7558D0001; Thu, 26 Aug 2021 00:02:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0BF858D0002; Thu, 26 Aug 2021 00:02:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0238.hostedemail.com [216.40.44.238]) by kanga.kvack.org (Postfix) with ESMTP id E4DCB8D0001 for ; Thu, 26 Aug 2021 00:02:19 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 52BDB22AB5 for ; Thu, 26 Aug 2021 04:02:19 +0000 (UTC) X-FDA: 78515884398.27.F15E12B Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by imf08.hostedemail.com (Postfix) with ESMTP id 0774430000AB for ; Thu, 26 Aug 2021 04:02:18 +0000 (UTC) Received: by mail-pf1-f174.google.com with SMTP id m26so1612977pff.3 for ; Wed, 25 Aug 2021 21:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:cc:references:in-reply-to:mime-version :message-id:content-transfer-encoding; bh=Oxi9GUAjjrXy9o+mfocb/qAIFBiI2+i+SCUd2qrmcNw=; b=KBWp4VV/tma8GhuwcgInEq6+v0E/KDzWIAj4q6+lCzaMwhrcTIp4CAY5KfRn6FuEj6 rlGE9NFn1zDx/GE3uRHKnVAckcviFbUHoxjtoGIq11g0rFx4wGGvPXYt9qSh2uo1TrTE BQcrWbOo6aQ2aol/fVg1Z56EyDujPB2TfTq/mwq4FTB4CYj9WboyQcbJi8fQzhyIqP4m eOskRNMFTUmun3l8A3PpKQpTPrvyJUG3m9idTpVOdNvaDQvhxavq3uMLRy3SpHRyQNf6 BuRRDzskc/DcMZ44tS25C4LE773m60DLYZEd4BoVLZT+xMpqeCfgL5dbxCjv3qUizz12 EbSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :mime-version:message-id:content-transfer-encoding; bh=Oxi9GUAjjrXy9o+mfocb/qAIFBiI2+i+SCUd2qrmcNw=; b=ZENZtVPcNtAhAH6eEGkiLnoFqXW+g6TFsLwZp5uWCuPRuJL9NP69WcFZSxGa50tM8T elu9c4BZ3pTLzNgEuGlEAydLVAzCWHiUQhwG1sxlvWkE8yGjGB1Rrj9gluXhIHO4z0IU S0+SSGia9Z1vAu1EhiLS252blGKkgw4x5NuIO9hxFqfwhWuAZn5S9B1ZKfVdq52k8Wby e0fy1Y3WqAv3tiRN8HyDAKjdEWZVEITxJkdzUHIBtQfMbHis06TZ0KOL1ixPRfOnrwWP t+s6iZgt7dLyBUcLlHSdxGLPE1um561WEDKT1hMfnnf8eZjEVFFquue1MMNyhou1xFiU NPFQ== X-Gm-Message-State: AOAM531uLC3DHZwN7deHqN4JqCfImNZJVyhJrwcJ5mgC7FR/BaJypLgi JQSJ+Ma8Tvjiiy+8NgYOFn4= X-Google-Smtp-Source: ABdhPJydBAdee6sGWXe83G6Ns/w8FokBMmc8JUE3YPOEccITJ0OIC4vkV+1jKPQfauwz8oDFC0Rj9Q== X-Received: by 2002:a63:1504:: with SMTP id v4mr1529124pgl.151.1629950537851; Wed, 25 Aug 2021 21:02:17 -0700 (PDT) Received: from localhost (193-116-119-33.tpgi.com.au. [193.116.119.33]) by smtp.gmail.com with ESMTPSA id x40sm1078266pfh.145.2021.08.25.21.02.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Aug 2021 21:02:17 -0700 (PDT) Date: Thu, 26 Aug 2021 14:02:11 +1000 From: Nicholas Piggin Subject: Re: [GIT PULL] Memory folios for v5.15 To: Christoph Hellwig , Theodore Ts'o Cc: Andrew Morton , David Howells , Johannes Weiner , linux-fsdevel , Linux Kernel Mailing List , Linux-MM , Linus Torvalds , Matthew Wilcox References: <1957060.1629820467@warthog.procyon.org.uk> In-Reply-To: MIME-Version: 1.0 Message-Id: <1629948817.v8xwzejw2u.astroid@bobo.none> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="KBWp4VV/"; spf=pass (imf08.hostedemail.com: domain of npiggin@gmail.com designates 209.85.210.174 as permitted sender) smtp.mailfrom=npiggin@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 0774430000AB X-Stat-Signature: n5xkobooaumns47aheqpydw47mbefm8h X-HE-Tag: 1629950538-251063 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Excerpts from Christoph Hellwig's message of August 25, 2021 4:32 pm: > On Tue, Aug 24, 2021 at 03:44:48PM -0400, Theodore Ts'o wrote: >> The problem is whether we use struct head_page, or folio, or mempages, >> we're going to be subsystem users' faces. And people who are using it >> every day will eventually get used to anything, whether it's "folio" >> or "xmoqax", we sould give a thought to newcomers to Linux file system >> code. If they see things like "read_folio()", they are going to be >> far more confused than "read_pages()" or "read_mempages()". >=20 > Are they? It's not like page isn't some randomly made up term > as well, just one that had a lot more time to spread. >=20 >> So if someone sees "kmem_cache_alloc()", they can probably make a >> guess what it means, and it's memorable once they learn it. >> Similarly, something like "head_page", or "mempages" is going to a bit >> more obvious to a kernel newbie. So if we can make a tiny gesture >> towards comprehensibility, it would be good to do so while it's still >> easier to change the name. >=20 > All this sounds really weird to me. I doubt there is any name that > nicely explains "structure used to manage arbitrary power of two > units of memory in the kernel" very well. Cluster is easily understandable to a filesystem developer as contiguous=20 set of one or more, probably aligned and sized to power of 2. Swap=20 subsystem in mm uses it (maybe because it's disk adjacent, but it does=20 have page clusters) so mm developers would be fine with it too. Sadly you might have to call it page_cluster to avoid confusion with block=20 clusters in fs then it gets a bit long. Superpage could be different enough from huge page that implies one page=20 of a particular large size (even though some other OS might use it for=20 that), but a super set of pages, which could be 1 or more. Thanks, Nick