From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 666DE44102; Wed, 29 May 2024 14:55:42 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E0D2C402CD; Wed, 29 May 2024 14:55:41 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2070.outbound.protection.outlook.com [40.107.6.70]) by mails.dpdk.org (Postfix) with ESMTP id 65EE3402B9 for ; Wed, 29 May 2024 14:55:40 +0200 (CEST) ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=Ca9ozE5JqbdxVB8rRRYH+exV8kwAMWHenjePmR0np55ZiOJE89zmFhx3nHa8VuVJj/s2MHhiSCpGYO3mso2ojfftWeeHQFULFuGIMcszrv32VoDJh/K/NwleQ2n4TPCbQWuanzljQRbmqzMGe1X6XI3dpIPPyR7EHwzrZ2oDM9wi+dj6TuSlu0aYi5v+TwVTPeDc/O0FhafS4K4ebSk9X2db+wJ9qPiSEy2ldNJPTJ5rWggensf+2HOl5Xo21ibi/HViwZX+iohv2PJzqQNULyMZk9VRM+C4BpZNXX+3H7+l2yOBv/kbfNUCns9x99Zkohp1XAIPj+GV3z/Xyfun7A== ARC-Message-Signature: i=2; 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=5+OZ1yFbaCvcLdvMJuj8I+vDsBwYF6xBaGqLxaRN7Sk=; b=jYA9zDQkDPY0LSjVOO5ayTaV1rG9J+uZPLA2wZ21BbmBLMTCU33Hnp/QPs+cIyyqU3WX+oPGJ1SBD0UmqMn4sCptZWdEUYx+SIB9HY3xTSOKwa0gYoJ3txFOH0kSEf4tbFCFRyInQAqbfJHrue7rMxcKKXG1wZgl/zAv8jaQ8t/WpfAjvJ1VCyBgq5jiOjZEl5pDdy+qMUaFauuAfwovb4cSVMMMDZuoUFeEIcJQJ40VtQhjVZCd0hEmOHt3HVTGtJc6/chetELH0hDtsJniMny5ebKXMED6h+zq9UCt9trIXywmskOG32WIwcq6oKAkEgm/Qerb0kdKwUdmkjG90Q== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=dpdk.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5+OZ1yFbaCvcLdvMJuj8I+vDsBwYF6xBaGqLxaRN7Sk=; b=VxYWu/2VOx1+iYFxBd1QpIxyGAFYNl3YA5ZGFJ7OsOQCuungVGgRDL4ReJcpmAkHYN94PvC7RkCl+YMK40i9FA+WY6Ai/F0q6NPN5AW9l5lzPHsAFLqeUSOP8hsDwY+DiCEwGt/3c+omQ0etg5597RbfYD6Xe6gcQG9dDLqFMwA= Received: from DU6P191CA0054.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:53e::21) by AS8PR08MB9412.eurprd08.prod.outlook.com (2603:10a6:20b:5ab::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.19; Wed, 29 May 2024 12:55:35 +0000 Received: from DB1PEPF000509EC.eurprd03.prod.outlook.com (2603:10a6:10:53e:cafe::e5) by DU6P191CA0054.outlook.office365.com (2603:10a6:10:53e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.19 via Frontend Transport; Wed, 29 May 2024 12:55:35 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=arm.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB1PEPF000509EC.mail.protection.outlook.com (10.167.242.70) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7633.15 via Frontend Transport; Wed, 29 May 2024 12:55:34 +0000 Received: ("Tessian outbound fffbb209f6c2:v327"); Wed, 29 May 2024 12:55:34 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 1172aeba6befe95e X-CR-MTA-TID: 64aa7808 Received: from d9e1a2b63644.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E99DBCFC-C8CC-4A85-8867-2F44232EB5A8.1; Wed, 29 May 2024 12:55:27 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d9e1a2b63644.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 29 May 2024 12:55:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NsIAMAXkvBP+3Wgfs1QJbrZaWuzX8JUQnTU4VMU8UysRRjD++CTFtNs4pLFj5UB/O1BPI+gZcm4MgbptsQWgMU6bUJGJVC3yqwhkdTGeeLftRWmqhhWmslggtu8m8/lZBsicmlF6/B+GMPnsC3y+a67IHaL+A1LxIE950VrVptMu+Wd4mYZFXUslf0EZGRkMv9+8YceB4EJ3GpKb8faCwZ7V6unp+fgu0N1LfQohqalA8ONBJA7JatxpxH9Ro5Cm0hGtjgkIYK+szDEaTXUhNlQ+PfnHZiN8cZtWRlDmi+O2615Yx3YoUMnAqelORoLG1LO0ukcXEAyB9hA6ypQ+IA== 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=5+OZ1yFbaCvcLdvMJuj8I+vDsBwYF6xBaGqLxaRN7Sk=; b=OzMqmJCcN1NgRIDgVB5DvRSopDhbk0YgMo7Uw+d7Ls1NOw5C1//qrNUtG3w6ceuSYrWuvkqXvUyNSFLAiID9joLuIcDDttP3NfclXzuQJeHEifZzrCNBXAWWQOp3BAZovyLu9S5omjhLJmGt3uN0v6dHTr+AQaieY+AWzktVnW7NITccB2rzgr8kD17Im+C+60n7nCyfOqpe8tOsL0i9W7DcumJhUuF1c7XCS+uPrxMtDVwooLFHR9nj+HvWNvAa4yaKd8pvLU7KDuwSd2IA2WVaqZ+yD5ynMKYnEM5ZIwoesjYVLcaEyvwMCN1I4NJ2+vqEwK0alsW2wJugD7sqDg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5+OZ1yFbaCvcLdvMJuj8I+vDsBwYF6xBaGqLxaRN7Sk=; b=VxYWu/2VOx1+iYFxBd1QpIxyGAFYNl3YA5ZGFJ7OsOQCuungVGgRDL4ReJcpmAkHYN94PvC7RkCl+YMK40i9FA+WY6Ai/F0q6NPN5AW9l5lzPHsAFLqeUSOP8hsDwY+DiCEwGt/3c+omQ0etg5597RbfYD6Xe6gcQG9dDLqFMwA= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from DB4PR08MB8151.eurprd08.prod.outlook.com (2603:10a6:10:381::16) by PAVPR08MB8800.eurprd08.prod.outlook.com (2603:10a6:102:2fc::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.19; Wed, 29 May 2024 12:55:25 +0000 Received: from DB4PR08MB8151.eurprd08.prod.outlook.com ([fe80::2dd2:fd4d:8ff5:3733]) by DB4PR08MB8151.eurprd08.prod.outlook.com ([fe80::2dd2:fd4d:8ff5:3733%6]) with mapi id 15.20.7633.018; Wed, 29 May 2024 12:55:25 +0000 Message-ID: <0e875212-b364-4617-b103-38d3498e2131@arm.com> Date: Wed, 29 May 2024 13:55:21 +0100 User-Agent: Mozilla Thunderbird Cc: nd@arm.com, dev@dpdk.org Subject: Re: [PATCH] mempool: dump includes list of memory chunks Content-Language: en-US To: =?UTF-8?Q?Morten_Br=C3=B8rup?= , andrew.rybchenko@oktetlabs.ru, konstantin.v.ananyev@yandex.ru References: <20240516085940.61119-1-mb@smartsharesystems.com> From: Paul Szczepanek In-Reply-To: <20240516085940.61119-1-mb@smartsharesystems.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P302CA0018.GBRP302.PROD.OUTLOOK.COM (2603:10a6:600:2c1::14) To DB4PR08MB8151.eurprd08.prod.outlook.com (2603:10a6:10:381::16) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB4PR08MB8151:EE_|PAVPR08MB8800:EE_|DB1PEPF000509EC:EE_|AS8PR08MB9412:EE_ X-MS-Office365-Filtering-Correlation-Id: 3a43791e-042c-4f53-b311-08dc7fdea168 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0;ARA:13230031|366007|1800799015|376005; X-Microsoft-Antispam-Message-Info-Original: =?utf-8?B?RXM0bGNuODlKaWdmSmlmNUlRQkZJNFd6eUs5S1FMZTJMRGx1dHZraG5oNFpu?= =?utf-8?B?YUNTeUR4eFo4b0xMQmV2c3Z2OTBuOWJIMWJnaWhFbnBHYjd0dkJ2TnVRZUtY?= =?utf-8?B?eFFLOFVCU0xjSmdrRlVISEc1WTdOQ2tMWVZQSjgyb2U2eFZlYURIdjFuNitZ?= =?utf-8?B?N2kvdmlqZFJYMHE5L2VUSllkZlBzWEh5dVcyZzV6K2ljcS9ML1MwMXk0UnRt?= =?utf-8?B?VFRTcFpldi8rYkFDTjRwL1o5Y2VXNll6WkNJZ1JLQXhkZUZVTUZVcUFxVUht?= =?utf-8?B?NklBOGpkZW8wMUFIREIvdnNMdDN6VmptUXVEdXZ0ZXBvL3RhN0VZR0ttZkFs?= =?utf-8?B?bWgrSTBMODJHY1NoSFZSbklmUmdsVnk4QnoyRmRWNzMvcWpJOTVLM1ZmdUgx?= =?utf-8?B?Y0JDOXlGWGhtUUkrV2lDVjY4ajNFV3hNS2xBN252aURmaE5XcFpqaE1UckQz?= =?utf-8?B?ZmpKUTBtOW1LUFlUOG16VVZPbmJXT2tlb3pLZ3lyRlNIV1pzeHgyS2duZlNn?= =?utf-8?B?WGpyMXlIRzlVYVFuTmJvVEV0Q21PUlhBVm14RENjSWw3NzFKQTkwNk5hZE9i?= =?utf-8?B?RnFFK3R5dzZaQUxWQ2V1L09yNHd4a1NMVElia1FtTGlmOW10T3JyVlBUKyt4?= =?utf-8?B?QzVQVWxrQ01JRzRtQ1c0cWpienRzeG5nRTFGdFFZT3pDV3BVQW9tU3hKTVJ1?= =?utf-8?B?SmxySzdieUpqOE03RjBMQTNXM3dFMGlsUzJHUElsNzlGL2UxcHpZNGswV281?= =?utf-8?B?b1l5Y0EzdGxCbEgwSW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utf-8?B?ZTZldHF0NlFuMHovS2F2cGRta3JvTnR2aWhZODk4cklPZ1dhOHQrc0NBPT0=?= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB4PR08MB8151.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(1800799015)(376005); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB8800 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB1PEPF000509EC.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 82a79357-44c3-4745-a358-08dc7fde9b8c X-Microsoft-Antispam: BCL:0; ARA:13230031|36860700004|376005|1800799015|82310400017|35042699013; X-Microsoft-Antispam-Message-Info: =?utf-8?B?VURlSDNWU0lwVXd6eEhNTTlyNm5sWHlMa1l0U1Q0OThUUEp4YnZVTHBiYW5u?= =?utf-8?B?R0xQamdPVEZkU2xHakkxcFNIaGNzNzhLN1M4bVd1QThiNVVlQzA2WGw2aFpB?= =?utf-8?B?dExiVDkzYWxiYWlSZ1N6NGltR2tRdE9BdTgxUms5SmdVc1hueFNxdy9IclZM?= =?utf-8?B?N0JCc0FyTGgzZ3JFWnk4Vy9nOVN2SEUxOU53cmpNRy9hQ1MvbDI1NzM0dXRI?= =?utf-8?B?eld3bWp1QUZlQmxZN3FxeWY3YS9US09KemY4WXNOUnhKVkhjVW0wdFhkdWlq?= =?utf-8?B?S3JlR3VrVEJ0ZXhLd2JCUW9CNUp5aTh5ZHh3M3BBYnZNRkloNVFTWXlIZnJO?= =?utf-8?B?a0xXMkZIZE1VOUptOEtqQUtJVG44MGZ2ZHoyeDNDdlNWUWV0YjUzM2FPNlFH?= =?utf-8?B?dHV0K0ZqdmFobTV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?B?cGNxRy92NWNrRUxxSlluWDAvWWZ1WW1tVlgrSlBOMmwvRzRvOUpOaU04YTlT?= =?utf-8?B?L1J5ZUdVMFlUZGk0R0VtTTl6MUhLdmM0LzlDZDh6bVk1RkJmVHVadlNnRXh3?= =?utf-8?B?aUI3S3VHRTFkd2xETEtaakhFZE96elpidVJMYTdJTVJRZ2o5R25kdmk3L3hM?= =?utf-8?B?ZFo0SEVSU3hTeFlpMUtrTjJnSGROeFp5VDAyM2I0M1lnWTNEMlpJUDgxcVZW?= =?utf-8?B?VGd4RzdFdVBXWUlCWEQ2cHlKZE0vVG5LZHdadHhyYjRKcG9GZnNwMWZFYzY1?= =?utf-8?B?UVgwbnY1UGYzMjl4T2pUajBYeGZtYjdDVWp3bjk0WEpNenZzdHZwNmUzUi93?= =?utf-8?B?d2lRcU5BbW5WTzRLNnFGdklBekJVRXVkSTJZeGJ0anNqVjlzTjA2Q1BqakdZ?= =?utf-8?B?d2ZVa3FZVGxzR2hxMTVEL0IvdHUyTUdSNklkN29xV0puTFRKTnhQejhkU0ZP?= =?utf-8?B?SVhOdnF6WlhHcnFQaXhVYXZOZ3hmYS9VWmt6WGVQQUl2NE1aSGppUUZ6cC9J?= =?utf-8?Q?+i1D1l56fwoXt?= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230031)(36860700004)(376005)(1800799015)(82310400017)(35042699013); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2024 12:55:34.7072 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3a43791e-042c-4f53-b311-08dc7fdea168 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB1PEPF000509EC.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9412 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 16/05/2024 09:59, Morten Brørup wrote: > Added information about the memory chunks holding the objects in the > mempool when dumping the status of the mempool to a file. > > Signed-off-by: Morten Brørup > --- > lib/mempool/rte_mempool.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/lib/mempool/rte_mempool.c b/lib/mempool/rte_mempool.c > index 12390a2c81..e9a8a5b411 100644 > --- a/lib/mempool/rte_mempool.c > +++ b/lib/mempool/rte_mempool.c > @@ -1230,6 +1230,7 @@ rte_mempool_dump(FILE *f, struct rte_mempool *mp) > #endif > struct rte_mempool_memhdr *memhdr; > struct rte_mempool_ops *ops; > + unsigned int n; > unsigned common_count; > unsigned cache_count; > size_t mem_len = 0; > @@ -1264,6 +1265,15 @@ rte_mempool_dump(FILE *f, struct rte_mempool *mp) > (long double)mem_len / mp->size); > } > > + fprintf(f, " mem_list:\n"); > + n = 0; > + STAILQ_FOREACH(memhdr, &mp->mem_list, next) { > + fprintf(f, " addr[%u]=%p\n", n, memhdr->addr); > + fprintf(f, " iova[%u]=0x%" PRIx64 "\n", n, memhdr->iova); > + fprintf(f, " len[%u]=%zu\n", n, memhdr->len); > + n++; > + } > + > cache_count = rte_mempool_dump_cache(f, mp); > common_count = rte_mempool_ops_get_count(mp); > if ((cache_count + common_count) > mp->size) It's useful information to dump. Maybe consider adding something akin to RTE_LIBRTE_MEMPOOL_STATS to gate this in case the prints are overwhelming due to high list element number. Reviewed-by: Paul Szczepanek