Message ID | 20230710230450.110064-1-sidhartha.kumar@oracle.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp154262vqm; Mon, 10 Jul 2023 17:18:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlERbuDLK/D8j4bcgVRWdRVracvG9DmsDbqWgS8RhyrsEK2Oe0vpyDZZ4hPzxgDnWldEF2As X-Received: by 2002:a17:906:cc57:b0:989:21e4:6c6e with SMTP id mm23-20020a170906cc5700b0098921e46c6emr12608063ejb.53.1689034703655; Mon, 10 Jul 2023 17:18:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689034703; cv=pass; d=google.com; s=arc-20160816; b=HWuEvzQqnexFo5lbiASafpepZiEWWFulo3VhxFhrmgmdnncKyIlBfbXLDitZos+vgm AmgJoMstpsXMCLWIp2yJX5EnlQSvigXl1NcjauJMLyz6w/yE2aIOxVjeXq08068pbNWu iRatCM8xe5drgqY3aWCrYzZi8zJDDFwbKQuoa5XmhgnLL1EJRR+eoSs2qfkFfZG5sMa7 kVkjOOszIPxt0BeytAC9unjQ84eTZxjNChMJ1dS94N4iuuhSzdSTnZb98E1SUQ1Y3K1i W7gKStW41PF2tziZSGQ/uRWTmnxH8gXdwEA1oADR1M6QFjBSGL/kKuMq4HfUEOspDBHW YJXQ== 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 :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=ddw8vvxnMaZ5QJEIQHQCGFP32Sl6kqvbyaVBZ71ZMQg=; fh=skLOHgbKF6DQzA8TIEF3XJvtaL9udBzSVWfhVYO+mvQ=; b=NO4vA/GZJKosVOJE0TSIddigdfHqHMjAQZrwzAfXq3NC6ipvCNU0YQJedVc1N4nxke QYXKzYBw1pHzc5dAOQUya4+wkQ3n6jWdtt3r7aC9HR5iJsIjz0T3Li4JERAngqTz+IXF jX7HhuBkl2rOI9pMA49132khauKAzX/Sa+/ukWuqBWuz/wxXC5FmOPxHdx8Lr4uPEUUO tTGqV9H+/yRy7js429gFCL2lhynLKdmxQpFFZkPDezbd2msmIJ9lOt1n8RbS16guyUq5 C9hAOBctTkKCLkmX8GwbYMpjN8OQqgs2MO4it1QG1gw58AytbYJpAGjOJST+LYYLT4tJ 2wlw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=3l4FU5hl; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=jEQQWXi4; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id by26-20020a170906a2da00b0099233cac125si837331ejb.915.2023.07.10.17.18.00; Mon, 10 Jul 2023 17:18:23 -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=@oracle.com header.s=corp-2023-03-30 header.b=3l4FU5hl; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=jEQQWXi4; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230237AbjGJXF7 (ORCPT <rfc822;gnulinuxfreebsd@gmail.com> + 99 others); Mon, 10 Jul 2023 19:05:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229641AbjGJXF6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 10 Jul 2023 19:05:58 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 446D310D for <linux-kernel@vger.kernel.org>; Mon, 10 Jul 2023 16:05:57 -0700 (PDT) Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36AHuVSQ027999; Mon, 10 Jul 2023 23:05:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=ddw8vvxnMaZ5QJEIQHQCGFP32Sl6kqvbyaVBZ71ZMQg=; b=3l4FU5hluSZeWlUc9Cku1UhqFe/gRVc05KBJ94Vw/4tNrrC/FSAt4EiOm8otmy5w7pmC +Oq2E62TLZwhhts6eCGWVoXLWizSV94Lago+fjStHQd9jPwQTac/V7qYbIp0Ce4XtvZn Ui9Mpjp8G//hx0NPCh9TlzNe36bAUch+Ast3RsN+Xu9YVxAtIB/JIorpkKpTweJNRc0q HvsvUB46p5jpMXwpQFDDWBZb/TfOkqdtsf+aDPg+dpcdJNgVBC4FWuyPAySizABJJYfJ /soopXAVh4Y/lFA8vpXZNw1J1sqaMMreRYi71TOKvlkhc6glBGxPmUPxzUYQI3fRCFT/ sQ== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3rrfj61k7b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Jul 2023 23:05:25 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 36ALFFqj030798; Mon, 10 Jul 2023 23:05:23 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3rqd28bmp7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Jul 2023 23:05:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HZJRY2fvZiffWhns7+uGupsSwueiAopa4wuI9XH2Q8wbWuiDgRLPQJ654ah6VqNA/ip7pMdGeNqa1M9TJO7qg/ORQ2RmUHp4r9k8rh6CgfjMzSAHghySHzGiizxZZL9bBNGdwmAweGEw4eWoKyih1sKiDY2jgafS7G8W7tVBDKqgvbftZtQKPn9X0cRFk19A0HIhshVan/T1/0NLqBBuSHA0CCyKMBMH0+sUKxQwCcigDeByJn4zWa+NqgxB/ad7IZLAkOGF2L5JKfmtXLLPT19caqBY1IF9cu/TLLfEqudVpFdEoKgbSu71ERJUVZoWSlq+ShY/IzINjHKq1fa+TA== 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=ddw8vvxnMaZ5QJEIQHQCGFP32Sl6kqvbyaVBZ71ZMQg=; b=jSbGMou3UgGHUUm+ro6yOI+gnLIx0ylEiaIKvgC6VfcqHEliCiWETz3esBl0xq9Iw3FGXQBEjwjzhjClB9IgR/zmNU2EMHbrp17OAceX8P4AFcvLfilelh2WANawWXemN4jLsrenVeXv37T7rX6b9UCUqBjKh6p5BgoZYXOX3j4KnVzMxo1XdjvWO3Z9TiDsqWZ5Eb+SdjsM3cY66DgLoBjTyGm8M0mlHwt7ONuMB1AS46Sk2yyScANomozpAqD37LLaIP7itllOwikFHVfM6Qt6eOnxKJZGGqxNjMeaGV17cqTj0AboUQ2xQVVflhe/vS2CokI9dSTrOx2s8rbV6w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ddw8vvxnMaZ5QJEIQHQCGFP32Sl6kqvbyaVBZ71ZMQg=; b=jEQQWXi4IipwWM/Kr2RTwN/505Z3FnrZaeTnX9GLvbLt+MWhfGGa/4LM2LIQDs+HOcdvDkCbKU0Wn8eWHR2RS9LAf+GAX6V3Jhq0vzsNPVLdOmoFdNChjsKTTvHSkwscLbOXm08TJSJqIpReoYgDrldTltCDkJs+NDg9H1hFNLU= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by PH7PR10MB5856.namprd10.prod.outlook.com (2603:10b6:510:131::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Mon, 10 Jul 2023 23:05:21 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::d9c0:689a:147b:ced5]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::d9c0:689a:147b:ced5%5]) with mapi id 15.20.6565.028; Mon, 10 Jul 2023 23:05:21 +0000 From: Sidhartha Kumar <sidhartha.kumar@oracle.com> To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: akpm@linux-foundation.org, willy@infradead.org, songmuchun@bytedance.com, mike.kravetz@oracle.com, david@redhat.com, Sidhartha Kumar <sidhartha.kumar@oracle.com> Subject: [PATCH v2 0/1] change ->index to PAGE_SIZE for hugetlb pages Date: Mon, 10 Jul 2023 16:04:49 -0700 Message-ID: <20230710230450.110064-1-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.41.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0048.namprd13.prod.outlook.com (2603:10b6:a03:2c2::23) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|PH7PR10MB5856:EE_ X-MS-Office365-Filtering-Correlation-Id: aa18c889-70b8-4809-46a5-08db819a22c7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Hl1J/PkyO3mFF3ww8XAicOIU7VYfTLtmgLxWejpwzOwE+TBclW2V8/QYi+C0F3PT4V04fwUjvtenXoPOXKC15biy2rUpEliQ+J6VOBwt+tawXX8+cY8GECIc0pTmNXsZ9ZkfQTPUevoSjz/VI4AlCGbuyQD0StYZaNVIeQjsi61FsIPvw9SDnOP0Snaig4nB9yfoawKJuqVPSmRiCuCaolOsBNoK9NY0oDnM0+NWplWGY7vcsWtIno6c9eQUe8JxdqAleQspW2rG1mfhejBqUMcIa9kLifrfJLJiWEXsiiuvzTYRdm2QEkPQorlMbAWnY0PGIaJmQqZr8oxv5gx7FwCOxmvTvt/0c4cm+b90eHdLUWAYsDNiG9IaEz9QYB2/KxEAKJOxxxm8ySAEWFEuM8gyVnWSkn3t1BwUSaHlA9rBBRa3VyqtlTeYeeeAcmkmKOCNwhMg9edq1xN889Zv3Amd07bp5fFWOMH3YNkBf8/W2IcDddH3vkkuYGz+Gj78fnwMG/9oLr97yqwKNLWNemws+sNN4GEkfEIyZigtlCFjWcH2Sl6WnjzXATlLMl/O X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH0PR10MB5113.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(39860400002)(346002)(366004)(396003)(376002)(136003)(451199021)(186003)(1076003)(2616005)(6512007)(6506007)(107886003)(478600001)(83380400001)(41300700001)(4326008)(66556008)(316002)(2906002)(5660300002)(66476007)(8676002)(66946007)(44832011)(8936002)(6486002)(6666004)(36756003)(38100700002)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0+nvvbWQ1t0dME5dHDGLZW61ovP2h5icbJqrOgFkzXFMXDDFXfol8TfwE5JMBezfvYkdNeV89a8X7FieGuZeKWq86cwp8yVX43nYPXMuQkbY7YhCX+jrvkixmHU27OIGnoI4dUznpSDf/4R38PnTxdteypN6ZQrQGx7MatJF6amSZkngjgZxGZjYb0YJzhgFzh4p0axyf06jX0tt3g8ZQE79E4esSxEqgzZZdJmK1kBNt5Qddd4B9mwvW68e1BOiyf6QksIuyhLYGIIH9yjxw1kJ715ca8wUlvRTWxEH7SfMWeoUHHgGPttgUgNZdO6PiAnYUSKHCdo4lFiWn3EIgufWQ3VfU2HqRkkiX21hxd7bhFUPhmDLw9xIOTZppqOQre8+bbVbPSUYrkihDhAydC7ElSJqkckX9lJKhm59OgKHteOIiyJnnFeJw7FLa1aLDDcyK4rD9b1EGSbH2Nav30PaO4pEp6kX3+cJwSg97kOpbHNq9ga0qxZxyq+1SyuoQLPgQPzshnwv5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hW1qiHNlW7J9EfQ X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: aa18c889-70b8-4809-46a5-08db819a22c7 X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2023 23:05:21.3624 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: w3oqtZf97H6qjiH27mQTv1pG0eb65tA+XQSLxt8un46sXuKeGATmbaewkzCodoBJ4p+fnlluHQHYU1u+7f9xKTyjQYtvQVbRp13j0jjGYDw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB5856 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-10_16,2023-07-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxlogscore=999 adultscore=0 mlxscore=0 suspectscore=0 phishscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307100209 X-Proofpoint-GUID: m0ytpZvstgMBRkoW-mfvYlV0bY-G9_RJ X-Proofpoint-ORIG-GUID: m0ytpZvstgMBRkoW-mfvYlV0bY-G9_RJ X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771081253646718003 X-GMAIL-MSGID: 1771081253646718003 |
Series |
change ->index to PAGE_SIZE for hugetlb pages
|
|
Message
Sidhartha Kumar
July 10, 2023, 11:04 p.m. UTC
========================== OVERVIEW ======================================== This patchset attempts to implement a listed filemap TODO which is changing hugetlb folios to have ->index in PAGE_SIZE. This simplifies many functions within filemap.c as they have to special case hugetlb pages. From the RFC v1[1], Mike pointed out that hugetlb will still have to maintain a huge page sized index as it is used for the reservation map and the hash function for the hugetlb mutex table. This patchset adds new wrappers for hugetlb code to to interact with the page cache. These wrappers calculate a linear page index as this is now what the page cache expects for hugetlb pages. From the discussion on HGM for hugetlb[3], there is a want to remove hugetlb special casing throughout the core mm code. This series accomplishes a part of this by shifting complexity from filemap.c to hugetlb.c. There are still checks for hugetlb within the filemap code as cgroup accounting and hugetlb accounting are special cased as well. =========================== PERFORMANCE ===================================== 6.4.0-rc5 @hugetlb_add_to_page_cache: [512, 1K) 7518 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@| [1K, 2K) 158 |@ | [2K, 4K) 30 | | [4K, 8K) 6 | | [8K, 16K) 9 | 6.5.0-rc1 + this patch series @hugetlb_add_to_page_cache: [512, 1K) 6345 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@| [1K, 2K) 1308 |@@@@@@@@@@ | [2K, 4K) 39 | | [4K, 8K) 20 | | [8K, 16K) 8 | | [16K, 32K) 1 | | 6.4.0-rc5 @__filemap_get_folio: [256, 512) 11292 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@| [512, 1K) 4615 |@@@@@@@@@@@@@@@@@@@@@ | [1K, 2K) 960 |@@@@ | [2K, 4K) 188 | | [4K, 8K) 68 | | [8K, 16K) 14 | | [16K, 32K) 4 | | [2G, 4G) 4 | | 6.5.0-rc1 + this patch series @__filemap_get_folio: @get_folio_ns: [128, 256) 13 | | [256, 512) 11131 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@| [512, 1K) 5544 |@@@@@@@@@@@@@@@@@@@@@@@@@ | [1K, 2K) 996 |@@@@ | [2K, 4K) 317 |@ | [4K, 8K) 76 | | [8K, 16K) 23 | | [16K, 32K) 6 | | [32K, 64K) 1 | | [64K, 128K) 0 | | [128K, 256K) 0 | | [256K, 512K) 0 | | [512K, 1M) 0 | | [1M, 2M) 0 | | [2M, 4M) 0 | | [4M, 8M) 0 | | [8M, 16M) 0 | | [16M, 32M) 0 | | [32M, 64M) 0 | | [64M, 128M) 0 | | [128M, 256M) 0 | | [256M, 512M) 0 | | [512M, 1G) 0 | | [1G, 2G) 0 | | [2G, 4G) 3 | =========================== TESTING ========================================== This series passes the LTP hugetlb test cases as well as the libhugetlbfs tests. ********** TEST SUMMARY * 2M * 32-bit 64-bit * Total testcases: 110 113 * Skipped: 0 0 * PASS: 107 113 * FAIL: 0 0 * Killed by signal: 3 0 * Bad configuration: 0 0 * Expected FAIL: 0 0 * Unexpected PASS: 0 0 * Test not present: 0 0 * Strange test result: 0 0 ********** RFC v2[2]-> v1: -cleanup code style RFC v1 -> v2 -change direction of series to maintain both huge and base page size index rather than try to get rid of all references to a huge page sized index. v1 -> v2 - squash seperate filemap and hugetlb patches into one to allow for bisection per Matthew - get rid of page_to_index() - fix errors in hugetlb_fallocate() and remove_inode_hugepages() rebased on 07/10/2023 mm-unstable Sidhartha Kumar (1): mm/filemap: remove hugetlb special casing in filemap.c fs/hugetlbfs/inode.c | 10 +++++----- include/linux/hugetlb.h | 12 ++++++++++++ include/linux/pagemap.h | 26 ++------------------------ mm/filemap.c | 36 +++++++++++------------------------- mm/hugetlb.c | 11 ++++++----- 5 files changed, 36 insertions(+), 59 deletions(-)
Comments
On 07/10/23 16:04, Sidhartha Kumar wrote: > ========================== OVERVIEW ======================================== > This patchset attempts to implement a listed filemap TODO which is > changing hugetlb folios to have ->index in PAGE_SIZE. This simplifies many > functions within filemap.c as they have to special case hugetlb pages. > From the RFC v1[1], Mike pointed out that hugetlb will still have to maintain > a huge page sized index as it is used for the reservation map and the hash > function for the hugetlb mutex table. > > This patchset adds new wrappers for hugetlb code to to interact with the > page cache. These wrappers calculate a linear page index as this is now > what the page cache expects for hugetlb pages. > > From the discussion on HGM for hugetlb[3], there is a want to remove hugetlb > special casing throughout the core mm code. This series accomplishes > a part of this by shifting complexity from filemap.c to hugetlb.c. There > are still checks for hugetlb within the filemap code as cgroup accounting > and hugetlb accounting are special cased as well. > > =========================== PERFORMANCE ===================================== Hi Sid, Sorry for being dense but can you tell me what the below performance information means. My concern with such a change would be any noticeable difference in populating a large (up to TB) hugetlb file. My guess is that it is going to take longer unless xarray is optimized for this. We do have users that create and pre-populate hugetlb files this big. Just want to make sure there are no surprises for them.
On Wed, Jul 19, 2023 at 05:00:11PM -0700, Mike Kravetz wrote: > On 07/10/23 16:04, Sidhartha Kumar wrote: > > ========================== OVERVIEW ======================================== > > This patchset attempts to implement a listed filemap TODO which is > > changing hugetlb folios to have ->index in PAGE_SIZE. This simplifies many > > functions within filemap.c as they have to special case hugetlb pages. > > From the RFC v1[1], Mike pointed out that hugetlb will still have to maintain > > a huge page sized index as it is used for the reservation map and the hash > > function for the hugetlb mutex table. > > > > This patchset adds new wrappers for hugetlb code to to interact with the > > page cache. These wrappers calculate a linear page index as this is now > > what the page cache expects for hugetlb pages. > > > > From the discussion on HGM for hugetlb[3], there is a want to remove hugetlb > > special casing throughout the core mm code. This series accomplishes > > a part of this by shifting complexity from filemap.c to hugetlb.c. There > > are still checks for hugetlb within the filemap code as cgroup accounting > > and hugetlb accounting are special cased as well. > > > > =========================== PERFORMANCE ===================================== > > Hi Sid, > > Sorry for being dense but can you tell me what the below performance > information means. My concern with such a change would be any noticeable > difference in populating a large (up to TB) hugetlb file. My guess is > that it is going to take longer unless xarray is optimized for this. > > We do have users that create and pre-populate hugetlb files this big. > Just want to make sure there are no surprises for them. It's Going To Depend. Annoyingly. Let's say you're using 1GB pages on a 4kB PAGE_SIZE machine. That's an order-18 folio, so we end up skipping three layers of the tree, and if you're going up to 1TB, it's structured: root -> node (shift 30) -> node (shift 24) -> entry -> entry (...) -> node (shift 24) -> entry (...) (...) This is essentially no different from before where each 1GB page would occupy a single entry. It's just that it now occupies 2^18 entries, and everything in the tree has a different label. Where you will (may?) see a difference is with the 2MB entries. An order-9 page doesn't quite fit with the order-6 nodes in the tree, so it looks like this: root -> node (s30) -> node (s24) -> node (s18) -> node (s12) -> entry 0 -> sibling -> sibling (...) -> entry 8 -> sibling -> sibling (...) so all of a sudden the tree is 8x as big as it used to be. The upside is that we lose all the calculations from filemap.c/pagemap.h. It's a lot better than it was perhaps five years ago when each 2MB page would occupy 512 entries, but 8 entries is still worse than 1. Could we do better? Undoubtedly. We could have variable shifts & node sizes in the tree so that we perhaps had an s18 node that was 8x as large (4160 bytes), and then each order-9 entry in the tree would occupy one entry in that special large node. I've been reluctant to introduce such a beast without strong evidence it would help. Or we could introduce a small s12 node which could only store 8 entries (again an order-9 entry would occupy one entry in such a special node). These are things which would only benefit hugetlbfs, so there's a bit of a chicken-and-egg problem; no demand for the feature until the work is done, and the work maybe performs badly until the feature exists. And then some architectures have other orders for their huge pages. Order 11 is probably the worst possibility to exist (or in general 6n - 1), but I haven't done a detailed survey to figure out if anyone supports such a thing.