From patchwork Fri Jun 9 19:49:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sidhartha Kumar X-Patchwork-Id: 13274334 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B6D7C7EE2E for ; Fri, 9 Jun 2023 19:50:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B292D8E0003; Fri, 9 Jun 2023 15:50:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AD85C8E0002; Fri, 9 Jun 2023 15:50:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 979978E0003; Fri, 9 Jun 2023 15:50:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 877F08E0002 for ; Fri, 9 Jun 2023 15:50:26 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 4AEBFC02A3 for ; Fri, 9 Jun 2023 19:50:26 +0000 (UTC) X-FDA: 80884251252.05.7A32878 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf25.hostedemail.com (Postfix) with ESMTP id E357CA0002 for ; Fri, 9 Jun 2023 19:50:22 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=aBi1z62T; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="hhd/RrVi"; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf25.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1686340223; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=FkB+Ins4wpSolcjgK6Zg0fItOZcotwzlaN5ukWATyiE=; b=UJnHZkVBFKv+KWUHlW/uCZxT6q4yF4va3zlTZnMnenHXGrI1jgf/P9H3TN7+HPJAftZVcA TKiAn+XeZw46H4eoUM7hpEA8SaKRz1aL9DGVjiFEtCJJ9R4MYibJtfOCu/ICn8nj6Dc3qn D+XuXm29KNrDZlkIt9+snoVM8CvKy8c= ARC-Authentication-Results: i=2; imf25.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=aBi1z62T; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="hhd/RrVi"; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf25.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1686340223; a=rsa-sha256; cv=pass; b=Mt5H74XWQ9z0ceWktPKTJmvsEsEmeefAwDPCWTFtowOcL9DC7h18rmzVttq3Kp3qcUk7vY Jz94BWGCouqMhat0eAhQGltljvsOXdm70fTJ8kFqNx5mUVjPUkcLEan5uZg28BqABfSmwJ ChXBo0NKwQfuPEEO+l6mhkLhzdd6ZC4= Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 359HcaOb019793; Fri, 9 Jun 2023 19:49:56 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=FkB+Ins4wpSolcjgK6Zg0fItOZcotwzlaN5ukWATyiE=; b=aBi1z62TXrbIKPfKSq9KQkKDYYH7c/qUGP3PitHIbje1ggvYFQ/4Z0SaX4JarvDoG7wB 2cBgKWpnz4LdYCKcMx4J4KbrIwGxncuAqW2IRt3KZpjr46qsWr/sXLAm4ySnuoFhALYe 3MdQGI0mIpOnEzhredr5bVTSoYp5TK/hERBJXC0koOoDCH9qWZFYAYs25rNCY913V7Ih YafEWDlOp8n74m8XdsGa493uxzSl4VKdnXc7lkLRKin1blfATIO0YYZyZVMfyUs0NXL/ WmiqelqucBNVhuBVzm0tsQL+V/80dXpHVnCtp8Pnnoj9DbEa4lWaz4g9iZJ9HMsk21Cc Ew== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r2a6sqm77-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 09 Jun 2023 19:49:56 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 359JjkT5036811; Fri, 9 Jun 2023 19:49:55 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2168.outbound.protection.outlook.com [104.47.58.168]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3r2a6ntkm5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 09 Jun 2023 19:49:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CFToqcxooM8IPgtfy97j9KMOpb5BjgGDDtupbJ34xHF43oDVGfV/5tjcjyFlwusyaXek+ku9EOYgtesy5cVbzMkRwDwMgNyencdzhqIduU3KbneMHUxo8cTdvHW+wlBV7OhgPDrU/W5kn8weMHDfNsoy4HUpYA/BST2P4MIMdLO10KOasLhamC+L7MXwmaBkOrVQokyaE19AnaJaCVpKLUXqibilKNi7cB1kEL9fNe75gXGGnGIP2Bld3fz1KzlWQsYRiO6T2AWpDphEOnsR00HCjLV8PrWdZLmUHy8czTYtIM2xODjSpAvsd49kr4ot4HwBznZAa34ptU7I19MQCQ== 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=FkB+Ins4wpSolcjgK6Zg0fItOZcotwzlaN5ukWATyiE=; b=Ypy2nO7TnXenyxqfcjdp7Xi/JjMmuXbDq5CPq0+Si7T4E7PRVhx3SWzdOjHppGIStdru0dH5SaaXjn6EsnhgQp4VmCJqpHn7HsuuhKzk+VnonPcFZi2y4cf978v6DhHlRzJbMAZe/8HKEkL3pieYcCUY66D+pN66Bhp463+Fbi4JxHZbCQgbr2N7zBe7EOVW202V4GpxNEnp/bD3NxwrGhc9LcFg0RQU/xx4YUHrPMfoPM8eUrhk+k4C9+ActHDrRnm/bIDCMuq81LkCD8B5TIUVjaGgbuyg1Oo68ezvDtBFSTUTh3OWBNhaSFcFOln8M2LiIcCjn0w+Jz4+H0xE6Q== 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=FkB+Ins4wpSolcjgK6Zg0fItOZcotwzlaN5ukWATyiE=; b=hhd/RrVixVD4pPKlu2aywZGbnVTj6/mm2JOR8qpV7esJZBlfwUnQzROA41FEnk0cntfdBLDKjeYnOhtMUYmppJ9WzMY6rcPwFCiZ3oYWDzr13m0JFqWGBwULkZBu6J1e4aXV9Mqg3334GZelK+oFtZuCx96kqpjg0Irh+Y6vkS0= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by CYYPR10MB7651.namprd10.prod.outlook.com (2603:10b6:930:bc::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Fri, 9 Jun 2023 19:49:53 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::d9c0:689a:147b:ced5]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::d9c0:689a:147b:ced5%4]) with mapi id 15.20.6455.030; Fri, 9 Jun 2023 19:49:52 +0000 From: Sidhartha Kumar To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: akpm@linux-foundation.org, songmuchun@bytedance.com, mike.kravetz@oracle.com, willy@infradead.org, david@redhat.com, nphamcs@gmail.com, jthoughton@google.com, Sidhartha Kumar Subject: [PATCH 0/2] change ->index to PAGE_SIZE for hugetlb pages Date: Fri, 9 Jun 2023 12:49:45 -0700 Message-Id: <20230609194947.37196-1-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.40.1 X-ClientProxiedBy: SJ0P220CA0011.NAMP220.PROD.OUTLOOK.COM (2603:10b6:a03:41b::31) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|CYYPR10MB7651:EE_ X-MS-Office365-Filtering-Correlation-Id: 1f732c52-34cb-4c96-64cd-08db6922b12d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cWVIGXDqSjTVgw9zJSEIY7A0JO7FICwlT3TLFrm3o/T9ovaegERsm14OWQflKW08i9NY7vsCFzxraYcQ+czJ/V1GuLLdoed2H6fKQzLWfPN7+aMGJDTllSC5xnBtDF3O2VsE1poexMfcNop7EPjdPYCRvXy13QOXJ0ewbCzy3gJT2dZ+7DTpFva7+9I54mzr76douiYDt73e9Zxadh5IJ9W1UHhWL5vQnwNVh7EEVPmUUN9G+1ox4OM0gAAnGTy//AkxS8QxNn6QECpEPkrik2R2LBItQpmcRK24WI4a6oYSjzvkTj+MWUOim+KvK5ibRcQF9ueC55vQh+MVpDnO91g1CXuyLVL+MRwmwyFMwBcFU5wF9UTUHhE5xHjJ3kAQQm1Ryc5hCwnrhbhFchIcXpGnIXw75Rei3IUcW+0WadE/CPyNn005VK6TzaYIkeiBzeWhhzzNfo17GVLigwJt1nv5MS5d2V/0w48STRzlksJ6Swcbj3bxfCAf78JReOSrAuB+y2Mh6rSTrCl9juE/J48XZTPqXjM6PmL0+UYoaU0LdU8jORzWHvuqqJpb7E8dyN8ESCdcJVD2PpqF/jhAng== 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)(396003)(136003)(39860400002)(366004)(376002)(346002)(451199021)(478600001)(66476007)(44832011)(8936002)(8676002)(66556008)(36756003)(5660300002)(2906002)(86362001)(4326008)(66946007)(316002)(1076003)(38100700002)(6506007)(41300700001)(2616005)(6512007)(107886003)(186003)(83380400001)(6486002)(6666004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-M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jogWGkqKVQeqMxXt6GkNLhB3+e+t1p8pUiSrLLiiVnHxru6uvwprYKzfz4Kxd8NkSz4xkotQQrnoY3NSL/ktdE7zQFp8EqRvnBheaqsvx9PEsUUcgtIoknPJYZwU/lCS3ZEpAaE9itk79wqMHJesWrLy/uG8JZbm+8HsMR7AOgTUVq4BWXSw6dJ1172HTiQV3kt50ntbi0RL2djnLPqUo+J1SjeADoE1YOuMcLgvEBSU8bkcN/V8hzihTy234kqX8mIQYjdniN8BvcAzBC3vHHwHh9w2dfOJN+X6fbv4YfKDzMNvHO7xPaWg7NOoLs0rfx+0QFATcwdpid+ngq6BLHFSzkNd0eC6evUvxhMCFI962OTP1fMZZPPmgnHTZLzQMeaEczltfPfh2Wkkk/7GhKwMCvDGvqBxpGRIz1ZzKxDkOQjgjbb5amenZUJ5nkaS2Fx21VPwSCT7WNQAt0OMfzZq1fhHbva2zH0Y/XbV6izgoyI16jxXL6noq/8p0kH/oMSqgCLegTN6FXO3QAM5KoEqVnnrg/SmZ6LpeBmllgSAFyjGaR4lJri+RxLBPVH0dv X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1f732c52-34cb-4c96-64cd-08db6922b12d X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2023 19:49:52.8150 (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: GT875Q4dUfb/svgnpn/Zm9Rt4/5smgWT2rrklZ3XbW2/6/mJw8roo6YkbqoMCch5vmv1u0MtZCWOSWlTAiWv/8AvXiGUwEA9U29pi4rRMtA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR10MB7651 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-09_14,2023-06-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 spamscore=0 suspectscore=0 mlxscore=0 adultscore=0 mlxlogscore=999 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306090166 X-Proofpoint-GUID: ZVlOzIbMZ1xnYs35PbKzCb5rMgktPwQj X-Proofpoint-ORIG-GUID: ZVlOzIbMZ1xnYs35PbKzCb5rMgktPwQj X-Rspamd-Queue-Id: E357CA0002 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: ehit3gq8y6ifoyraexe3igutw6wwacwu X-HE-Tag: 1686340222-290397 X-HE-Meta: U2FsdGVkX1/3CxmO10JTVN7s+yz9FLyalAwN9bevTuypOTJH7+4kV0WuUV7KN+Er0yB1wbrJ+chjrOQhJs96QLy+btt1Q3bGIBMak3LnZcfuNY0YnMzm9Iii3rgzxsTPpcfCfqT3RjDJFk0Rhzi46jJBi5OL9pw8M2V6DdI3pJu+B2lh2LSVs4TDv4FybXOH+o55UPcICLF0TeEAx5Y9lWY31mDPm+Jw/ReYyBMmri/4ktHXdqyOhNycEDBLEKSlkcLR/0LRE8ObycTJm7VeS24OXJ6oWWLWFDxpZg1PmU8k4ck5UJmF5X4SX9yv7xlCgvTP2pFyH1QmNe/7TgAndgPMxHTvbk6l5Ou69HqdDtMRKxxWlTlYsxsNb6LxzQPRc26AJCteox8PDDde7UuGeCX83gSwR7nZW0jcxWQRQiutpmqCJ6HWXO067WbWV5OMfCK8S/64btpzLO3tzsugTeNnPOsBZmfzHgLD9UtdzvPeuaOd3Zfwz/OIDzTgZCRNsTC9iFVblJ4C186SOHTPgzpLfiOWlkZtp9q3FNWQfg2yreXe23QIV6qhb1Nte7l0FHh8aBmGDdKLpR56edHzZ3NLIEvQwWrfPB6AE4MeD/2Acrw+db13Tyz/QT+p0b8ViEsNPrqT8c1hz3PV24BvD1Ld+9gydgP95voq9jO9utqApo9vE7lZ6NXdHiMHYgvrkNWlMGJsPE92CkTX4OnRbc6bl0BGF3VQD9VtnLnrL0fRWS9lc3AVayKS4c8QB1cjFK2emzEVKkUqUIY9/uvOT84bmeRdaExjwmn3s5ldp7Fw9yk78ankugNGWGXg8CEelKRkG6kJnFSxaIqnmj/XxzxYebibZsF0FCcQln0Lc2yTZf0M9TDFQraSSO3bqnuoOPFL57X3/PVzqMwE3rURoRPKLdz9zYVWOWUdh78f8okEhHhR6agsxYwjiwi2TB+CQIdHAysqj57KgzP9eZz 9iwlmHz0 QxsharGxZP1DW48GsOFWjZ06uYe0nvw7HXtNfJppAdIyXpTCIjipMapG8QDLZE3GnGHB1cJcYqTMxjgTSmAkOpltWKoJ5mv+Kr2eMbu3J5I7/87rxvey/aX2h9VWPoRZpLqA/pPm2ua2XTlE0mdTHCo6j6fq4Di8RDKRmR5dmWZr7+P8sCnFsvbiunnid9MvCdh0S9yD9NZlDgCXpB2VCD1+6VTNsLf7bgNU2HLEv1Q4DcSxPcgA6DhruCq4bQ6Vlg3UsJCl0q10HITT/b9eiBBHeOyXGmas8NDVZYz08SJFY4mHpkpNn/YqvCemJvISJBqEcHVROS9E6HOUXJm0GNBSzv7ugXjNDtRst36Nj1tPHk7rh+xzgELQdKpIrIfutIi3FkHXSGvrwHIAgFpUQQOm3z/SJihqdlsvbT9X71EVuzEvHKINTnAFIdMwMv1VZ0EQgRoyZkkvujLAKTNwzzb+r3wMsAY5uLoe9o56gdBITzxWmeGqHS8GUuKdjBdfNIQ7W 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: ========================== 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 ===================================== The time spent in hugetlb_add_to_page_cache() and __filemap_get_folio() was tracked while running the LTP hugetlb testcases. The units are in nanoseconds. 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.4.0-rc5 + this patch series @hugetlb_add_to_page_cache: [512, 1K) 6400 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@| [1K, 2K) 1230 |@@@@@@@@@ | [2K, 4K) 55 | | [4K, 8K) 16 | | [8K, 16K) 19 | | [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.4.0-rc5 + this patch series @__filemap_get_folio: [128, 256) 4 | | [256, 512) 11068 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@| [512, 1K) 3334 |@@@@@@@@@@@@@@@ | [1K, 2K) 559 |@@ | [2K, 4K) 112 | | [4K, 8K) 42 | | [8K, 16K) 7 | | [16K, 32K) 2 | | [2G, 4G) 3 | | This performance characteristics are similar after the patch with slightly more latency in hugetlb_add_to_page_cache() seen by the increase of events within the [1K, 2K) bucket. Please let me know if I should test more functions for performance impact. =========================== TESTING ========================================== This series passes the LTP hugetlb test cases. 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. rebased on 06/09/2023 mm-unstable [1]:https://lore.kernel.org/lkml/20230425012721.GA6696@monkey/T/ [2]:https://lore.kernel.org/linux-mm/20230519220142.212051-1-sidhartha.kumar@oracle.com/T/ [3]:https://lore.kernel.org/linux-mm/a49e7ec8-735d-5a81-1744-cb887389a559@google.com/T/#r78a847a834671a9a7095c9458d9a1737015e7d0b Sidhartha Kumar (2): mm/filemap: remove hugetlb special casing in filemap.c mm/hugetlb: add wrapper functions for interactions with page cache fs/hugetlbfs/inode.c | 14 +++++++------- include/linux/hugetlb.h | 21 +++++++++++++++++++-- include/linux/pagemap.h | 8 -------- mm/filemap.c | 36 +++++++++++------------------------- mm/hugetlb.c | 22 +++++++++++++--------- 5 files changed, 50 insertions(+), 51 deletions(-)