From patchwork Thu Apr 13 23:14:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sidhartha Kumar X-Patchwork-Id: 13210730 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 5F7BCC77B61 for ; Thu, 13 Apr 2023 23:15:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EAAC66B007B; Thu, 13 Apr 2023 19:15:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DE5266B0078; Thu, 13 Apr 2023 19:15:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BE922900003; Thu, 13 Apr 2023 19:15:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id AC1166B0078 for ; Thu, 13 Apr 2023 19:15:24 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 71E3F1604F0 for ; Thu, 13 Apr 2023 23:15:24 +0000 (UTC) X-FDA: 80677926168.08.3FE4999 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf06.hostedemail.com (Postfix) with ESMTP id 1475B180010 for ; Thu, 13 Apr 2023 23:15:20 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=aLwSS6dE; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=f3CObmAK; spf=pass (imf06.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1681427721; a=rsa-sha256; cv=pass; b=oVJqwTJLfySPIqp26FLPEMyMmI+faTuy0ppbY7bNkpmtAYg5Raso5UeRvfMAG/yB8y1Lsx InU/ZoxVYkwlchBUACJ8wKOVDVQk44WgmesyUA2rlMQL39qg5K+7tGCwmCcbNG8NQNwnPk DCu2PD2Wxony6bfsVqkr5eEYQncb67A= ARC-Authentication-Results: i=2; imf06.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=aLwSS6dE; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=f3CObmAK; spf=pass (imf06.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1681427721; 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=i6Rxw7iIk0J/BNeOkIYTtnUfRW44qfOmHGQyWjvMfk4=; b=gOaOPuBAa0YEIfNjneO7ZX/uq6HppxSNkrhlz+emQ4Pr564qy0ul0NmDPMx5+48Heir2l6 cQfQINezkNIrcWkzGhREl1tO7DKe3o/hK64HDslDY7OG/DlMxKtwLIu+ZZ3qE/53qS1Rv8 CnBL7AxtTt6+Pc0hZrchhGonA8KiQRQ= 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 33DLf2w6006517; Thu, 13 Apr 2023 23:15:00 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=i6Rxw7iIk0J/BNeOkIYTtnUfRW44qfOmHGQyWjvMfk4=; b=aLwSS6dEKw7VsVMpI1gDHveksUFC98FH27M2+BYm/eX/KtP+3uTUpsjoHNxbtPyKk1GR xtFHNnAZt2lHtisuV+txiRPMGu+XoIROUS9txCWx3YXrCm3wznF4CBQBpFs0y9eqG0f3 aLSaCItlXWbhYqSADLrPZf4VT9IPePLGv9daBMCrWooZhMZ0pQg58XisfZYkwTLu6u3W BuxPJGxZ4PlEadoLP91wzyAz5a0c+PIryiY+OWIkCSxEQCNw/wt+DbMYFbC9J0yv8Ng/ 5d3WWTuPCNFgaPVkCHZD8GasbCFd4xMJsBzseHnMZCnwuHSL6CrE3mXrB9AnEgyynOEp eg== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3pu0hcct74-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 13 Apr 2023 23:14:59 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 33DL4bgN013123; Thu, 13 Apr 2023 23:14:59 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2042.outbound.protection.outlook.com [104.47.66.42]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3puw95ffh2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 13 Apr 2023 23:14:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hbv51cRzgxmRktH2vz9Bo9fJy8kGWycJBBCs9SEoTa4Mst6okMB4lFzQuVIaIVq6T2UpMjlGZWG57a/KzoX3mSZQcCHlQ3y+ZJOIFkmI8/pLiwIRq4Lnz3mVbGWbqU7RMGDV34vxV4y2b2WAPcpzKLy0M+6chpvQ1UyQO0k1OeUZmpjTvXeGNfompCLnkVl5Gb0dsb5SXi6V0akzCEnJnCUQ+ZwHa1+G0g39bzamu/XjzU3pRFQLDt/cGEx68UVttWJQ98c6QUc9bpOcridZVQ4W+fJ9EvSbiEyFudLTWF1WHwIzgawE89rKa4Sa6fv29gwBJPnMw8Wzng+mF/Da2Q== 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=i6Rxw7iIk0J/BNeOkIYTtnUfRW44qfOmHGQyWjvMfk4=; b=kE+mggcVrjv31D4XphigbTTb0PNJlSEyf7tFvCC0zxv652QfjAY8S+hcAkUhzjPVUgGE0uDSlyXvMdrhzsry24zo133wAjJ9BtFWJF2Avqq9HfScpDvkR99gjQGyrOsLowy4tVSP/dtjAABQ04Oy3urhyDa2J0d/oRvHVZhcxoJpnodszKQG2pldvYL/Ts9qn/MBhhzTs2mKvLgyXsryIF18HeuQN34jwYit8m8TBSa8ABxUG5qVzkN9T12XCp1KGK+scglpHdmCRLYvE54JhB4jcx+C70Dn9s5TwgRwWrHOHpKUuXShgWKSrubK6CBK4XjSSXvMZhp4WFIfiO6ywA== 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=i6Rxw7iIk0J/BNeOkIYTtnUfRW44qfOmHGQyWjvMfk4=; b=f3CObmAKqtx9D7pO/CvOJCpxwRj+uTrLbew2pa9vQxyWLwakLytJTXWsbL3nZzylcWSzzXUAW9PM7HT4JfMWcwMsothlGagUtzKEpu77fKVzXW9zFVvNNVUvPeG/z29Qj4Aq5ADC4i5mg4YdpqDdPGy70BNSqKVGshBTwAxyeVA= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by SJ2PR10MB7058.namprd10.prod.outlook.com (2603:10b6:a03:4c5::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.28; Thu, 13 Apr 2023 23:14:57 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::12d3:3f71:5b55:c342]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::12d3:3f71:5b55:c342%6]) with mapi id 15.20.6298.030; Thu, 13 Apr 2023 23:14:57 +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, Sidhartha Kumar Subject: [RFC PATCH 0/4] change ->index to PAGE_SIZE for hugetlb pages Date: Thu, 13 Apr 2023 16:14:48 -0700 Message-Id: <20230413231452.84529-1-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.39.2 X-ClientProxiedBy: SJ0PR03CA0387.namprd03.prod.outlook.com (2603:10b6:a03:3a1::32) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|SJ2PR10MB7058:EE_ X-MS-Office365-Filtering-Correlation-Id: 95fd6791-fa4b-4e99-2ca6-08db3c74e590 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ItVQXUua0hz3zeemh2vA6KmxvA7DIE1fQkjj1yphI1H7SwgZGSAl1gzpiUp/siCvEPbmn3HaG0Hl6s3wL+L1Q5rHDpGtwEPdhbgFeoXyd3BG2emsyPDdfN9iAqudidpND3rzV5ShpMRSI7R3CP1EBSf+64EB0yJFZMYHTh+ubTzW20ysM/Dk6moFVq8IaAyS+11/eN/x2AEl4VKDY3mH1n/7HI10mxvDRMpGFRhacgAvW82e6yZOYbb1hD3BKTQrWvCCtpjQ9qoBLBfWrFJ6drm4HyPkzRHb8xTBgerfQ06jI6HpiM1eYZ4qbiNxVPLcohfvWl6C61y5bqR1w2Qu1Ff1sqldP6maVGxC40lcVBqFkOqueDx0DudTsxKeZn7MiBsUCA65wcJeLD3CQ+Ej2UuH1hhTHZ/l3UlQOmeYp0A7mXXHoWn1lRKR2AUNbU6VqxKSYprANgreVx6MScxJqB5Hj6RAuRYAZNluzIM95wAxZeGze8BjozAYqeO+ZQPlIcmh7X1hbnnAV4Aki17zkoD70wDFKkA9xjj84c9XHzknc98EwNUoGe7ygrFyj+Dq 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)(396003)(376002)(136003)(366004)(346002)(451199021)(83380400001)(2616005)(6512007)(6666004)(1076003)(478600001)(6506007)(107886003)(6486002)(186003)(44832011)(36756003)(38100700002)(5660300002)(4326008)(66556008)(66946007)(66476007)(8676002)(316002)(86362001)(41300700001)(8936002)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TdgrKNTrpnVbKV4E6IASN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ylucoSGhXmJN1ExPkWo+/IrnXQUP5kswxil8N3Ii7akRRxINdd70kI8uiyBNsO1bn6nuqiirlS2Ly/BlknHu5UTQqgRetV5G+Wi/WSldgeN6ThpVdlY6ADt4nO0qgVZTl5SBtxlGWdJ1NEPlapeVc4zfZtc99cQhi5g3HWkx98bofjQd1eNHSTQYxsgvZfWMrZoGerrSmLEiRq5uiRgQevCMqjpyaBzkx7gihCIhWzK+y8wUFwb/l6pIS7pr1UufJF4rYCf816iXtdm3UJVgfjLPEN0ky0vR/rKDeAFk9S8tlXebr/cvX7J9uPjsWr5YuL0jp2JnI7+ICwoNaK7MWZTa8wv5r/hgfUG/ySCDwN8NZeWgtMoG52kY2zffGgYD9h3VvxUFL/OYWOJ5qY+pi6DpPAbOBYSqSeKxFQeDZAdwuxJs4FIn43F6o70NMT6MUEO5em7pYAisIDhpyEhL6NBYAzfTHmprddwYCw= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 95fd6791-fa4b-4e99-2ca6-08db3c74e590 X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2023 23:14:57.0740 (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: 1XLzHZVC0iEHweYE47XqljKqZqTqAEkaVOj4/QA/LcXrieTlmtgyA5sjqTkLzVDGgt/6TBSLNoAWHzMfkl7TxZUO+9LVkqB+6UI5MqZQpBI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR10MB7058 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-13_16,2023-04-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 adultscore=0 suspectscore=0 mlxscore=0 bulkscore=0 malwarescore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304130207 X-Proofpoint-GUID: oHCLgvQLJ1N5evcdA-f8YuZd_dBNqYni X-Proofpoint-ORIG-GUID: oHCLgvQLJ1N5evcdA-f8YuZd_dBNqYni X-Rspam-User: X-Rspamd-Queue-Id: 1475B180010 X-Rspamd-Server: rspam01 X-Stat-Signature: cgs6qq6ts75bo194gj8i5npwfszbccb4 X-HE-Tag: 1681427720-163572 X-HE-Meta: U2FsdGVkX1+hSBiKXVce/aHaWbizr25AfDn6lCqA1Z0vuptzipg5SQDxDb36F9mmCEfZmPPs4c7FR2EmmE+QZQaf9jf/5MqJET5Q4LLBq9AQrtv+M5aQhp5hyd9F4+Gu8as02ukrRKKAgWvrce+OyS9FEetXIILE7NAfP4Wcr/BCSYle/sCSusMg0ZESvdt4uioO/4BL1gRO2qRhoyF9ef0Bdkw7VM3yYDS1kjlUdbu2b1QCNVmfYceBPvCOD212Vd3UVZbj3m3ZvOxHBsfUWhXIAc5g6jPkq42pPhVQXIWfRti4h33zuuz38D/vZwvexQADMC7FDjtfVZ8g7AHz/GfgC2ES4gyEOgNv9uBky24Hl0PVw5PK5tkFfEoa+pwjKcg+Q7lrgyeArBE9BpVzjdFNoRAVRmZZVJBnSKPfDrKg8hYgbApH0F7vc6HMJxfHylqRASBQSNzJLxAEIm0qC5mgKLjhrI/QI7RDl4yXmAtrH0TJPtdsWU0oKCw1f9SfNgixHImvbd9WTGnFCmG6W2IQG35iD4d3lYay9WliB38kg57+0QX6uMTJc2948IdPRg8IacuBq4s88jETw7YE9BtVDjLtVaXpGqRupQRkAGrvpTyxWUkQzroBBvJ1WEFjwJ+DQLroaEQvWSx47XkN6oqaWmmaX2Ik3rHqxB3GMdrZfud/0heoJ86/YyH60tlX/BMWO2MJR61WlU6HYpEK2AHRJI6ghp2emvsSGwPc434HHIusBtWWYUfgNXE+uP6eSoZ++bUyDrog4J4wI+XvTC1YhsDQ9js9Vh6LN/kYbsBP7/IHYEvGORVXAqM8JosqNsnxCc0vgAx02/Sj4DpbLqnNkrd/OqVL7Lj3XAIzWDCWdxy/VxonsPrVsaS3c8BfzjmGgGKFQFaDtRUx+fp0ggl7SRbtu5bQz+FPRDw+BlugPDM8H4ESjrdKZmgv5L1Ugizam+ldmjxcRoGi2/R eb60fAiM /a6xT/RYdCMBYyY2C9jthS0n2KvbTF2+NrqO3lWlH6pnJ2w+kPRSqYEhF52I5xCVJ4j78XJNVde9IFwz+sVCI5vSX3QmoMEeizwDR0m7Bj7M3AJX0qnBhss8b+MGjs0JrOotMd8otoENdoEJr/amfp5HbzjCgXUKBu3Eho/8Q763M7P/MrjPIqwrrbWuVY8YmJEIdreLcoLCVc2N52zhwlXUN6Yl+dSjFC2DlqC30dSo3e4jl+iGa7Yc8aKIRh+DOj+Qkmnf2FWEvR2SoU7vaXau7df3r1rqk6M1MjVYZFD7ClysowmZ2b0JCJ0nGAGVeEU392bpGRtjKBXt4SkviQRon3UVA0CzlFP65F6aM3tZ4uINouc+IxjPQK6BTsdKBKZoqSOXb8mHN4BmvE1BbJtX61m4HYSOgHsHzkaP2K+Uxe9w= 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: This RFC patch series attempts to simplify the page cache code by removing special casing code for hugetlb pages. Normal pages in the page cache are indexed by PAGE_SIZE while hugetlb pages are indexed by their huge page size. This was previously tried but the xarray was not performant enough for the changes. This series fails many of the hugetlb LTP test cases due to bugs in accounting and I was hoping to get help/suggestions about why the page accounting breaks from my changes. The basic mmap tests pass but the advanced ones which involve overcommiting pages fail. rebased on mm-unstable 4/13/2023 Sidhartha Kumar (4): mm/filemap: remove hugetlb special casing in filemap.c mm/hugetlb: remove hugetlb_basepage_index() mm/hugetlbfs: remove huge_page_shift in hugetlbfs_file_mmap mm/hugetlb: add hpage_shift to alloc_hugetlb_folio fs/hugetlbfs/inode.c | 4 +-- include/linux/pagemap.h | 13 -------- mm/filemap.c | 36 +++++++--------------- mm/hugetlb.c | 68 ++++++++++++----------------------------- 4 files changed, 33 insertions(+), 88 deletions(-)