Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3553605rdh; Mon, 27 Nov 2023 18:11:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmofskavB4h+LQ6ZIWPhAwhPSqmNqAlXOClq7ucpE7aUGxYxaX3+NMC/58e/J4MvLuP3sc X-Received: by 2002:a17:902:d4d1:b0:1cf:aeca:8a28 with SMTP id o17-20020a170902d4d100b001cfaeca8a28mr11650522plg.60.1701137517498; Mon, 27 Nov 2023 18:11:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701137517; cv=pass; d=google.com; s=arc-20160816; b=h2dsPiIVwy/eNLDBCIGL4f8yJRgThuN+aRXiCbdgAC03NA/zrnAb+zp+JfOnZHwdU8 0tzG8hu9glbeESrkYrg/QQdYD4wlWmgeqDQK1Qc9REB4zJUy06UNGAkCfkxuR2gCOIt/ 5Wey+e6U7ayxuy7PcWowWLUV5GsH3TgeXc6GWpaVfCsztIjya8bQ6jq/+fjODsH0Nr+X OqP8/syidqgcJBCVAA4mTKglwl9EJ40TUhfp0Da8PuMXGTtr3+V4YnvuUB4FSWHzwaI6 TyeL+Kt99ORzVeMR05iw2XYZld28/RPUFJqC2Eg8Af2yc6fmMiTSANAgSegA1N+GGf77 7Ctw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ubmcznw19qene2kxfVuKrRYrUJ8fw5+RBKani9eIaVk=; fh=+p/HtooJ4FKbjISI92u2ank4lNbJcI00VZFROLKLkPE=; b=ihgDMB31H03bqOo+duQsI4i8w5WcuqzSHSnf2LxyHVP3UlPnJJ081NpLujChqRrDQF Yrrxeh5+J9FKhUIMbTy2CKZ14xm7nceDiDfLh+od31PRpb6ZqQiwBJXzvha+q0O6DLam QzlkAA3GFf9t/8SHQswtSU6Ik09n9JQdHKg7YmnrDC5bw91v5PJMR+HxYtlGntzO7lhu kQET3pN/LjNviDbA+Q1J5Fqtcma4cNiDvAtoxtLCZySUrm3O2vioSm3kRKrFJ2JFTWQ+ Ogi++wcFl+cF0UBRZ8zx94lfjdCTpfdHfkCSeB1XI3fZo6OjB6J1bVbZYLr3llxA3rK8 2uYA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=jIjqguRI; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id jf3-20020a170903268300b001c4062a0e43si10468620plb.169.2023.11.27.18.11.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 18:11:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=jIjqguRI; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8CB9E80A8B78; Mon, 27 Nov 2023 18:11:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232720AbjK1CKB (ORCPT + 99 others); Mon, 27 Nov 2023 21:10:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbjK1CJ7 (ORCPT ); Mon, 27 Nov 2023 21:09:59 -0500 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2065.outbound.protection.outlook.com [40.107.93.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC9ADC3 for ; Mon, 27 Nov 2023 18:10:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cIn0jUfeLyCLNncUHWIAY24Ks+U0RLQlSsn/IDwoHF1yYROioAzVOsSBIp0OaxoUT4VPtRhHQkDG7skPCvNQJy8Nei/N8Fe72FLsUuBE7QWCztiI2sxtFFcHrpuqgMjM0SkjE2Spco/BrU3VykvfHlzWwg7t0GL9Hs4dS8D7hEEg2pn2yTwne8cLF+OWzlEIDv1OvVXLtETzOMtsUGdvtAERVkqx2CsvdgrLdzhehi/gtHD+2ALvahGGMiMbOp14Q/5v8qrsxrzNZ26GxVJgpfgYClZJWdqgey/465jt7c1ATSRB1plQKCJiS7aTWrhaRcTLs1rAKp3D1dVkeb/pjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ubmcznw19qene2kxfVuKrRYrUJ8fw5+RBKani9eIaVk=; b=i3AJI6qKzipifFiAnQhvAnuKU2Br/8xjcWDm6AB6GNDWMWhQHYQkR5sBQ35tsZIiRM9q1ON7Z1TNpAsVY2+UXVd5oXOhYQNvJMtg7VK3UoBA4aYeqkfLUqwcxGTot4qKfUeFoLzeNMw+vWPSQPTSKrzKY1KJpYbiuO1iRIMqRXVMZoYmnEuWckh9F//zEGHI5Me+S35T5E8gidZdTJVyKqS9hCgGp+o6dOf6veAk6VWMVk1++MGVpiHBd0ImRD3lsXwzspL0IR64Lpb6PGFp1R1w+GuLR5/CAEzJZ43FGKnpa/mdNaSz7a95x/TFDF8FsEzXGzI/JQaF3Cwd9WT74g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=arm.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ubmcznw19qene2kxfVuKrRYrUJ8fw5+RBKani9eIaVk=; b=jIjqguRIFCUK9i4YGxjAiOilereHRzBLRD6OpnRNsH6ySaVPlK86xHlPawhrmkr3LWOV3Bl9qQfVij1HhGvPLJQARKmOLQQtl0KCMCPmdkVs9k4+1CrBStZW4lWkrDceNInQxqKrQPU+ec853Xn78palYCvvsa4YsWjmUv2FxiOrrHvfRKxSsrWny42bt4BQ+PLL++ir93l/7/R/CJzyNBGy2kfK+LoPNWtOpTB7qdYlU4X6RWBZO8BCCyZmunWwBBsAnzM19xoiCILIQZiuJysyla4IynxzohyrM08ADGmHrUU5WrQx6hFxJLrIIqoWD+o8Ol+ke84stpGXU/jECA== Received: from BL1PR13CA0314.namprd13.prod.outlook.com (2603:10b6:208:2c1::19) by BL1PR12MB5221.namprd12.prod.outlook.com (2603:10b6:208:30b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.28; Tue, 28 Nov 2023 02:10:03 +0000 Received: from MN1PEPF0000F0E4.namprd04.prod.outlook.com (2603:10b6:208:2c1:cafe::41) by BL1PR13CA0314.outlook.office365.com (2603:10b6:208:2c1::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.19 via Frontend Transport; Tue, 28 Nov 2023 02:10:03 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by MN1PEPF0000F0E4.mail.protection.outlook.com (10.167.242.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.17 via Frontend Transport; Tue, 28 Nov 2023 02:10:02 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 27 Nov 2023 18:09:48 -0800 Received: from [10.110.48.28] (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 27 Nov 2023 18:09:48 -0800 Message-ID: Date: Mon, 27 Nov 2023 18:09:47 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RESEND PATCH v7 00/10] Small-sized THP for anonymous memory Content-Language: en-US To: Ryan Roberts , Alistair Popple , David Hildenbrand CC: Matthew Wilcox , Andrew Morton , Yin Fengwei , Yu Zhao , Catalin Marinas , "Anshuman Khandual" , Yang Shi , "Huang, Ying" , Zi Yan , Luis Chamberlain , Itaru Kitayama , "Kirill A. Shutemov" , David Rientjes , Vlastimil Babka , Hugh Dickins , Kefeng Wang , , , References: <20231122162950.3854897-1-ryan.roberts@arm.com> <9c8f6d2a-7ed8-45d2-9684-d77489bd99b8@redhat.com> <26c361bc-6d87-4a57-9fae-ef635c9039c7@redhat.com> <87sf4rppuc.fsf@nvdebian.thelocal> <51e6c9f1-e863-464b-b5f3-d7f60a7ebed6@arm.com> From: John Hubbard In-Reply-To: <51e6c9f1-e863-464b-b5f3-d7f60a7ebed6@arm.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000F0E4:EE_|BL1PR12MB5221:EE_ X-MS-Office365-Filtering-Correlation-Id: 9b26f015-e33c-4c46-1829-08dbefb721e1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XvUYKAHxwtQ/WC9nzui0EKkqB3dJ+A0sruXuJwulUNS5Hh4uVn6ARh4palToxEvGBxXug+XHVzzA4ZDRmglVRgHvNilh97ahAaGd3e8ALwsZQVhVN8beHrVmA/jS3YX6gnleFir0ufvQoU8WqFNV/I2ASv9DA4zD3nC8fJomuJHgNlit0CweK7iPyaIWod+KiBKN7WUTpTse9fauFEQB+FxNgb5VDUaYYSYSNcm/vt9fCU0l8QWrq535iPEX4SUto9IhkFg0+04dDkgGdebLBQQmOa62XB625A1WPCqnt2FuJswn0jUL9lf/GuL82EjIwz6Is29v+QpbbW/Mr1cFT8l9xffCHV32GHITGNOIgwHkqXVLruBMQChrKX2wsl98Jsd3TGVXWLCtcs4OHxlShIx0tZtYLMEAJ8USH3c7KNBBHffFAvyQwD3BMd7Jmucc21E7shNrwMfgRvcwxXRX4OmIveS6L8Xqp32q+Lg8ke1Br3xHDES7nzvhI9J5dvqicoIXX/a7ykfVQv8r0IQsZEiukCl/6znd7t0KwlIPpRf6glxZmrU+c3MMZPJapdI8OJAuo6mgPVYJI6W6dcY9YNggXSxwaQDMY3S4tHklIi7/QTT+NBxuXDPz0aHP7PyPUUg9Q2fdKRQvfFOeo2MbJvYgrxhZjDOfZRqyVgXfZxGAYUHKz0+v7eqdyknOATE0f0CoPSLeJsnTPppE7MCHKiJFkfrbnTghPPg45fzSfhYG8gknMoHh2qkJaMEetJNpsmYcRwWrZjDedtmzO0JdDA== X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230031)(4636009)(346002)(39860400002)(396003)(376002)(136003)(230922051799003)(186009)(1800799012)(82310400011)(451199024)(64100799003)(40470700004)(46966006)(36840700001)(2906002)(7416002)(31686004)(70206006)(70586007)(41300700001)(110136005)(53546011)(8676002)(54906003)(316002)(8936002)(16576012)(4326008)(478600001)(5660300002)(2616005)(336012)(16526019)(426003)(26005)(83380400001)(47076005)(40480700001)(36860700001)(86362001)(40460700003)(31696002)(356005)(7636003)(36756003)(82740400003)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2023 02:10:02.7479 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9b26f015-e33c-4c46-1829-08dbefb721e1 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: MN1PEPF0000F0E4.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5221 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 27 Nov 2023 18:11:48 -0800 (PST) On 11/27/23 02:31, Ryan Roberts wrote: > On 27/11/2023 08:20, Alistair Popple wrote: >> David Hildenbrand writes: >>> On 24.11.23 16:53, Matthew Wilcox wrote: >>>> On Fri, Nov 24, 2023 at 04:25:38PM +0100, David Hildenbrand wrote: >>>>> On 24.11.23 16:13, Matthew Wilcox wrote: >>>>>> On Fri, Nov 24, 2023 at 09:56:37AM +0000, Ryan Roberts wrote: >>>>>>> On 23/11/2023 15:59, Matthew Wilcox wrote: >>>>>>>> On Wed, Nov 22, 2023 at 04:29:40PM +0000, Ryan Roberts wrote: ... >>> Maybe that's the reason why FreeBSD calls them "medium-sized >>> superpages", because "Medium-sized" seems to be more appropriate to >>> express something "in between". >> >> Transparent Medium Pages? I enjoyed this suggestion, because the resulting acronym is TMP. Which *might* occasionally lead to confusion. haha :) > > I don't think this is future proof; If we are going to invent a new term, it > needs to be indpendent of size to include all sizes including PMD-size and > perhaps in future, bigger-than-PMD-size. I think generalizing the meaning of > "huge" in THP to mean "bigger than the base page" is the best way to do this. > Then as David says, over time people will qualify it with a specific size when > appropriate. > >> >>> So far I thought the reason was because they focused on 64k only. >>> >>> Never trust a German guy on naming suggestions. John has so far been >>> my naming expert, so I'm hoping he can help. >> >> Likewise :-) >> I appreciate the call-out, although my latest suggestion seems to have gotten buried in the avalanche of discussions. I'm going to revive it and try again, though. >>> "Sub-pmd-sized THP" is just mouthful. But then, again, this is would >>> just be a temporary name, and in the future THP will just naturally >>> come in multiple sizes (and others here seem to agree on that). > > I actually don't mind "sub-pmd-sized THP" given the few locations its actually > going to live. > >>> >>> >>> But just to repeat: I don't think there is need to come up with new >>> terminology and that there will be mass-confusion. So far I've not >>> heard a compelling argument besides "one memory counter could confuse >>> an admin that explicitly enables that new behavior.". >>> >>> Side note: I'm, happy that we've reached a stage where we're >>> nitpicking on names :) >> > > Agreed. We are bikeshedding here. But if we really can't swallow "small-sized > THP" then perhaps the most efficient way to move this forwards is to review the > documentation (where "small-sized THP" appears twice in order to differentiate > from PMD-sized THP) - its in patch 3. Perhaps it will be easier to come up with > a good description in the context of those prose? Then once we have that, > hopefully a term will fall out that I'll update the commit logs with. > I will see you over in patch 3, then. I've already looked at it and am going to suggest a long and a short name. The long name is for use in comments and documentation, and the short name is for variable fragments: Long name: "pte-mapped THPs" Short names: pte_thp, or pte-thp thanks, -- John Hubbard NVIDIA