From patchwork Thu Oct 17 14:31:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Stoakes X-Patchwork-Id: 13840118 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 D1E02D374A1 for ; Thu, 17 Oct 2024 14:32:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5FBFA6B0082; Thu, 17 Oct 2024 10:32:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 586496B0088; Thu, 17 Oct 2024 10:32:05 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3E3716B008C; Thu, 17 Oct 2024 10:32:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 1A4466B0082 for ; Thu, 17 Oct 2024 10:32:05 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 3CF791C6F1A for ; Thu, 17 Oct 2024 14:31:52 +0000 (UTC) X-FDA: 82683333348.03.9D677E4 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf18.hostedemail.com (Postfix) with ESMTP id 004A91C0017 for ; Thu, 17 Oct 2024 14:31:56 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=WhiK6IpH; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=SDYGDIHs; arc=pass ("microsoft.com:s=arcselector10001:i=1"); dmarc=pass (policy=reject) header.from=oracle.com; spf=pass (imf18.hostedemail.com: domain of lorenzo.stoakes@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=lorenzo.stoakes@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1729175403; a=rsa-sha256; cv=pass; b=XngFrUcoxhJ16GmpPBoMdoCj4J1hBamYph2IRtA7ACi6nx/fpmpr+a1atJCkrrvLtMuCDV qFtsiM4u3PsgQqKe+PKRlIhXcYSOXl3SvWB3pBGZMftxCMTPMGUhVHYsV931HcBXnUKHup ra1ySfKG9IiHkxE/Jv4Wo1IZSNhmwhk= ARC-Authentication-Results: i=2; imf18.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=WhiK6IpH; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=SDYGDIHs; arc=pass ("microsoft.com:s=arcselector10001:i=1"); dmarc=pass (policy=reject) header.from=oracle.com; spf=pass (imf18.hostedemail.com: domain of lorenzo.stoakes@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=lorenzo.stoakes@oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1729175403; 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=NPDPeb3MQChUhN/wQYNsqmGkW4njfmUu1kC87EDQu4A=; b=aB9po6ypX9CLK+AO84I3iSYfrx9uQF2P49Tu30Mb1p08aC1PAYZXagliAjMu004+woOVi1 1Jr/Rq8Y4VktLFmOcKqrIrr3tA2zK5xe7KtDtDupULfkN6sxRJmqpoiSKGLWo3CUtdKaWO qZCs73tfWD17TWnJDQGeDGkrQ4PGueg= Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49HEBgIk006099; Thu, 17 Oct 2024 14:31:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=corp-2023-11-20; bh=NPDPeb3MQChUhN/w QYNsqmGkW4njfmUu1kC87EDQu4A=; b=WhiK6IpH9mf/89YDcmA3Q2n3ol+FXdEY gInqkTWtUcmgfVYyHeKqXSZsWcecMnFo/gqUcQqReChO0YcEOp5UPIclUKDNqdLV BtA2UDPQ+lCmU69PHlS0LcZQSvFRkcjtZlfbo6840AeIEjJPPBQ/25v7A1X6345T Wx9QVVSFNlkPo1lx/lqtauZYRmvi6vwvKRvjwz16V2fpHUS0Y37beJHEagvj1Han 8woGp6sVAXu+FUIj2hJsQyFB27hGFD9kjRZS4jrY1hvfLe8+lw1QKY3kP76z24GR R8BwliBss3m/HiWJ/jxiuHo6TqqJT0cia7g9w6DxH9kvBDaFsHP7Yw== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 427hntek9r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 17 Oct 2024 14:31:56 +0000 (GMT) Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 49HD7B1e019986; Thu, 17 Oct 2024 14:31:56 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2043.outbound.protection.outlook.com [104.47.57.43]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 427fjaag0e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 17 Oct 2024 14:31:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nkFhkEtZ8y14i/rP6g7ODSlZj3xlO1VY6II8jZCIh1vUYixfNGIAMRNHR4JbHUlqiMEgQSgq2rBsEL0qoAdC17aQk1Ez3zUYpguGgxCcfHt16XQX7nHXFD4gOUldv3sI2hOGTtwGx6aeM6zKIUhox3/t2I3JC8INTLjBWb1qyFlBylNaHxtXpp2swheo6UoBnUFOHN/oYp827QdNqE10oRk6FzUkqZvdCWDC0H/qvAXAIIecjh1tQAxz6/iHIHHeH3ah+ug+nv1bBdKV+iwsnsnHV9ONtyJ0y3Zyaqc8dGYsiRngME4VjCfDUgG1eduBTdlDFCOQ8b0wzO2r4DVZxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=NPDPeb3MQChUhN/wQYNsqmGkW4njfmUu1kC87EDQu4A=; b=iiTxObmY/cMdS8tSI8Js3HxdvMUqOnw8uSpMiCBRrgpRjE2HwUeLA9Zs+ad0C60sSKPLOo3RdSIIbm2QkRBWbjgECR5Y+t92qYAh2/OwSPGmO02C7qiQ+5NoM+5baHwh9VFqsJevaQuhtFsh8bWArGArd1iCIj73vqA2e39LJnrY66Ig5UFpyhd9pXOKFKCVBG5e/gdutrEcYelo0RXR34LbX083D05LUBIBSpLitSeuM704D0GsQ/vRNa0bZVBJ16urNQxJ3ybF5xLHozshPtCcuQQ2GOGIsHG7ma2GN4I3tTGmXxXiGkrlhiT+Ffmh/ooNAScrt8AoHYmXMQWa7w== 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=NPDPeb3MQChUhN/wQYNsqmGkW4njfmUu1kC87EDQu4A=; b=SDYGDIHsMlFo4RN3q87LdRGuc5TIQVs8RyFS0GPJQneFh1Fow+PYjv/9y+irLt4xdr9iAwRTEom2SOIeJ/VFlxFt5tPk8Iet1DUERspZVjrWRgYkMJLylo0+067E12TS22JvgpojsAzedW57G5FO9I7UqvnYY9zypOQ6DxADuzo= Received: from SJ0PR10MB5613.namprd10.prod.outlook.com (2603:10b6:a03:3d0::5) by PH7PR10MB7056.namprd10.prod.outlook.com (2603:10b6:510:275::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.17; Thu, 17 Oct 2024 14:31:51 +0000 Received: from SJ0PR10MB5613.namprd10.prod.outlook.com ([fe80::4239:cf6f:9caa:940e]) by SJ0PR10MB5613.namprd10.prod.outlook.com ([fe80::4239:cf6f:9caa:940e%5]) with mapi id 15.20.8069.016; Thu, 17 Oct 2024 14:31:51 +0000 From: Lorenzo Stoakes To: Andrew Morton Cc: "Liam R . Howlett" , Vlastimil Babka , Jann Horn , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Oliver Sang Subject: [PATCH hotfix 6.12 0/2] introduce VMA merge mode to improve brk() performance Date: Thu, 17 Oct 2024 15:31:44 +0100 Message-ID: X-Mailer: git-send-email 2.46.2 X-ClientProxiedBy: LO4P265CA0158.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2c7::17) To SJ0PR10MB5613.namprd10.prod.outlook.com (2603:10b6:a03:3d0::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR10MB5613:EE_|PH7PR10MB7056:EE_ X-MS-Office365-Filtering-Correlation-Id: dabe83d0-64f7-43ce-2d5a-08dceeb870ad X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014; X-Microsoft-Antispam-Message-Info: AXLflbXGqF7/Nucfnoy20oIfuTt9/4lOB1BeW1NueE4N+qbboHHIT+zKkby70wuI75oZsVnSZUtW3XSKAImrtXRrEoLMnluWepDctxoWZ9V/ScoruHsIsbdAWeiD1eYcWQE6KWSuKeDg89k+2IJYDWG95wjKAMKnVYyA4wGuXKSAGXMMvrhprogZ0rBwcOMeFHD1pv6b09cZbj2k+wWJ72uu89OzRSq01PZuFNUQTj+uujAXjrHe4poP/fK8GbEDSFgT1Ujgymwt2Es4+UQ5N3Tvqn3d7ZCOC0vlLAbDxogkE3r5lzazfvQqj4BBHHlvcMG2Ntppcgl1DKVfYEbbGjhYo51P1t0wUmveBcdYmHu/QE0Ic38kElqlnO3fHXYNQVaCjcSeZPYbK/5k1bfleTyxV1Ht9HKgmh14QDELLqthhqqSU0RpAM+0JVaFEbQYdhFsCqWeDEQyckzMzDsRfsmmdQbMA+iktl3wPS9rl0HjeQX74QC3+T1JaCzmLPRIsdZYXRYDOu8Xmqm/EjoKgmD8o7jDc0jhS/aK01bUZSFcYsLgxBOx9ZfNVBOEBDI61LfZgwcKvwjdd7sNuG2vKp+mE3FHHRYrUN8KaAoP4HiNSwtz8aUgzFepCNiihyOPAnlXAhB6WsPqA9WAVGXbarq8cUks1mcJNZeE0hNnqFdR7V4519Yp7nkacrELdqi8gr4ASK56o+gSmqSy7G7PAD8ib77gD/fa/k26hsL1vIkDanzWjgmTXuDv0NSRsvUk8Q+TDuHeLWwg4MS0JQpHh9eLPGTUGxIk3w/jsfChibdMfD0nHhPu0s/Zf/NA3LX3M0zZk/ept3GRKhpl9KeAm8TfDBQdxfDNkSqmRy3OKB0IiVWQl+JMDoo5JKv1Cjpd1dBZ34jD2duw1dfHrOHDF6jhm4fPWT3e+0DLZx0nYshQ7NT7mY21/c2Z9wfXUuDOd0jP/IbTnQrtNISmQpRiDN3Igu7BWug9CJEwE10iNYgCjlA4FYyDMecksfVoE43KRpTu90P73HcKvvGQ+WOBy0U5Rfqg1KgcvaG4MHA+rT8RdBZvyBKA48y9t9b7jMhsbPtVDKif1ozv/h+laFTSOX9I4FdI0ZsfEgNJGt+njXQHBdQM0RF4WMs2PZ/Y9R2hXCEJ6WtJ9ywkk4UnbiLUwQJ1U8BtKHmz7s2ndih0kcZN1UMQlDr/2Wt1IwZm6SUJkd6Q7+pMVPVz1F0yeeAJcLgbttPnAff3LRwodR0YM1WWAhC9HztaroJYvx6JPxnI65ccAHPIRusuq4iUV/87/ZZUqqs8P5TzMmEOs3C3V3MolGaw6fOntY7V30mV0kkA X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR10MB5613.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: S558ulAUFPrrTlABzJV23PxtlkInMvEl0uWlprIBJ0zq3LrptYQ375vieEsVEUTFTIG2F+nI2oRaDmhUxqgx8+Kr4sB/+Gu6wwQFMtPMt7TzOB3vnkvvg1I/uYEIXhfxLtaw7hXIhrfsVCkjTI9zbNb5gacg568EigWdHzqR4qYOKLi3vHYgw5gvqOXmAHpvaSErsXVjRaaoBa/B/eMt1LLLfBMQvYXeM6dWR9Fs//ehzjxyRVMTMbpo4KVlg1OZx8Qx8sCh6iR1Oqf/yZaOJ3J9cyDATaPqcyHmmEIF5XHTsu6LzjvSL2eQHXpBJ7jVesBPgPKvvxdlWJ+mQsEkuOkpE4x2uF3sQOgIiTtgGgdxKIVObSolNkm/HmNN5ee/m0FjOPTvYr/BqGClxInCEpERlZu2nW54Y5cYAZshEfCXFP4nXO5COTAoHI6NREbDupS7Bu/agbpnt7vncFXcWmBYrRii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4BVgnDSNqscpmStk9ydW8+mozyKFqIrzIaowhjaZcyN857579a+cN31tuQ== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: YqESrLvSQCLOWr17yPwLQsr+kuoqK8sFYtHI7Ly47qn5TN15ofDfB9nHwoqZAYyUyHlqJa7rur9Oo56FEs6RVdND0EHURXbelNjXQIUMxW89uHLLndySyWqusfOknHuSMKR3LkXprBS4fO6rseTvTkTJtLPhhKE172ldPNUaqAR3mpHlx5n/HFAtD4VlkE23mx1ALzq7pD3TFLc8KrG82d2C1CzXOxPfufAedBReYrV+ak69yolm4qU0mhnlImGmu2YAr2ZRlcjPcwZq/HjwkRncNb1htlI/Bkl8G3NYEI7ev8i7BF8qNfLLL4JFJ24sYX+TT4OcZxiz2ASNVDAzYToib1EHrFlrHHdY21xt79zeCB1GcP63laIIAIrdiYosP73J8678QeFOmLX9B1PkZgvr1gn47fxmI7Pdu48pdmhLJa/glMRkuCsWqIACtHgf78owSRkH3KhlSQ3F0ILh3zyhsnOsfF6kzDFBE/9lrjEEFIeLH4RDKn8NOYT9/tpWLGTDvz4lHLdVR6grFAc1LnGQt9JxXz7bhBURuYplR9ibm9i5VawKnjEBscAK70JueMa2WUFzvOLT0Z7kefu8zklMLtcK3JKOaQ4WA9xFA8w= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: dabe83d0-64f7-43ce-2d5a-08dceeb870ad X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5613.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2024 14:31:51.2578 (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: sMhqaZtosXv4yJqckyZ0/VzO7HFKmBmF8E+ArdGnfAnTPHO1SNdNr6aJy1oHxUPOw8By7aEwdXNEjtP035C6JhFpsGt/C3OV614qz82vb1E= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB7056 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-17_16,2024-10-17_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=772 mlxscore=0 phishscore=0 adultscore=0 bulkscore=0 suspectscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2410170100 X-Proofpoint-ORIG-GUID: Ni58F4JX85wjCo0OzfZ44jfM-V6fktVc X-Proofpoint-GUID: Ni58F4JX85wjCo0OzfZ44jfM-V6fktVc X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 004A91C0017 X-Stat-Signature: ad9gcfht5noi9f7hsy86fwyt35cwfuxr X-Rspam-User: X-HE-Tag: 1729175516-177626 X-HE-Meta: U2FsdGVkX19ZJqUW8nQ086YJ6i6WV9ufoo5j8/3/dstaLHgcuuHf7Qk0t6vDGTHVdhxzd8+OgMyBLmIbqrWTlAIHR0xXh7dH8A8nfuUcdB2Knz6zLHg/rb8LnzmO6CI0UbfRdWdb/YOYjA9BWR72iDbxp749F75QB2QywEpwgceke92R7lU3aafHZUp6iLwsBHQcZjBfMBBaQkCiGMVCdYIp4ZGAw4iqhryZhqLsiav21RUoOVk5xlhfyZ5UuBs2oISqrr5jTUZ8pXH9KQ6WpD9UuSiLq0gjZWzyy1lL8i3XV9R04bR8fnR2k0JwersTmfelKwGS0wpIGYC6HRxPDmJCLZ4j4Yjtj/sohMEri+hbpeosusAtMWx95TOFgUjc8kiqX2S26+gvd4BcQNkD4jb2nHCv06mdSPs/B8qRpfqt4WOYB9KeCZ7hPxrLcEf1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YUPLN/iTj+A== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000012, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: A ~5% performance regression was discovered on the aim9.brk_test.ops_per_sec by the linux kernel test bot [0]. In the past to satisfy brk() performance we duplicated VMA expansion code and special-cased do_brk_flags(). This is however horrid and undoes work to abstract this logic, so in resolving the issue I have endeavoured to avoid this. Investigating further I was able to observe that the use of a vma_iter_next_range() and vma_prev() pair, causing an unnecessary maple tree walk. In addition there is work that we do that is simply unnecessary for brk(). Therefore, add a special VMA merge mode VMG_FLAG_JUST_EXPAND to avoid doing any of this - it assumes the VMA iterator is pointing at the previous VMA and which skips logic that brk() does not require. This mostly eliminates the performance regression reducing it to ~2% which is in the realm of noise. In addition, the will-it-scale test brk2, written to be more representative of real-world brk() usage, shows a modest performance improvement - which gives me confidence that we are not meaningfully regressing real workloads here. This series includes a test asserting that the 'just expand' mode works as expected. With many thanks to Oliver Sang for helping with performance testing of candidate patch sets! [0]:https://lore.kernel.org/linux-mm/202409301043.629bea78-oliver.sang@intel.com Lorenzo Stoakes (2): mm/vma: add expand-only VMA merge mode and optimise do_brk_flags() tools: testing: add expand-only mode VMA test mm/mmap.c | 3 ++- mm/vma.c | 23 +++++++++++++++-------- mm/vma.h | 14 ++++++++++++++ tools/testing/vma/vma.c | 40 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 71 insertions(+), 9 deletions(-) --- 2.46.2