Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp384759rdh; Thu, 23 Nov 2023 06:36:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbk2N0TWkFG5DjonDEKX0R3Xz8UDep9Xz8mpUtdEQg9nF3Z1kqJmomDVHyiVq89zf6aWQy X-Received: by 2002:a05:6a00:3a1d:b0:6c2:cf23:3e14 with SMTP id fj29-20020a056a003a1d00b006c2cf233e14mr5935282pfb.15.1700750207277; Thu, 23 Nov 2023 06:36:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700750207; cv=pass; d=google.com; s=arc-20160816; b=GT1OVmFxH2Bef8OhB7P4KdondAFi4dlYExygq38U7o1McRjXyipUMfBrUFPENd+pD+ DtY6hrcoH2mIWWh7ZsukU+HZxbyx63fjkIO39X8iryXTsFuiahtsEeH5rBvXettEKTfD 0DHyIHMezYIwz3JYKlvT63Hl3BzPCqywz54HAPZueNFN9RY0i8N2ImDhiUdKlPX48iPT 0QfKMLzq9T3t4IZeoZRU1eJhKjDglYdXCA4BptCw+U1kaowaJnAjnEdg8GkMVYgKhEyz s/7fRB9hxsbD0t+pTB35iNo7StAOHjqpy8n2zW2ctqwkrLdQWshlumHkmhwlKLl4aJdp zDhQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-transfer-encoding:content-disposition:references :mail-followup-to:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=oZ2uygHrksDe1kQMToNCY5gUd2ctynOrjhFP93kaPWA=; fh=74NKmWNTgKlyB+FbN9weEqyTMP/x8cWoscYfCAUIOT4=; b=OOHhZEEkzpl6vqjODzHyRvPkqSqhFEyCEpvoxBB+sggRJu+G5iOhGm7iUenfvBwNd5 vfVx/qUl1SHVgeKHYj05cLt3bNvfsQM0cvGHJFmGqIBXKGsIrWnOmOuiGxHDt1K/oYtG dQjrt28g7FpBJbmxSUiKDH2voBU8U2BAk1SCCf3SwSLIaNgNzca4DrDyipnJUxSoqcb2 2CkGTofbAJQXxXWiXNPwYEzgxK+EK05RPfaqrvgu/9iU3SbObK1jSjU+dKQxBFjAbGLg 2W7rzawZzQnTpS9Z/h63EtiEMFwM0fBwPyjrWtak4CQ7rhXscdTJkdv8ODdSDS9UDPyM HjsQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=hTvMimiY; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Sa5TJ6Cj; 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 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id ck21-20020a056a02091500b005bd03d2fda6si1438618pgb.350.2023.11.23.06.36.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 06:36:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=hTvMimiY; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Sa5TJ6Cj; 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 23.128.96.38 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id DD5C28094D4C; Thu, 23 Nov 2023 06:35:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345824AbjKWOf0 (ORCPT + 99 others); Thu, 23 Nov 2023 09:35:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345772AbjKWOfZ (ORCPT ); Thu, 23 Nov 2023 09:35:25 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B154DA4 for ; Thu, 23 Nov 2023 06:35:28 -0800 (PST) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3ANETH9a019451; Thu, 23 Nov 2023 14:34:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : content-transfer-encoding : in-reply-to : mime-version; s=corp-2023-11-20; bh=oZ2uygHrksDe1kQMToNCY5gUd2ctynOrjhFP93kaPWA=; b=hTvMimiY423JBn1DsekLLbb91pYQyhE9RI2ywW2wUfiJzDO9+vQdQfC63XBK51KcyQ4K hVKa4Ehf7oNIKMwkjGZQ/ZBh0Mj9aYehR+3XOiNfkX3JY+2mL8fFzCj2vxQpCl7iQ8i/ MiczPHaR4gKQlHnSvgOfihqv70ie/wq49x9RuBmqfn8pDjrWtOT9otJMXX6S+3LnzOMq aqDCJm4KFPK8wIYi3G2/I5buTtFyCSNm+N89Wy783lv9DWBRDDdY4km2eHrsE7fqcERm TJeQCHoXu6OJ2vFDEtegzGz3T82B8XESNK2nXvnN0MxjPV3rKfqlbNRnUKOdSLtDjwPu /w== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3uekpestps-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 Nov 2023 14:34:59 +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 3ANDvSrK025514; Thu, 23 Nov 2023 14:34:58 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2168.outbound.protection.outlook.com [104.47.57.168]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3uekqapatw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 Nov 2023 14:34:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A5nMaKXXh2sfMc9/DCCWLkQ6Zzs69qCcHnie2emYuUAYnnRorjBEq3dl24RAfrFfSq8ExqhpPZ+w/7wuroadbr7jNzlGuqENCOaWw8L9ZGl9NIujZ4Ld2BhxUis1Tu0npW+yYPV3u5p7w3tb6gASNP4EPa4Kv2vEwnlXb4LIcagHpfY9X5xahPz6tNl5qsQRA++I7vNc5HTzLORXNbtyBi5ln2dbHp7pZ13Jl6H7+5HG8sYLJsnV4ebCSRVHVbHkEWHcPDjYvLTsDFlJr//QJD7B4Q3WmXx5fzK3re1USYL/M/+Jd/szJnsE/cbIZx8cRfCNb+qonP2rg1gSfYDsiw== 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=oZ2uygHrksDe1kQMToNCY5gUd2ctynOrjhFP93kaPWA=; b=PCadNpMJSS35E3Ncu1lq4a4FaLQhyeXWDS3lL8IgNvX2F2E1u3+KHyjWrGjBSDZSBFHIuA4PzJx0yHBBxNO+Rm0qg7cPQfYrgTTwfAFDPIQijxXFZvfxpCEz09CBDDsro9/WBR00TODCqpdUeNLa47K2ancCq+bks1BJkDsHIPWWlowllvB3/PiZhDhLkt5hDTInkofAFLY6/g3JzRWdgtMYcXFp4bZ4Snn2uVnOtMg/u+xP4RjBNrLwqA5lO58AeVbgRJO78AX2elJabDT1yacaVQuFXLTfhEs6SAed6IWeGTCDDfCphH3ie3i4U6FdyRyQcUn/r4hrMPurTrXsmw== 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=oZ2uygHrksDe1kQMToNCY5gUd2ctynOrjhFP93kaPWA=; b=Sa5TJ6Cj3B10oEq6Nl5LyaxFlRXAN3XLAjhArxOHDLxcOBfMkg/RKsUnVBZHsjHSzfpQ/H3nXtUo7WRhMwVALNSg6rtJoe0cwsQMKbaJUaMBhDoz/kmhqcE/N7acN0e5wpBRI79sxHte/ESIGuZG9sV9ienQ987nb5PEpcM71lg= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by DS7PR10MB7324.namprd10.prod.outlook.com (2603:10b6:8:ec::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.19; Thu, 23 Nov 2023 14:34:56 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::a5de:b1cb:9ae1:d0cc]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::a5de:b1cb:9ae1:d0cc%6]) with mapi id 15.20.7002.026; Thu, 23 Nov 2023 14:34:55 +0000 Date: Thu, 23 Nov 2023 09:34:52 -0500 From: "Liam R. Howlett" To: Bagas Sanjaya Cc: Chun Ng , Linux Kernel Mailing List , Linux Regressions , Andrew Morton , Linux Memory Management List , Ankita Garg , Suren Baghdasaryan , "Matthew Wilcox (Oracle)" Subject: Re: [REGRESSION]: mmap performance regression starting with k-6.1 Message-ID: <20231123143452.erzar3sqhg37hjxz@revolver> Mail-Followup-To: "Liam R. Howlett" , Bagas Sanjaya , Chun Ng , Linux Kernel Mailing List , Linux Regressions , Andrew Morton , Linux Memory Management List , Ankita Garg , Suren Baghdasaryan , "Matthew Wilcox (Oracle)" References: Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: NeoMutt/20220429 X-ClientProxiedBy: YT2PR01CA0003.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:38::8) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|DS7PR10MB7324:EE_ X-MS-Office365-Filtering-Correlation-Id: b6b914e7-6e40-46a8-1088-08dbec315c9c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gU80fGFBFzryMRjMYKTf5oEYXQ721cS+HBz0iuSkabWT6u1SvxsI9wzzvYBsitWUz+kqTVWLeM7zwAKGLnIiZ4dbRKxoh+5VBESz42dWos3WUufV2FM2mlILLzaQxorJ3fZ8qpHhsery/5fY4ft3T8br+eGr51Fs8ih7n4RNgFT+xL0NlL3huZi9JgPTvZvIhDjhdoy9DSnBgjHBUqaaiIfwuTsm1uOM/Z6fi//d+eCxfq+FMSc5h+bp79MSs/P/6A37P1D7e2KWKNs96bcaLS/WU48K84H48iehuS7ZrZDAPX8BBOrJhCysO4NDUbRVRkUMsOCCIG46w6A58+BsJpW41H+bwRDrGpqH3VihfL40MEf17DBvWCQjSEEh/ym1HJNmzEpardjNQdS0nCVDoRX4BRi+UNJltKYKq3ab+SqlNz+IOr7fiwICau14xgUOQjEDebR0+bHiUWhrwtyqI/zhsJkPyUeHTpmMMhMa6PHB6nc3uezT0lKKXP2hxoQDI6qA7EfvE3UtZ1r8usyxnPrw0eiqfxs9KBxKx9323u5C6MH4ZjI6yNusAPXyRu1nwpJRqgY2FBxC2FZlwipcXK5S1wK8QAQVEUHc4LRXzTiB1WRQCzywitfKPC4pR4XHOP4rKt3YlPaAs9KSXdrnvg== 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:(13230031)(7916004)(39860400002)(346002)(376002)(396003)(136003)(366004)(230922051799003)(1800799012)(64100799003)(451199024)(186009)(5930299018)(26005)(1076003)(9686003)(6512007)(86362001)(38100700002)(83380400001)(5660300002)(6506007)(2906002)(6666004)(8676002)(4326008)(316002)(478600001)(6916009)(66946007)(6486002)(54906003)(33716001)(8936002)(66476007)(966005)(41300700001)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?Q?xgXYNqjeL/aanth1shx1xMrH5LY/8dk4YbkuFuoNlkmvDTaxrT9im2eI85?= =?iso-8859-1?Q?/knd3Ry5Wy82sM9NCFSnjpEnawuvh5FNr6pXdaT3vKd25p/8cuEfTIlV08?= =?iso-8859-1?Q?rQD9ufC1v6EqMQv9JsFXzhCD3OLlsKwCuG7zwQnYiY3r0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SzLco90+tUkdxq6phyr+ceWQqO0dyt8a9FXLuw/ue9GolmSj1LeUKo?= =?iso-8859-1?Q?rSYp/fjTV86e6msSqD9vQN34+PQMxatpPyc1eFJ2qbWNFfI4HY9b8Px56J?= =?iso-8859-1?Q?Bc7oVBx/OBa2Ah6KRu4woG3OXIGFH79gvQNSRZgSX4p6t6pyrD3m5fr1xL?= =?iso-8859-1?Q?DxDpwk7sfnyUukhSVDfr1A37rSxcd1SL3yIg7AR/vU3zUdyGVR/rn5EdiS?= =?iso-8859-1?Q?mVu5R1tlQhKp0rQZOB7dkYA6vWgn0cfsZPzk5IBXbNx5ArCzCP9L6/hwn5?= =?iso-8859-1?Q?w3t4rXM+w1UDrtZpFLn9HAnMApU/5zEuvjdpdNFT0oa9RK0Iac0g9bBVx3?= =?iso-8859-1?Q?464meca6NDBID/W8wveMTYM4s9YctTDfhR3DjXZgIb2Xtqg8M9sy4xowPU?= =?iso-8859-1?Q?XfoU2JNVlAMRU5nUx0nKhhsA7whD5laSPr4n0t2IIdxggHV0oJHDpHdfHs?= =?iso-8859-1?Q?sr0cEwL0+pf7t+gujPeu1e8Cyrq46/a3s43pWWtmWPjsxTOmA8Qk3DbHEk?= =?iso-8859-1?Q?phSzWcDZnXtt1TBtpXyM1l7k0jzsEB1JZNvyAnRUkQWc9sV1pyMTGZv3+l?= =?iso-8859-1?Q?I3NGpNNLdbliXDAYb+1E/Rsg9ttdBf7SgE?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?iso-8859-1?Q?NB5xLdAi5EHxkHc6+M/ZgzLaXyZ6xSRv2pttGBwHy3qJYJdFIcX5duE6VF?= =?iso-8859-1?Q?YWNIMHCRz/34hI6XWz25DiR69CR+zbp/hxuXks22qr41rlk0emIV0HfQof?= =?iso-8859-1?Q?h+I37FYh7PxDAvn1EaxiD8l+AJuQSSlDJOqxfSlmdwG3gEQsSebPiR/f1n?= =?iso-8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cn474hp6LmsTxO?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: b6b914e7-6e40-46a8-1088-08dbec315c9c X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2023 14:34:55.7400 (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: 2lUtdVVS9lNc4uJ4v13J6WrSTda9u6DDnZKmwEEZoy4ameuw6q4awrTZb+L6engA46T2ELvyr7VM55uV8m5YoA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB7324 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-23_12,2023-11-22_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 spamscore=0 bulkscore=0 malwarescore=0 mlxlogscore=513 adultscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311230105 X-Proofpoint-GUID: 0CbcD6ZLXzdD70dVNFhM3Focs99bEnWk X-Proofpoint-ORIG-GUID: 0CbcD6ZLXzdD70dVNFhM3Focs99bEnWk X-Spam-Status: No, score=-0.9 required=5.0 tests=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 fry.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 (fry.vger.email [0.0.0.0]); Thu, 23 Nov 2023 06:35:50 -0800 (PST) * Bagas Sanjaya [231123 00:07]: > On Wed, Nov 22, 2023 at 08:03:19PM +0000, Chun Ng wrote: > > Hi, > >=20 > > Recently I observed there is performance regression on system call mmap= (..). I tried both vanilla kernels and Raspberry Pi kernels on a Raspberry = Pi 4 box and the results are pretty consistent among them. > >=20 > > Bisection showed that the regression starts from k-6.1, and the latest = vanilla k-6.7 is still showing the same regression. This is almost certainly the maple tree. The tree is slower on writes than the rbtree and so if the benchmark mmaps/munmaps in a tight loop you will see this slow down. What you are doing is measuring the speed of inserting and removing a VMA with this benchmark, so it's not really something that happens - we usually use the mapping between adding and removing it. What this gains us is the ability to remove contention on the mmap lock during page faults. If you were to test contention around that lock, you will see a slowdown until you reach v6.4, where per-vma locking started to show up. More benchmarking will show different types of fault handling outside of the mmap lock until (I believe) 6.6, where most (or all?) types are supported. Although this is expected, I am still looking to reduce any real workloads that may suffer. I've been reducing the allocations, for example. > >=20 > > The test program calls mmap/munmap for a 4K page with MAP_ANON and MAP_= PRIVATE flags, and ftrace is used to measure the time spent on the do_mmap(= ..) call.=A0 Measured time of a sample run with different vanilla kernel ve= rsions are: > > k-5.10 and k-6.0: ~157us > > k-6.1: ~194us > > k-6.7: ~214us I would have expected v6.7 to remain closer to v6.1, but that may depend on the minor versions you have been testing and what fixes have landed there. > > Results are pretty consistent across multiple runs with a small percent= age variance.=A0 Ftrace shows that latency of mmap_region(...) has increase= d since k-6.1.=A0=A0An application that makes frequent mmap(..) calls the a= ccumulated extra latency is very noticeable.=20 > >=20 > > Please find the ftrace results and kernel config files in this folder: > > https://drive.google.com/drive/folders/1qy8YTBqxu8Gdbs7IigYbSd4FXldId5s= d?usp=3Ddrive_link > >=20 > > The test program can be found in here: > > https://drive.google.com/file/d/1tG6_BbQMCHwfKebvAIAg_xqbM_lpPcuM/view?= usp=3Dsharing > >=20 > > Info on the testing environment: > > cpufreq_governor: performance > > Test machine: Raspberry Pi 4, 8GB DDR > > SCHED_FIFO with priority 99 for running the test program > >=20 > > Vanilla kernels are not tainted. However on k-6.0 and k-6.7, I have to = patch the drivers/clk/bcm/clk-raspberrypi.c file with the version in Raspbe= rry Pi kernel tree for the CPU frequency governor to work. > >=20 >=20 > The next step is to find the commit that introduces your regression with > `git bisect`. If you haven't done so, see > Documentation/admin-guide/bug-bisect.rst for instructions. >=20 > Anyway, I'm adding this regression to regzbot: >=20 > #regzbot ^introduced: v6.0..v6.1 >=20 > Thanks. >=20 > --=20 > An old man doll... just what I always wanted! - Clara