Message ID | 20230724183157.3939892-2-Liam.Howlett@oracle.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 8354EEB64DD for <linux-mm@archiver.kernel.org>; Mon, 24 Jul 2023 18:32:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9E081900002; Mon, 24 Jul 2023 14:32:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 98E896B0074; Mon, 24 Jul 2023 14:32:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7E1C2900002; Mon, 24 Jul 2023 14:32:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 7147F6B0071 for <linux-mm@kvack.org>; Mon, 24 Jul 2023 14:32:29 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 4A67A1209BB for <linux-mm@kvack.org>; Mon, 24 Jul 2023 18:32:29 +0000 (UTC) X-FDA: 81047350818.16.A8CAEB3 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf11.hostedemail.com (Postfix) with ESMTP id B8ACE40019 for <linux-mm@kvack.org>; Mon, 24 Jul 2023 18:32:25 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=M4POthLu; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=cao6Gg8m; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf11.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1690223545; 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:in-reply-to:references:references:dkim-signature; bh=8zb46HmNu+Kr156lOYkl9NY9ZHNJ1ATbVnkVV/ckLRo=; b=H7nNerbgUdo5CDonWBaewKyAVub30KDbP0E+rRqdOqPyJ6sVsvYdxqU1cWpRBerHyZ6Wts 8EuRzQa8KhmSN+Qib6uM6PRBCGq5rvz9ib/D6HEXTYQpQYQUheWYCDx5K2HLTcaFnAag7U 15E3jEqne0zRWG4ynou7mhGqTQgQ+Ts= ARC-Authentication-Results: i=2; imf11.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=M4POthLu; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=cao6Gg8m; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf11.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1690223545; a=rsa-sha256; cv=pass; b=or6xIQzyyGPDkwpujhfcYdK2PVmeeC55WERAjjt0Cg20Se5fagdwPJuTQfX3iGC7rej4Zc 3O7xU/v8RofJxqb6N/+hNcXIZnuyQJHrVAH/iVGQu3ZvGMGljhxZx20Gjx9PAFxSrlHcvX MN0lWKjdyN629+Jqa8Vwt87ZRKjNSMU= Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36OFOh1r022600; Mon, 24 Jul 2023 18:32:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=8zb46HmNu+Kr156lOYkl9NY9ZHNJ1ATbVnkVV/ckLRo=; b=M4POthLuPlvnqAqDliPkY13tme79K7noNJwYQX3E1tpWgmBZcTokXCu+0rUpZef/U07N 3zU7VieAlOFs01Il06bb7mHvW/2kXG/EhN4sayFp78fCMX4BnMYAJy3aSF1IPuSsaKg7 v1J3QEYGug7n/OGb7iPGF8ILXY18qB9juBgN/7UXxEP+9Gkhn4CxoqgUnhGwAQDIpt/5 2bCltKe8vijQOohGbkUJInmC61ZhwY2XM+5AWurBcgQ8oLqyFmA5/dasasHr5lEEDL3B pOB9OhNwo5BEQAIqx8Ffdf7JBox6SaH9YAmgseNb1OBIozIQ9Xe2eAA1mMBW64QTOnGr qg== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3s070audkg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Jul 2023 18:32:22 +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 36OGttYa035600; Mon, 24 Jul 2023 18:32:22 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2105.outbound.protection.outlook.com [104.47.58.105]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3s05j3t3ax-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Jul 2023 18:32:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SghLx5wlEfmV1bTLV1350BPy2QEe7ysk2iMYZbyRtjheoFQFH5xy6aJf1oC5c2vfqi+A3Po7bP05C4AtWmTdqKi5nxaykRsZXBFQu7Zf6bKsXZlSu1RLMRLmT0zI/0e4wI03Rw2QHHOmTWp/cgbKw41pSVCAFT5XFfrK0p/PlIxIrmYkU7T4IfKt5Y8p9X5TB3ugy0ENziTcpAKIJggD+HFmWQpdYa91l2MlpfG2GXLKUP/CFbkmPR3wW2KZNhrOXmAyD9D/fBObADQVJoWSZWTQ0rGnqwM7sVjzwHmzGBMeIoekDE46kW7KSZWz90Hb3S4x24WXeBmXW1O6ZNgMbQ== 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=8zb46HmNu+Kr156lOYkl9NY9ZHNJ1ATbVnkVV/ckLRo=; b=cGSTMFmW7N5pPJN10xbXRMLTQynR3NvTKofDUqmNueScyOb5L7PkaWc6te5COsgB+agip84ItibZcXFbg6j2ep/zB0jkMocn9B8giCC/HKcG1wIxNcRd6e+ewIUpBMK1QtXpOaa0QDmWTXP3qHkGSElckmGt7IBezbihxgSZJyXnIaX6N2W6OA2v5WszBGcJOUMkuRGa0GrE+/eMbV20jOPKSDrXsI8riE4HOwSqHXOzjzGTw9XC/WjvX1pE4/EfGw3Q8Z7nhoHJjYqK8CwTOMpwXKHiW2KLY2WdXjjSZYkIwTsklAR1yBS/o3s3FKL5khxyKuVAuVHn4Tcxng7FBw== 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=8zb46HmNu+Kr156lOYkl9NY9ZHNJ1ATbVnkVV/ckLRo=; b=cao6Gg8mwJEiErsw4RN8bmWLRLiZCLoAq39thpoSKdyt6P+5ayjha/uJS5PYpV0SbsCsxwri8bGxSpqKQTQlMo1n/DYtQAZ7SZsVgyRb9hZi0QxOs/DvLig0q/n/LfySetwZrcUNAY/ndtUHsHemdArF+U2TaIF3pr4FOPe8Zus= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by DS7PR10MB5376.namprd10.prod.outlook.com (2603:10b6:5:3a9::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.32; Mon, 24 Jul 2023 18:32:20 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::26d3:6f41:6415:8c35]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::26d3:6f41:6415:8c35%3]) with mapi id 15.20.6609.031; Mon, 24 Jul 2023 18:32:20 +0000 From: "Liam R. Howlett" <Liam.Howlett@oracle.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Suren Baghdasaryan <surenb@google.com>, "Liam R. Howlett" <Liam.Howlett@oracle.com> Subject: [PATCH v3 01/15] maple_tree: Add benchmarking for mas_for_each Date: Mon, 24 Jul 2023 14:31:43 -0400 Message-Id: <20230724183157.3939892-2-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230724183157.3939892-1-Liam.Howlett@oracle.com> References: <20230724183157.3939892-1-Liam.Howlett@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YT4PR01CA0002.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:d1::15) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|DS7PR10MB5376:EE_ X-MS-Office365-Filtering-Correlation-Id: 6132c62d-6b1e-49ed-3544-08db8c74509d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: L64tpCqgkoP2Jks6dVcgqRecoCMI1QovbuZk0Hjqf7Snu/02nOBa8mBWfxo995/5pQS6DU4ol/cJ7gMPolEDnG4WvUPkmH6Upb8pwY8hzu1DZDk+D0d83JTS0eOyGmsjd8uNyPica1JtP5P1V6hyyMTmii3DeEFA2nqvQ7qzR4UygvvMR8L9RaHkHExBU+JHnCN/Y9e1T+/EMazlH+egJYRCCQfsTdA5vZsymCF3cE155fKMUDofvGepMMcST6LbdUD8b64dVc40S3/224S5RGMyjUu8vOzX2UDsaLriIz+jCdeujE2p9yShWUiLH9TrCbJh9MCUPVH0oBAwYdOzcuI0vy04SkIg6JprKUX0NlfCStOUKYdvr6z3tr305nnjPX3fqSxRToIxOUq07qinUXO+tidztJv7V/lBw6qLTlZ76fPe3IHbGVSKxfRt4ooZ/TviCiETtM2U8UVF73ZTycfGOJ38MXDz8bSD00DWarImcTgr8mhVAZTXwYvPEHwK8HzpjGRAlVvN/CABCdcW1eub+ZduckP85qlGkx3fssBZo3XMUJ/icO4VsEIi24gL X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR10MB3022.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(346002)(39860400002)(136003)(376002)(366004)(396003)(451199021)(6506007)(26005)(1076003)(186003)(36756003)(5660300002)(8936002)(8676002)(2906002)(38100700002)(107886003)(86362001)(6666004)(6486002)(66476007)(66556008)(6512007)(66946007)(83380400001)(54906003)(478600001)(41300700001)(2616005)(4326008)(6916009)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AKvq2kHhNCOgBvbliJw0noYh1mEjao2stMXUeEVDSZ1ceAXbiUc5hNCIBM7DZr+mehVQukMlOuQaw6n+UeKmdgjg92i9WXBb9SwKSQunPnELS+29CrH+ff2Dn53T1j+a5bCnUweDLJ3U1agsAVFUsyS8mP5zfkBicokXtJyeuo56Pm+Uyi47srMAFHD0x9RsZOSUKeEorrar6f3Zu9NrZvBIxTMEW0VRjtEBrqny8KsZ0JR4yPqTgVu//C/aPkH5uWGLN31l7zchLCX87faHvH1FBy6nkC1dZIs2ziJq1xQGaiEbmFHs1Up9ANTbrk1jH53oss/h7du6cmIm6FujRpKlk9GHwlWKCTQM3onfujr3xDmonTqVSF3BS76+X5078/VSdPVofJeeJnZ16WhclaUK/MxBasQFkwvjt6e/EFDEElxxowz9KTp8soEd/NbKGznb9kZh2h9LhTjj/2h2ZbitwNHMhK/2xOsOFFgLrV9+6LuRRbf0ZE7K5UkxphPH4W8/oRPsv3ON29AeuxY8ymhhXTbRbLLIGnn2z667zzu65TSNX4ykhmXWuEpoi0RsLqDhXT5CD/XxwW782GzvO0z84E1OXF66MpD2PZKs1PButb7c9+e+G+f3SaKgFBGHdWcqn1L+gcXJccyACMfGpqxs8v3IqgKQWhUdxxtWnZHk5zQn6K08gSB34m6hMiXd2p/lcrETGtdV8gQquNUaVmPziTqzaSqSK4GlfF7AuX6/hhzkzttTQIbeOGY1rJHfbShLpZq5m+GCw6ogwdaOSIx2q8/ZK7eVFxCun9Qmupb8WLI0DFQCG2oaKfhi8FuTApGIjM/fVLyODs3Jn7jaGm9feVT2hJ1K12EJ0b4WhZOnw4m0orv2R5fZpec+bvTBuqxy615qTOQd5vnPHDPNjXqZnds8Azq4pDBI2eiBTkW5NjQuRmXWDPaZ7Kc1iNJ3LcRUGVq7a3CA8GVt4+Bv3+7cbNu7F14Blmuudu4SkjtFxWzhhf46f1ekt91YHpqBLNSMaMZv314dvVIiiINg4RoFkK6tKyTCG3nCCB1b45EzdDlH6/XQ6NzpL8auSRz+cUpXA41ql2XFvimKIV4woAtmTewtFQOZ2Y21QjevUyMFfKmQ76MIfBPzM3fR/Z2B5XSCLuFYd9YudHTsKigj23p78Oqky3NibNwtKi7JK8ddKDzUm6gARcYUSK7KJ7RuJJoKfHxwlE+J5eTmesGrBWQg02U+ZGhNBFq/00Ivp3X+hlYfrPinrlVh+JPLlcdoqUKJyPuPavqQXH/SI5lzzRIJAz3rnvMhqSj4PDJNGqxycSU1mVqLQ6vNbCaLBXA6diC/gijlMZNt5Pu2/SdqyuxEWNjyrLHSIIRt8sZF87pDs+RT/W+fECQQLrQz3e4CIg5D/O/fT/sDpb7HWfF61OJCbW4FPa58HpTHKx4RH8zHQVDMUas4fBstwp+fmjZ78mQcLsaRUoVf7fLD8bTgLhtcaY1LWQmY3DQQQF1dBDFfWV9rngFU1d3x5ipVicIydOWSNkYjBJArpsD8ltAGZclrswINmh2YfOkZ3pbZg+xdo1U/Mu4Hq9QUwFxQ9Ka/YlEtvIlwPRJ41eMmWM6M2Q== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: Ae+41SInphsyyXbUNy1Pi4KxnvZ75fL3BnKYpK6Y4wqDQMLNlvvIHy39U2IWZMmqiqOD6YCce3tKTgQeUBBVNjYmqLoT0hunSt9FvSnTCEAxLM+3mTVaDEhfKHnBXYg0OKkp2Psi2NXomMmfJjVwhtubFRhTOVuiRNhdlDSL4crhcaKWVluxIENuafOEmgpIllZ67nGUrtnHE9Vnt0UUiTxx8IfV5DvVpYnxZZSfIw8jJOYaiGOuEQ5UvpnN+e5lG/rlbFj4eSjOaMHUAgCZeRKPOzU4dSW/PlXFnHhmmC7ku1tQ24MYGY1RVv6ZLCILQpbdEBwVwCrzZPLnUBd6Q7Okx7teqIk1oai4fXYqpW2VcE2NQydtvKty97yc/mJDVCB8IQkvTgAmhPI+dHxRPUHbslhj3cAgCbx7Qoo5o7edsr8T8kiJiB9ElmQgWZ6kwtDHXx7INck3lWQDBVpyFowlqwGadxEUtvFbxdkxau+W+JXOhx7d/iCKpiVOI/dSkiHmoe11AH+Mc4Nm5G/YmpSLFPb3guDOucjORcpjiK9jnuzyVxPW7HxUn77pQ3rX8iyIVq+zWRW4rOENnn68qIm8oWOha9Iy447TLp4ltjp43Amlp+1uit3MmERVM/Bg0afEd/E7pj4obYaFzauo6CoyNBziv7qNIXnpvI+D9V+lTNFW5CB/h2e9ETaFppdTU5VTF/+Cg9yJGqBFH0b/9saa7We2nvMbzwkbDd3j8wAgol4CN1iMW6BVZpLtaTGGdcNTw0xHG1hsrrn0GAqs61Ac9QMxRuJGy8k2ERW5GqkEAPUdLxIYIoXoySKh7kN1UggCDf0q7oGW7lLB2VsxgTdDjKWjxJIiRp4J6v43H7/vPFm9TJ06shkTd516Brg55xez8Kc//XJWPG7eqOCsMnX2wlLIeW2lhUkrxfi5agE= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6132c62d-6b1e-49ed-3544-08db8c74509d X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2023 18:32:20.1005 (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: hhC8IByMKawYLfnnYVQLy6CUcWgAuqmUe1SFQ+rDkKcjL1PvVUZPBefJBqz81IPWtqkW0m48KnqZB2S2Sy7ZzQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB5376 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-24_14,2023-07-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 adultscore=0 phishscore=0 mlxlogscore=999 malwarescore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307240164 X-Proofpoint-GUID: kkMJntR40tT7YVovkE37iUu0Q4JvqGr6 X-Proofpoint-ORIG-GUID: kkMJntR40tT7YVovkE37iUu0Q4JvqGr6 X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: B8ACE40019 X-Stat-Signature: muxg8ztf9suj8qogwntrji7duexhdywy X-Rspam-User: X-HE-Tag: 1690223545-594749 X-HE-Meta: U2FsdGVkX19iSUUdKs8NkV9XY79XTwdFIlb5fwr28MVyOvulBd84OAdHzAcxSqLIY/H2tIkaaIQGflb6RbwbFFFcLsV2996qFCaRTXqP4phJ4LhHlRb9/qP5yCWYna+NeOGPtEYymTfHwmpH8L5AQxcxQBF8AzY/X3jVA5BVZOfg0RddbtpYmBaSwvf/+5kbi/LxYrEOrbhsfM6y1sayK+TRg8jMlQbAJPK96RNOGu2AGM/jRCxDAWz9iM2IWgYdumvBRr2QVhzq8SBVdeO5IN6vCvtlYQ1LbE3e/556SMegYezeXpiEhntuh3RjrQf/6TLBm01WwVSk7XDG37dynG5jNYOkBHK3PvutturWMLiyUox+36yGF0OlYCWhNUNPuagXmwNih9VYu2m65tU4MFenkAd6H4QbP6hgbID+1g9Rd1B94pYJKGF877N9DoBnmcwI1h4413G+Fql/0KKp7piUfxSurd7E8NUuzz62sljvk74cFaSr4kJAq8Al97NTtASTySqGhHzneUNROr1fUkWo8moBr9ZsHfaS8WWnVuTw+7VY7dpLvZj19PUFQvETt/lG+nZO/0U11lUAsIdMIUVukbhR8jByNMK0eoZg3dnZbyMVbf54aB9m5HSQVbaIFh+E/L2QNgDYCxTpCDc3J6vT4ZkfKMFZh9HWx60iGBCmGOK6zbrG0kQ4VOOiwKlmop3ZKY4KUHjdj2jrJGXcMW62cYe6xYCAbiCB3ZlhmTyFJQ7teujS06T/7TFt7m/o8usXiPtItt0i31Xajxk1OTaGHhCtcpIPjvGN1H35b7Tt8X3vCewi0yDyxDFwOESIHj0aRHpa6U2kH2KKFEkdce2Por4Sz+BKnq32ZBvrOwKaS1L0G6crMjlY++vAm/gG0Dns+3Bogz+3WLbu/WbH2KoUATf3Y3x7OfvKcru4/Rsf5vFvCIZ4J3iDjqNUSKp5l9KiHVGJSqfAa7hqGhT eR37nVeQ tF4Wp5pT/AEKH+ABke3PKCoH6ZfKdaR7qbyqLjOvI/vitNwJXpq4YhrzNiPsvWmosExjwPJPxO3Jz3SxryB9Y+buC4U5QL2PZncSiZ3VjcRFOPpNxsxEpNn/MQrXFceD2F+q0A/tfQwxc70FTZOW8rUIRSOmKf2lBkOPx+c8w03KGn49iAhqUJ1sOGkXavT7FYejqZAxurWMt30bvI3I/0RKhboeJji+TCvKpRPklfdkk5q1Z26wwr8iyHAF364gxdAnjH8mHu/Iu3PcTYIUQFcdn7KopjXQBHFSootnImuUn5yjKfGw3kaOpH8gUBlCsOAnYkFAMMZkW6hEqDf4rLrcixhMGhWtSNIvgiRBn2em14rvxmELZvhIMbnvvgOgzJoFvJE/d5BcogRagKPrFQ/dbDsBEt7VI63yJqxoAPK3SpQM= 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: <linux-mm.kvack.org> |
Series |
Reduce preallocations for maple tree
|
expand
|
diff --git a/lib/test_maple_tree.c b/lib/test_maple_tree.c index 3207c2107918..9c4cf5fb2b7f 100644 --- a/lib/test_maple_tree.c +++ b/lib/test_maple_tree.c @@ -44,6 +44,7 @@ atomic_t maple_tree_tests_passed; /* #define BENCH_WALK */ /* #define BENCH_MT_FOR_EACH */ /* #define BENCH_FORK */ +/* #define BENCH_MAS_FOR_EACH */ #ifdef __KERNEL__ #define mt_set_non_kernel(x) do {} while (0) @@ -1770,6 +1771,37 @@ static noinline void __init bench_mt_for_each(struct maple_tree *mt) } #endif +#if defined(BENCH_MAS_FOR_EACH) +static noinline void __init bench_mas_for_each(struct maple_tree *mt) +{ + int i, count = 1000000; + unsigned long max = 2500; + void *entry; + MA_STATE(mas, mt, 0, 0); + + for (i = 0; i < max; i += 5) { + int gap = 4; + + if (i % 30 == 0) + gap = 3; + mtree_store_range(mt, i, i + gap, xa_mk_value(i), GFP_KERNEL); + } + + rcu_read_lock(); + for (i = 0; i < count; i++) { + unsigned long j = 0; + + mas_for_each(&mas, entry, max) { + MT_BUG_ON(mt, entry != xa_mk_value(j)); + j += 5; + } + mas_set(&mas, 0); + } + rcu_read_unlock(); + +} +#endif + /* check_forking - simulate the kernel forking sequence with the tree. */ static noinline void __init check_forking(struct maple_tree *mt) { @@ -3498,6 +3530,13 @@ static int __init maple_tree_seed(void) mtree_destroy(&tree); goto skip; #endif +#if defined(BENCH_MAS_FOR_EACH) +#define BENCH + mt_init_flags(&tree, MT_FLAGS_ALLOC_RANGE); + bench_mas_for_each(&tree); + mtree_destroy(&tree); + goto skip; +#endif mt_init_flags(&tree, MT_FLAGS_ALLOC_RANGE); check_iteration(&tree);
Add a way to test the speed of mas_for_each() to the testing code. Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> --- lib/test_maple_tree.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+)