Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp729581rdh; Thu, 23 Nov 2023 17:15:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IH48UrjaSPnPVGqb1yBlnR20OKTXhYeQBL+7CGHcWPR4fSZpv4Kq6DnWeG9WDbzMxrMKmB7 X-Received: by 2002:a17:90b:33c2:b0:280:b062:208 with SMTP id lk2-20020a17090b33c200b00280b0620208mr1035751pjb.35.1700788527786; Thu, 23 Nov 2023 17:15:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700788527; cv=pass; d=google.com; s=arc-20160816; b=TXJvnikgvtsmM60waBN85WzN64F0YKD62cB/+JWw/Tf9cKQOhuaXPdn3i/ZJlPIZQL arkw6vpyeD9n3w4SWdpdakXZFpeB6qIsArAH7yFFrqZrOf+e9hsEhDMAgi/SB6Oj5J3f +fS+MckB3a/0XljkvBrNlfksAgzsygRDzAie7XBNJRQK/QKMu8EQRMiq5B/tEx5+Qb4c 9a7VFDQ7QGoXwcPmkJuQnEFdum4mhbU8t42jmG2/GXA8L+xHNd7PgzTiP1ULlTs2Io8l FxF6lKoQn7j/D+XgOSMFWviUq+ZiYsSw180aFr1kz1e13IY/9JaRDpl7s29h3+sGG+Z3 cekQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=ywbDS5mUEMlExfMKe8IaLTShh9Gz2liVAy0qQ1Jhz8M=; fh=GNopRH/8p9BRhw+bk/74G6krCuOh3ltYPvhTCrQTe9U=; b=tDkFg+AQqP9ARLYQFOabfg0bKFKRPsohA4b4vfeWYfkWdH1qPrNQNoBLBMQK9epSAg L0V5IoU5wBFZflIMgppfqUAo69lo99ykyWRkA8Q2cErENs9SMw3FnV3rPHy7A2g5dvKd skpAkv9AW7aDMPjaE+BvQepCOUd3/yg1Ak4VCFZ93vjL1gaJmNmmOGqWGpMuOP86Dmpj 4Ki+c7ZBScxqOSIgksdYz8po8i9fg9jl53QoMg/66w3GvehIS3oh+yVinTT2Z/6KZ0Fc ZuExG5wuI0P4cDPZ2njwBL3vWQ3LHrHak4BPcRFOUWnTRW+jhFVrMoiIWoqoRA69k4dI /H1Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=Q3R5LC7x; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id n6-20020a17090aab8600b0027766994586si2826075pjq.71.2023.11.23.17.15.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 17:15:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=Q3R5LC7x; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id C89E5805E2DF; Thu, 23 Nov 2023 17:15:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229711AbjKXBPD (ORCPT + 99 others); Thu, 23 Nov 2023 20:15:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjKXBPB (ORCPT ); Thu, 23 Nov 2023 20:15:01 -0500 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2041.outbound.protection.outlook.com [40.107.94.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 793A4D56 for ; Thu, 23 Nov 2023 17:15:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Iw01N3zzszFXRD7bAESbKJKs4c9H2EtqxOeFj7poHlsJMuqXsDc6T2inoEcReSlt8G60IjAC2/t85EnbhDBa2HsZNHKef+niKtsSq918USAoBsgQebyyOtlrAYsl4VNvVqtuLvAFEjilOB3pE7qNvGlpl38Z7yIBA64fMUYOCysf3K5I8x6oNOmDXw9rk6TPzEhkWQsMrjiBpucYlPlYw8/55V1Z43wIOxdb4iOGx5lRHrCv83lSKbzxu1Jw5qhEbhUkzEDZdDOg5GW9I8D/3GYd2E4k3DCA67d5cJOxj41zIodO9QGR5Qmkk3E9zqytEVw1HUInCYYuyFqqtCOjtA== 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=ywbDS5mUEMlExfMKe8IaLTShh9Gz2liVAy0qQ1Jhz8M=; b=cyAlrlJxUzUNLdmnyksLowIQRdAykaDqM/1tVRQeyVk+wHc8sTzbUb9hCkRgk0/73JfcnL0ON0Qv4pr9fJJyW9mr3qyOLQsfC0Luaphrn9xMRRupR9+24Dm7ooBBTIoshArdd8D9F45AsHjqM2vCqt2QxFZ9qFWh5qGh0EqzfOwU94nWt3vg/GmFcvm+WudwpsmKCygvZUFlMwrMpfdWoGmjlqO5eiRwC14FcO8+XAXPumqS1+VJFDGB1aHbJMCOSpoqsEBC2OTrbzJ2F7j3XV6AHzzkbhS9cmrCBIkRmGI/VV/V5U9CV3XocLMAIw7TZfAXWWUxMIahZRH6eF6svA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none 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=ywbDS5mUEMlExfMKe8IaLTShh9Gz2liVAy0qQ1Jhz8M=; b=Q3R5LC7xNUCkpCiCVMsRC2y4YRu3JM00zfRzNuJF6C/Vszxwk0cTclbKZwpfJHBEY2z3GihmbtP3ZIuLO2txkD/DpIpKhVmQRWZuAzRaD/wjfUAlAgYtS6hqG/Eu9n9pLGAI5rq3q0t0dY4J9UQnhAEt0m5vKKUE5LFxpu2JFjyA6kSDBpFTilEYkci4nN6Hr/3MW/aHuAxjm2YFXoUSDWWgoPOsjx6W62tiZxQmETffNFnntmP4ZzMBVnEzr70U0qx4ImddMg6PlPgFGah7GOw1F495/O7QU+v4qaCEmmL3LMtMssaTAuaQsJR1uRsljjjGn1L1pmozqAy0LU7BgQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) by BL1PR12MB5352.namprd12.prod.outlook.com (2603:10b6:208:314::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.21; Fri, 24 Nov 2023 01:15:01 +0000 Received: from BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::6b9f:df87:1ee2:88ca]) by BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::6b9f:df87:1ee2:88ca%6]) with mapi id 15.20.7025.019; Fri, 24 Nov 2023 01:15:00 +0000 Message-ID: Date: Thu, 23 Nov 2023 17:14:39 -0800 User-Agent: Mozilla Thunderbird Subject: Re: [RESEND PATCH v7 00/10] Small-sized THP for anonymous memory Content-Language: en-US To: David Hildenbrand , Matthew Wilcox Cc: Ryan Roberts , 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 , linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20231122162950.3854897-1-ryan.roberts@arm.com> <7f76ee6c-f0e6-443b-bcff-3637895dec66@redhat.com> <7d4efbe8-5690-4db0-be06-399353679982@redhat.com> From: John Hubbard In-Reply-To: <7d4efbe8-5690-4db0-be06-399353679982@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SJ0PR13CA0203.namprd13.prod.outlook.com (2603:10b6:a03:2c3::28) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR12MB4130:EE_|BL1PR12MB5352:EE_ X-MS-Office365-Filtering-Correlation-Id: db174ce7-9e79-4ae6-1110-08dbec8ac77d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6IcGNABYEWFjNLSqCBRykOslf9eyGvJxXVknvK4KHW+DWifiG1Srgl3Pj+xdyG7EmkH2w/UVdR1qVemBDocjJDli5Aidb5APeot0EeIx4SLUlK58/tM6lzgzh8WY7EkvPYRLzuUCIY/TXfpbYVoztCh/+yVk1/MqT95ZWw9MH6TVmRBJ4VCZTFuprq7STO+L2sy2tiUVenpJAKzAmhq9krsnKfmyD2La8OfZjDDltXYPGyJFtJQzMhlfd0cHI4Y0QsEcdDKGRpEcJqmlKRQmDh/nxg6J9FV31pc6+AvdZjhlM+iDQM2g2fXL8bN6FtM354iw+2dB6fNSysLYDBWPPGLeMVluL/nfNObTk6ySXMUbEHU2zwF8VK5w3Vy1xdi7pJV6/LlXOpWhfbyTe6ibjAH9HrP1IZROC9ARyzrO0SxQb7avd8Qnzn8t4m2ouXjY/6nMFTW8TCXcPZ7bD9ieVdYf67kwhmu0kNawiakB/0I46NROU5wSrdqS9pZeLLs2NMHJyi+QFk2vsbkAsP6HJCw6oJgEsacHH0AoHOorJqIEV4XvYjEak1k7NRQAkt2kxG/7E+Hvd1CSWj+EXvMPbhb1xyVhG3EPRNNBUHo9CbA899x4nZf/9/jIDP30bX1pLENHYZqyNa6Z96J9LnHa0teS857m9Ah8RVlYhI4W6fPTkUeBAdyK8tC4SgCFuSCZfAONatrmTl3OmuXUlj9vcK/RKuz4al2AqwKd8q5SH38= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR12MB4130.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(346002)(376002)(39860400002)(396003)(136003)(230922051799003)(1800799012)(64100799003)(186009)(451199024)(83380400001)(31686004)(2616005)(31696002)(86362001)(41300700001)(7416002)(5660300002)(2906002)(4326008)(8676002)(8936002)(316002)(66946007)(66556008)(66476007)(54906003)(110136005)(38100700002)(6512007)(36756003)(53546011)(6506007)(6666004)(66899024)(6486002)(966005)(478600001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData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JxOUtOUkV4R3F2WERRdGttdUN5aldvTm0x?= =?utf-8?B?eFdtSnNtWnl3K09Yb0hoMUFqek8rRjF4MzBNU1RoNUQxY25Mc1F3TXdjNW9j?= =?utf-8?B?THhpOWZKWllOTUZ2c3UzUmdRVjdkTll3K0x6akozZEZaLzhDWk5sdmJUUkNz?= =?utf-8?B?YUxyTmVNSXYvb1RPRHN4ZjJRUWlFQ1JjQ0N3N3NSZEZ1dlQ0Q2lRU2ZsbXF2?= =?utf-8?B?Um0zT2sxaWlHZVFpaERFMEJJTE9KbTZjTUw0ZGtuQWU5d2JIemtDYTl1anJE?= =?utf-8?B?Lzk1MW1QaloxbmhjOTBLUDVDeWVLRGZNbG5oa3ZvKzF5aE5hT2Jtc1NuOFVL?= =?utf-8?B?ZzZmVDNMeElPMktXa1JpUzl1UFFCRmF6RVhSZFUzWWJJb3M3U2pSSzFNSUJZ?= =?utf-8?B?UGc9PQ==?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: db174ce7-9e79-4ae6-1110-08dbec8ac77d X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Nov 2023 01:15:00.0781 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MaxHkKLbW8IdHOTXMuc+9XYsxvxD+Xp6dg7SD1CcqczlC58lOoRPTvQXKxVwIoMdv7FQtQNUZ3BRXFCXxgXOEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5352 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Thu, 23 Nov 2023 17:15:24 -0800 (PST) On 11/23/23 08:50, David Hildenbrand wrote: > On 23.11.23 17:18, Matthew Wilcox wrote: >> On Thu, Nov 23, 2023 at 05:05:37PM +0100, David Hildenbrand wrote: >>> On 23.11.23 16:59, Matthew Wilcox wrote: >>>> On Wed, Nov 22, 2023 at 04:29:40PM +0000, Ryan Roberts wrote: >>>>> Note: I'm resending this at Andrew's suggestion due to having >>>>> originally sent >>>>> it during LPC. I'm hoping its in a position where the feedback is >>>>> minor enough >>>>> that I can rework in time for v6.8, but so far haven't had any. >>>>> >>>>> Hi All, >>>>> >>>>> This is v7 of a series to implement small-sized THP for anonymous >>>>> memory >>>>> (previously called "large anonymous folios"). The objective of this >>>>> is to >>>> >>>> I'm still against small-sized THP.  We've now got people asking whether >>>> the THP counters should be updated when dealing with large folios that >>>> are smaller than PMD sized.  It's sowing confusion, and we should go >>>> back to large anon folios as a name. >>>> >>> >>> I disagree. >>> >>> https://lore.kernel.org/all/65dbdf2a-9281-a3c3-b7e3-a79c5b60b357@redhat.com/ >> >> And yet: >> https://lore.kernel.org/linux-mm/20231106193315.GB3661273@cmpxchg.org/ >> >> "This is a small THP so we don't account it as a THP, we only account >> normal THPs as THPs" is a bizarre position to take. >> >> Not to mention that saying a foo is a small huge baz is just bizarre. >> Am I a small giant?  Or just a large human? > > I like that analogy. Yet, "small giant" sounds "bigger" in some way IMHO ;) > > I'll note that "small-sized THP" is just a temporary feature name, it > won't be exposed as such to the user in sysfs etc. In a couple of years, > it will be forgotten. > > To me it makes sense: it's a hugepage (not a page) but smaller compared > to what we previously had. But again, there won't be a "small_thp" > toggle anywhere. > > Long-term it's simply going to be a THP. Quoting from my writeup: > > "Nowadays, when somebody says that they are using hugetlb huge pages, > the first question frequently is "which huge page size?". The same will > happen with transparent huge pages I believe.". > > > Regarding the accounting: as I said a couple of times, "AnonHugePages" > should have been called "AnonPmdMapped" or similar; that's what it > really is: as soon as a THP is PTE-mapped, it's not accounted there. But > we can't fix that I guess, unless we add some "world switch" for any > workloads that would care about a different accounting. > > So we're really only concerned about: > * AnonHugePages > * ShmemHugePages > * FileHugePages The v6 patchset had these counters: /proc/vmstat: nr_anon_thp_pte /proc/meminfo: AnonHugePteMap ...which leads to another naming possibility: pte-thp, or pte-mapped-thp, something along those lines. pte-thp avoids the "small huge" complaint, at least. thanks, -- John Hubbard NVIDIA