Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp211466lqo; Tue, 7 May 2024 18:21:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYec6aDnmTrjJDrQruMUwh4cNFpm+vKH6BoWEdA1qxHNoeZ08iuMI1K6SISRG5Q384U3rcQch3FXGCVPZzveX//dC6BPMjCRKkdzzAZA== X-Google-Smtp-Source: AGHT+IGtzb/b6jV8YRknPWVZzvuHmNmf0KKEVRijtNI8y6hhJUEHcqky3dp3UbmnayjQdtVmWWnz X-Received: by 2002:a05:622a:1815:b0:43a:db0c:e7f0 with SMTP id d75a77b69052e-43dbf4e359amr15660181cf.29.1715131293818; Tue, 07 May 2024 18:21:33 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ha13-20020a05622a2b0d00b0043c5d50a7dbsi11865683qtb.780.2024.05.07.18.21.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 18:21:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172586-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@oracle.com header.s=corp-2023-11-20 header.b=Bb3MgcRa; dkim=neutral (body hash did not verify) header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=DMrZeNcC; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-172586-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172586-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oracle.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7D5DB1C21BE0 for ; Wed, 8 May 2024 01:21:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7624EAD52; Wed, 8 May 2024 01:21:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="Bb3MgcRa"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="DMrZeNcC" Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C11D79EA; Wed, 8 May 2024 01:21:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.177.32 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715131280; cv=fail; b=gCdU6solggNSNG02fUlnsxQAatE7SeO8kHMTE/ts6XryfDvT0g1/NXeTlKvbZlRRrQdqF+TxM9VTIyRZoZTN/47ylsRRcg6LYRzOoU69NfggqIG7LDO+4txKArwvqSffQ90IoPEww0P0rTJaQFs37L2juY43yMhHR5eEDthrQp0= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715131280; c=relaxed/simple; bh=AFtgzLCVvpCOhJgElJcDy6d8aVszAhtqPLum8Jnh8FQ=; h=Date:From:To:Cc:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=CFL17AluGz0F8L51khm77pRFFZE4Jkivga6BLVFibZb+N0FBc8JBxAV1dllAzPETemeFrQM29qHu7E9r0gdYm7czCpKqiwCB81uKWqy7/BOsOxxTvUIX4lE/Xlzc7OOL2G8CsegfP4H6YHAAPrI4u8dCdILBLulXbgb9q3U0yzw= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=Bb3MgcRa; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=DMrZeNcC; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 447IJndW014441; Wed, 8 May 2024 01:20:55 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=QFgUh1UHTNz2+4nm+jNKfOiOVoH6IrRIgxaT3YFIKQM=; b=Bb3MgcRaYa13ed/kMTStp2OqUz9TczQck3e1NlQECpZlm8aAA5mOAYctQd56/PXrr6SP Jpt3F5Xo/nKRAg2AxYAnb1SH9JJOWqC1lV5dQHME3P/KaOwNa/pGgWGpaYCDjZ2dDmRn luDp3kfkTpbQEQmVTc5iYNQ9Tn53ubIiyNyvhhEXHwJvzcg6akE2jPSReHr+fBLjEKRt VuIY3ZPzPExNeZ5sL1wSstxQZ/kyodlyTBgl0DHN3bPfSKj5J0LttQ/r+q9f3fCGpoWm 6WTAMwAIhSRJsQHgoyatWd/BhnztJSMZuPb4W3bGozhIVPNV0ENgLvGO6KowaFYwEvxj 0w== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3xysfv0mbg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 08 May 2024 01:20:55 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 4480TQha035482; Wed, 8 May 2024 01:20:55 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2101.outbound.protection.outlook.com [104.47.70.101]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3xysfnn4uh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 08 May 2024 01:20:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Cg/Vn2MV7iktS9oYXh0GjIgpTRP//kGpL4zAaRqJtpBzLQe28WWyIB9CunjAQepBUxlfD3C7Bo9kRMj9Ag9YmJGaZ/+TC4NphNC5MADRL9crkU7K0OR0q1JA3/gYTsDUx9UhyuCwNrRdrsz1hUbumuSlwY/A07sLcXnVrcR4D06bLAeogOL5xIzP+zPJn/3YlCiunNYt057bQ3dJ3mqoJvju8s7Z/MMj8Qyhadz9OYyem/RNBO1zXshYNNKaehdnwae3+LWhyb2HwZkdfeE/lX2MCdcxwY8zlKIblWaop1B9G3E3b041IBukVDBINGK4RIYG6TXs8trOs8LxgfSGJg== 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=QFgUh1UHTNz2+4nm+jNKfOiOVoH6IrRIgxaT3YFIKQM=; b=LQRC0bRouQ9RUQqmRcTjFP0ODrbg1icIDOxxfUCVpW2X3SOWghBXLN1kAIs8ntzvQU9u2lOBg1cXSO8VlC/mdFeKIwBZv6ZJXwUvLAl16HFGXKx+ZwlEMLFxNhwtpCOfYxM5C2ZhAUaUzpvJPx8zDF3Hf0K/6CnWdbo5IGPn02Airc5x+xHe06RnBvzC2AS+S5ibeqxfq42S/S7VXt22sOkdfisX4MaMY9WK9X8H7/m3oGU1qDLFEA/no6G3hiKgfnz2rbaxgJkQ40oUXrljuAmuRXnOZSQzR/m0pUP9+rPTLzz94T8xLgnyUKa9bdtKobAbFMVESuWqWiwl1QhoWQ== 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=QFgUh1UHTNz2+4nm+jNKfOiOVoH6IrRIgxaT3YFIKQM=; b=DMrZeNcCGssYLS7S+DpnEuAVt47FZpkOwVH3zSc35OaGYPwuKht+D9EkfsEC++eRvxQbHntyljwiTzbtsKSBXgNX+Ok4y/yI+4OOENp5U16f7Lt08cQTXYDLK8DJ6jcDFZaUt2+0hVP5UqjDp4x6xtEalQA8WdIy8OOIqT1X5Is= Received: from DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) by BY5PR10MB4372.namprd10.prod.outlook.com (2603:10b6:a03:207::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.45; Wed, 8 May 2024 01:20:28 +0000 Received: from DS0PR10MB7933.namprd10.prod.outlook.com ([fe80::2561:85b0:ae8f:9490]) by DS0PR10MB7933.namprd10.prod.outlook.com ([fe80::2561:85b0:ae8f:9490%7]) with mapi id 15.20.7544.041; Wed, 8 May 2024 01:20:28 +0000 Date: Tue, 7 May 2024 21:20:25 -0400 From: "Liam R. Howlett" To: Andrii Nakryiko Cc: Greg KH , Andrii Nakryiko , linux-fsdevel@vger.kernel.org, brauner@kernel.org, viro@zeniv.linux.org.uk, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-mm@kvack.org, Suren Baghdasaryan , Matthew Wilcox Subject: Re: [PATCH 5/5] selftests/bpf: a simple benchmark tool for /proc//maps APIs Message-ID: Mail-Followup-To: "Liam R. Howlett" , Andrii Nakryiko , Greg KH , Andrii Nakryiko , linux-fsdevel@vger.kernel.org, brauner@kernel.org, viro@zeniv.linux.org.uk, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-mm@kvack.org, Suren Baghdasaryan , Matthew Wilcox References: <20240504003006.3303334-1-andrii@kernel.org> <20240504003006.3303334-6-andrii@kernel.org> <2024050425-setting-enhance-3bcd@gregkh> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: NeoMutt/20231103 X-ClientProxiedBy: YT4PR01CA0015.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:d1::22) To DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB7933:EE_|BY5PR10MB4372:EE_ X-MS-Office365-Filtering-Correlation-Id: 7f9063ef-480d-4472-1432-08dc6efd0bac X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|366007|7416005|1800799015; X-Microsoft-Antispam-Message-Info: =?utf-8?B?WFVxbDNMRW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CL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR10MB7933.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(7416005)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MlNzU3FGMlY1TUpHYk9Rcyt6N3VnSnIwc29jcWJQZ3FSQ3VqazZMYTZaWC9j?= =?utf-8?B?MXpUTTEyVEpuMjdXT0xzcnFqL0xWbGVvMThGeGpnbXVWR3d2UUJ1c2k0a2RJ?= =?utf-8?B?dE0zZlBOOURsTTdFUXpCWXJBSHlrTFBnYTA5RFBtUklSNE9DUXhIREJIVFl4?= =?utf-8?B?Q0orNHVSVlI3ZEpMZ2tBcUlFZXJWUTNUTnVjRWlSbnFEM2xPN1M1dDN0R24z?= =?utf-8?B?amUxcG5ncWp3VWNBMUIrSzZ5ZEljS0wzODV6TWNXOWsxSmRYUnhHWm9JanJD?= =?utf-8?B?SlFQb01zWkNTMTQ5eC9rQTZvZFF2Qnkxc2R2RWx1aWZ4ejQxM2NCK0xIVUd0?= =?utf-8?B?aGJFbXBFbmZkZGkreFZtTUtxRUdyQ3R0WE16RmtzSFlNMmxuVnVPZFV0Z0pX?= =?utf-8?B?SThPeklick11eTRaa1BNa1BqaXhoWjFEUEhDakxKR0JVUVZUbERSNHVhQlFl?= =?utf-8?B?YkFPTkRLNVo3TTlyTHp5NDdEK28wOVRSWStoY0pQZTVGRkNNQyttQ0krUzJQ?= =?utf-8?B?NGhXQTgvT0psK1hVektLTUFxQkd6aG5SUmk1bDA5MTB2dTdrTXNlci9XcC9K?= =?utf-8?B?UFN0RXVaODlJMzMwWGxXL0ZzeGE2dXpNR0hVcEZ0MitjK1hhNitlTFVJZmNF?= =?utf-8?B?S0VFaloyMVZRREVZMC9HZ3JzdXVCd29YaXJrclVDMHFEaTlNamdQTmZFT09x?= =?utf-8?B?U0JFaFlhd2tMbTB1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ADZHUwMZVrXypbsXTWXLOTmrIm9rxC5T4DSjtL+V9Af/eUAwdFBkAdjn77tEsJbKhDV8/fipKkRhdB2xCagt+ZgfgIiKoxL7pRJaxJnc1IX1j/rGjitUuu7ChVLiLn4MGkq5f1kSy3TpYbHzVtT4fvZukVTyR/ZDykscPL6upeHXZI+shcMDj81HGJ+if2O+LRHQAddECnROrL/X5wqwbAPVkoxEfSx9bshEiMYl+yiFg38bgbwanl60TkqvXN5bq6kDhs/i7aKOmSQDvNCozhajQLNWA= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7f9063ef-480d-4472-1432-08dc6efd0bac X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB7933.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2024 01:20:28.3658 (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: yeFqyv0bMhjXmv8/8GOmlIgcv5g9v/dl0tNGzATq+sL2Udyz2LIU2PYjokVdoU1bD0QZEqU0cLJhEepI/w5Xjw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR10MB4372 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-07_16,2024-05-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 suspectscore=0 mlxscore=0 adultscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405080008 X-Proofpoint-ORIG-GUID: XqMiyDxB9GHcgwju2eb55HFyGufAErYW X-Proofpoint-GUID: XqMiyDxB9GHcgwju2eb55HFyGufAErYW * Andrii Nakryiko [240507 15:01]: > On Tue, May 7, 2024 at 11:06=E2=80=AFAM Liam R. Howlett wrote: .. > > > > > > As for the mmap_read_lock_killable() (is that what we are talking > > > about?), I'm happy to use anything else available, please give me a > > > pointer. But I suspect given how fast and small this new API is, > > > mmap_read_lock_killable() in it is not comparable to holding it for > > > producing /proc//maps contents. > > > > Yes, mmap_read_lock_killable() is the mmap lock (formally known as the > > mmap sem). > > > > You can see examples of avoiding the mmap lock by use of rcu in > > mm/memory.c lock_vma_under_rcu() which is used in the fault path. > > userfaultfd has an example as well. But again, remember that not all > > archs have this functionality, so you'd need to fall back to full mmap > > locking. >=20 > Thanks for the pointer (didn't see email when replying on the other threa= d). >=20 > I looked at lock_vma_under_rcu() quickly, and seems like it's designed > to find VMA that covers given address, but not the next closest one. > So it's a bit problematic for the API I'm adding, as > PROCFS_PROCMAP_EXACT_OR_NEXT_VMA (which I can rename to > COVERING_OR_NEXT_VMA, if necessary), is quite important for the use > cases we have. But maybe some variation of lock_vma_under_rcu() can be > added that would fit this case? Yes, as long as we have the rcu read lock, we can use the same vma_next() calls you use today. We will have to be careful not to use the vma while it's being altered, but per-vma locking should provide that functionality for you. >=20 > > > > Certainly a single lookup and copy will be faster than a 4k buffer > > filling copy, but you will be walking the tree O(n) times, where n is > > the vma count. This isn't as efficient as multiple lookups in a row as > > we will re-walk from the top of the tree. You will also need to contend > > with the fact that the chance of the vmas changing between calls is muc= h > > higher here too - if that's an issue. Neither of these issues go away > > with use of the rcu locking instead of the mmap lock, but we can be > > quite certain that we won't cause locking contention. >=20 > You are right about O(n) times, but note that for symbolization cases > I'm describing, this n will be, generally, *much* smaller than a total > number of VMAs within the process. It's a huge speed up in practice. > This is because we pre-sort addresses in user-space, and then we query > VMA for the first address, but then we quickly skip all the other > addresses that are already covered by this VMA, and so the next > request will query a new VMA that covers another subset of addresses. > This way we'll get the minimal number of VMAs that cover captured > addresses (which in the case of stack traces would be a few VMAs > belonging to executable sections of process' binary plus a bunch of > shared libraries). This also implies you won't have to worry about shifting addresses? I'd think that the reference to the mm means none of these are going to be changing at the point of the calls (not exiting). Given your usecase, I'm surprised you're looking for the next vma at all. Thanks, Liam