Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2969229rdb; Tue, 6 Feb 2024 03:24:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGkSGgApOlzUV2oauyeg+gmnSaxOf3gt+rnKHIpzKQpURMQNr0zqQ3AUpfoCpvLw6k1Tq4X X-Received: by 2002:a0c:f2d4:0:b0:68c:8d8d:9672 with SMTP id c20-20020a0cf2d4000000b0068c8d8d9672mr1906912qvm.60.1707218677704; Tue, 06 Feb 2024 03:24:37 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCX6K8j7+B7D+glM0RLPneqcT5kEhSZSc6Xo6at2Mpv9IlYfqEOWIW42alV47e1aZuz9vjtv0VQofhBQkNx2UnPZlVF95fUZGzEgPlbFNQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id iw15-20020a0562140f2f00b0068cb7ed9d62si239208qvb.436.2024.02.06.03.24.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 03:24:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54762-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=BwWhAhbk; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=HN7mSyd8; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-54762-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54762-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE 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 690341C238DF for ; Tue, 6 Feb 2024 11:24:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4715F12EBD2; Tue, 6 Feb 2024 11:24:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="BwWhAhbk"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="HN7mSyd8" 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 427B512E1FC for ; Tue, 6 Feb 2024 11:24:29 +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=1707218670; cv=fail; b=H9rR6EWSfx+YU3P3wNoZZBN/YfeB8dgQkhAmZg8cmtkaagGus1ddwcwuHoXLzmWISRujdHqeSK6Hopr19qqbAiXnkMt53CHx0eEuZQWCMZi7GAC6TBksxN5DkO/s9zOkvETlrcCptcbwgaZRjS3Ah3Jqhh31G4hUCg0Tc9EAufA= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707218670; c=relaxed/simple; bh=u49f+D0+vgefelvLTYnD0SINCoBTD7ebNKKZR9ghYWE=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=ZuRYb8HZoSpRBoNVU4DA6x00WJ/Sc8h6CXXhuQqquthx7I7dKxkKbryKQBZ4xbRRtLLwx8KqVCluy/pyVdcrTd0FjIWiVTPZcoZQk1ZZ/ujoZre8kAt3NY9Dg/O6ORUzYDQcWYfjY9xWBK2T6Hezkl5sEBprujeLNRIcSD/KKHA= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none 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=BwWhAhbk; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=HN7mSyd8; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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 416A9BY9000625; Tue, 6 Feb 2024 11:24:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-11-20; bh=tsAP8PSrdSuMvBEJpDR74SbiO0yR0oGjpUsBFO2ohFM=; b=BwWhAhbkzjrIHCnLYetkwR3vKwp6+VgOYO8jUldLvSCNqTvjK5qMRZdKfxjhicPh7Ies B811dKlck9qM8uPX7KJdNGRe+tvphAKJCVKPQSrnn4olfA8yHZb0SPcGAcrYMWewJ99f lIrHfq5kg8RhlR+3aW6F3nPfUPRNJRsRaCErCpf5gy9cUhpdXRC01jr4p507ZqCagQnR r7yKJSWzsKvTyvgJEaMYv0McEBakNua4J0kxCTPQPzidLGh3wvHqs/h+Gy9fpcEbDQVX P4qwXEAh1Bd1i0Qa1ai+WfhPQ5KHxszSWmSNXMWwGj7SyWBNojSBMm4/Xjt/ZUjeLAbG JA== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3w1d3uejbc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 06 Feb 2024 11:24:12 +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 416BLiCk038399; Tue, 6 Feb 2024 11:24:11 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 3w1bx6xufq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 06 Feb 2024 11:24:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AfXNy7F8mtui1QmiJ4XdlNQjYzLhU13blzI4e8+29WdtgbiRV/W1I5T6bDz9iosKqbakv4zjSid3d/27YGFMZWOblkOVfT7VgKeipB9Vn+jrP1TLa2LRVlmYoBTFc5H3Ca402dIlRqrPu6mYUX70KDzTLTifxoXNdQfhWdKmp8503zWGt7ZJnT8DOEoPW+r2re3i/CqCvc0LLcmxMYiGxMgFMp3vaptDyZNMO5Ixs/iURRfw3Z2aap7Fwfs3PiKxha9L21hgW2+T2WtRgYV1mPzhqFOfebgkvyBhzLTQP05WsbWEdAXdCaKg3KmQePLtU8IcUvcRCisnBCJ3LjBS6g== 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=tsAP8PSrdSuMvBEJpDR74SbiO0yR0oGjpUsBFO2ohFM=; b=ZBwRoCiUEco/eBWR59ufZcHE19Fb+W4Y8woY/jPTslYJAg/ApN/DFSKJ4sc1C2hELUzPzAdQhjwyZepLxIuZALFfX8+HkX/CeFruQlIoiYkO7Tthc1Gg4MJ06522rio5GYUqQBF5FKUZclY3wsf1Dwp6bWjzMdU3mtMUeup9xKQr11uZhjM+rNIEEprZ9vMNsyNT+EbMXhpey3ER0507Jk8MlBEsXoNhwhRYVFKisnwXUrlCJT76zWfP/WP/1hpNApdD0ZIlZlG9ep+wD3i9ShaKDouw6MSBi40ykvOD8d59f90oo223W6fyDOOWYSeQY7t0nPNrgg4XSVxh4IXHFg== 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=tsAP8PSrdSuMvBEJpDR74SbiO0yR0oGjpUsBFO2ohFM=; b=HN7mSyd8iwNWVJm/gHsYU6aw9zrr9hnoY/3TCzDBeJ9JM9WU4pSpidC61HFgQDBCUZVmMaYocC+7NPlsouxk3f/7zERGUaVKwOut+TdJCRUClppKqhFem0GFhe9REE6wiWUxc0K27yXmIwM7Oag6b1oGyGeUHvRtQcyUa9pyUZg= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by CYYPR10MB7626.namprd10.prod.outlook.com (2603:10b6:930:bb::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.36; Tue, 6 Feb 2024 11:24:10 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::56f9:2210:db18:61c4]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::56f9:2210:db18:61c4%4]) with mapi id 15.20.7249.035; Tue, 6 Feb 2024 11:24:10 +0000 Message-ID: <83a0aafc-8a9c-48ce-a203-96b901489d41@oracle.com> Date: Tue, 6 Feb 2024 11:24:05 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 3/3] iommu/iova: use named kmem_cache for iova magazines Content-Language: en-US To: Robin Murphy , joro@8bytes.org Cc: will@kernel.org, pasha.tatashin@soleen.com, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, linux-mm@kvack.org, rientjes@google.com, yosryahmed@google.com References: From: John Garry Organization: Oracle Corporation In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0166.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9::34) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) 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: DM6PR10MB4313:EE_|CYYPR10MB7626:EE_ X-MS-Office365-Filtering-Correlation-Id: 9ec9e48c-e381-4028-ef1b-08dc27062390 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n1aT/Vvfpv4AOS1RJf5N1M/4eY3eKvbysbtWexSWa1py9fAnKzXmMAcdsfDK+fQGO01vVXq4SHIHn5/0gMJT6SqSjLMmSewIWKAGBJJMLZzJSeU3eYseCqBY1hNdQeYr+PJd0dGY0lqtSvugNeAjROzPkIPljeIDK12xCx7PJ7hIMKzs+BuUF9zvJZHwDf1cTCVTS0TQ60tjXl7R6Azo0NIS9jIULfFqppJQ/4xD+dMYZEZBwlmax9jD4FXctk++uqAsR6LfHxgzmgj5ZWnkCKwAxiJ+n1F4l2vtgja0ikE2RgTIN7TLdA9V8zw18e+KisYYx565mH8r5gbQyq+VdWeA+2J8Cfvf5cCaUC6p11vkpEyoZ+ihTnYL8eDIyDHKVM+O5KOKg0KWIKyDSAeiDdc5tFl+pV/6JGB5EOZ0rLri+W8K4Ryu6GuXS8O1yUZg/OI6/+T9P2ABTLqcgKhl5x2YWXA6Q8Dr1IbhrXvwuVM9EH3Gpmn2r/ewEkCA/AYZ0hFpKGW1Iuxam5w9VZaMC7IYgW3cdZ7JqKCzTN15/hjLFYJ+2TvBsBWYe1u7WIqXa5keNoLbHfdx6VQplUFhxWNAXfkMAELS0RdtPeb1HNhzx2IThGyOVyHGrIZ/nlXh1GcCQYYqJpLZSPU/gLQz4Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR10MB4313.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(376002)(366004)(136003)(346002)(39860400002)(230922051799003)(64100799003)(1800799012)(451199024)(186009)(38100700002)(31686004)(86362001)(6486002)(6506007)(31696002)(2616005)(26005)(478600001)(6666004)(36916002)(53546011)(6512007)(316002)(41300700001)(66476007)(66556008)(66946007)(4326008)(36756003)(8676002)(2906002)(5660300002)(8936002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OEk2d09uRk8vN0I2U0RmZnFlWWk4aUMxTHJZS0tXdlNBTDZxRG0zYlNZSVNj?= =?utf-8?B?ZUlkMGVoMU5QbkFNSUVoaGhiUGpYTmY1bjdrVHdoNEZYbSs4Mi9QSnVoYnlz?= =?utf-8?B?TlNOYjZzWWRzTDJlWXMyeWtlRDdQK2haSTV4S1J2S0k3cTNtc3kreU9ucFU5?= =?utf-8?B?ZzI4bXZ0VHkwSHpqdUY4TkhrdUQvYjgvd2JKV0JVOEhyMXpGSUIvUDBDQVVl?= =?utf-8?B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rdlhHRlRaRURiZXhXRUF3SEdJMmgwZ1Yz?= =?utf-8?B?RENGVEZ4TitGZWtlL3pCQW56R29MN3hyRU1vcnNEYnJCTVhPbDhyMlJNZU82?= =?utf-8?B?QStmVEFPM0RvcWhoRFdGemlmME9UVHNhdGpvd1RGWWhtNm85RGlOd055cXk3?= =?utf-8?B?MXc9PQ==?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: IipLDUtuOHWZSZLQwcPBcCRjnHAVkxyFgCAAc5qYHNB4RtRjG8PWrkiUgB0q1e58SesQ/yVN1ZKjXZ6ayyJGHQabfeuGXDtaSi3YAnDNqrqxtiW/u01lnm1jwQ5apZMFcSoPdQ3Vcsb84cHCcHYET2PLwO6DcRSgPBGqfM/xdPzCKBWv8lJ/QmKQRb5q/C6ax21M+2+GIiVyoVCMMLHD274YUa2UzkrVJwLSJKLfuK5Ya4cAbxbPG9OfbrNXqDq2zHjU8+6ZQeMJLla8oT3lekY4d/iTJ9DGJssUO75sY3NMhbqGV4fzBxMFECCK36o3TZV8tv5qQuBPGopA8KSQoRphd28DxZJRY/WgQR+Fmc8uQ00uECji+rOCE613ufXxAxyxb/OvGdpUeljE2HqX0wHEJMn3rQyqjB3B6vDubHE0m/es+x3M7ephF6bLdK5XDSTg1Gtwockj2YwDfuDVYNEzROSOXqor5p57MVfnD4gbpr87yjLDuu/5dVfUVMcFijPomaJOpuqGXKAWlos4sG22yUzLpchvlK83r3lLScOjuq5AnO0DFUwXXH0hr1olN/qZnZV+IvnaSzejdJa8KtWOQqAxk7/rblVnWiL+kpM= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9ec9e48c-e381-4028-ef1b-08dc27062390 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2024 11:24:10.1432 (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: L6couULElPHeD2kAre8LnS4bYyk2xvncYy2mC/H1UTjGG6ChtHBwgOdVohZCT/i32XRRKhdBlXtu7ZHCFlXyDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR10MB7626 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-06_04,2024-01-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 spamscore=0 mlxlogscore=535 bulkscore=0 mlxscore=0 phishscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2402060080 X-Proofpoint-ORIG-GUID: 5Q9kVVkjQ5pzNL6WFjaHVtqtaQ2FEpjJ X-Proofpoint-GUID: 5Q9kVVkjQ5pzNL6WFjaHVtqtaQ2FEpjJ On 05/02/2024 15:32, Robin Murphy wrote: > From: Pasha Tatashin > > The magazine buffers can take gigabytes of kmem memory, dominating all > other allocations. For observability purpose create named slab cache so > the iova magazine memory overhead can be clearly observed. > > With this change: > >> slabtop -o | head > Active / Total Objects (% used) : 869731 / 952904 (91.3%) > Active / Total Slabs (% used) : 103411 / 103974 (99.5%) > Active / Total Caches (% used) : 135 / 211 (64.0%) > Active / Total Size (% used) : 395389.68K / 411430.20K (96.1%) > Minimum / Average / Maximum Object : 0.02K / 0.43K / 8.00K > > OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME > 244412 244239 99% 1.00K 61103 4 244412K iommu_iova_magazine > 91636 88343 96% 0.03K 739 124 2956K kmalloc-32 > 75744 74844 98% 0.12K 2367 32 9468K kernfs_node_cache > > On this machine it is now clear that magazine use 242M of kmem memory. Those caches could do with a trimming ... > > Acked-by: David Rientjes > Signed-off-by: Pasha Tatashin > [ rm: adjust to rework of iova_cache_{get,put} ] > Signed-off-by: Robin Murphy > --- FWIW: Reviewed-by: John Garry