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 3A87F440F7; Tue, 28 May 2024 21:34:04 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C911F4026C; Tue, 28 May 2024 21:34:03 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2058.outbound.protection.outlook.com [40.107.21.58]) by mails.dpdk.org (Postfix) with ESMTP id 0C5F84025D for ; Tue, 28 May 2024 21:34:02 +0200 (CEST) ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=Lt3lRmHjX1ra0TnKhwxVdOVLBgK9pWlXIZaqoIW8j41v46ibl1B/4EAAJ2CQ4wRm3iWl1t4XDf56ZUHlWvBoBqrOQFsvev61acx5cyauSkVYKAK2kiAyOBLOLh+J386XVCgbhOmjIA8BseCTEdUCaG69pSZ10Cy66OTMZlYqN9JEAle0tGVF0qGGye+InJONvj+BXoKNTb/dXm6Sd24KH3Hl/3yqGT3SI1tSVHBF1FGT1V0ce7hzASqFo9h38Z1wlwSBSWtmVZXm/tdTnXxvAADkfawGbg/rNMqCuk01d7r+GsxdiSrGwtiEl+2DP2JPbVieezsS+3jACLFt8lOhDw== 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=U8NInSwL6xGeKwz/UGl6x8/H64OB5Pmja0u/dwyY2X4=; b=DxBCm8GmGgRNpBO40nqq07ofqhi4CYp4aBxJZVPUpqVbUdByHdILrGhCwJcO4GOsA7ty1OqZvPvlAOVPxUDriKJ391KezdFSBPKczeUpIpZEw1PkMgDdu/oHh4gC0XbQg134pbMTCJBfiuooj8c+D+ichiStqUshYG4fB8/6TYYHdhEf/Jz4oqyOLpRYsh9BFD7+juObLHkoVyH4JrYNVdjpu3+PH2rQvLKDYI57MzkLEBZYyrqI3/6Se0/93yOxCAFGGktE6Y5BvJpxhpg72SK8Drfl4uRKQUq1WCon14IYesbqXM2HcKG3mnUjDoJXgxiqeKDwnOsHeVmt7Qmelw== 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=U8NInSwL6xGeKwz/UGl6x8/H64OB5Pmja0u/dwyY2X4=; b=iVwx59GN3COw/HgsOTKWyC8wU66UINRuufpjmX5OqCDFkmtasUYGBReXqxE5EsxZoh0hEP2AMB4IqffCfjyKRVKPmDHzu0AXuQOHC7hUWNA8MPJgjJCJGjFPkf6aSr4BaD0NPnGbavePOBBuq59cko1w1kNINFx43ZnQusVNe1U= Received: from DB8PR06CA0043.eurprd06.prod.outlook.com (2603:10a6:10:120::17) by AM9PR08MB6708.eurprd08.prod.outlook.com (2603:10a6:20b:30e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.30; Tue, 28 May 2024 19:34:00 +0000 Received: from DU2PEPF00028D0F.eurprd03.prod.outlook.com (2603:10a6:10:120:cafe::9b) by DB8PR06CA0043.outlook.office365.com (2603:10a6:10:120::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.30 via Frontend Transport; Tue, 28 May 2024 19:34:00 +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 DU2PEPF00028D0F.mail.protection.outlook.com (10.167.242.23) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7633.15 via Frontend Transport; Tue, 28 May 2024 19:33:59 +0000 Received: ("Tessian outbound e5fb9b7e6155:v327"); Tue, 28 May 2024 19:33:58 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 5e4327efc68afafa X-CR-MTA-TID: 64aa7808 Received: from f52b84d135c9.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id B334D5DE-F3CB-4C7F-B6E4-1AF650D908E3.1; Tue, 28 May 2024 19:33:52 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id f52b84d135c9.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 28 May 2024 19:33:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P/IqiYC0nShG1aqsmUiYVX6uS0xcSiY2WeTf60VU+zyGM5M9fsyQOGIrsPhUv+kveh/1AM9q8K2moeo9cKogSvBNwVumwNv9hS0iAgJCy4vfX6H/95i/3JEknISOImhTBkSK/QEKOo+hNPP7ChP9FLWOvC4mui5t9D3SzldtbAbRwgfJZSALVwmcEWYzaRNSA8+C9B35UfQtsrZz+8SGKEOMT6SHcGNEfDC5HJWa5I91bsliwmL/kA/pDCcLlu+AJIYTvNIKeVHdEk8Gr92NqI6ZrAj9Lq1RkZlGc/QmPAm1gFKPgC9aLkrxzYgyL1x4AGIY9uWdL9XwRiZRcq/UUQ== 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=U8NInSwL6xGeKwz/UGl6x8/H64OB5Pmja0u/dwyY2X4=; b=dpf2WjUVvrTrnYt3F0oQr2xvwAyj2TLfF1ZtxJjgOozL/kwj4BmJgueU1Yk3oUhMdAXpqAKij4QzeWHNkSu8rqa8E+bkZqyrMIn3Q7+PiDsVn5fDw+GXMGfVFSPEzurJI2DfQYDeIlxi8Q6capiDY3k9/RUjc2T+/6cGXYHHDi2Gg4SoHA/659J4VgEgqG4ehlqLpB+EUiovfwnYWOU0jqKW6e/ickSL4mvpTAIO97PTMcCuYEOM0HsOwSkwWX+usAOPCEzP7wTbvPDTeOloCJwU9ndip8AOLBNqLNeKZvmo4jINv2QuHkpoxUWmRiQaXHnEadTy5aqVsfwjsyNTTw== 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=U8NInSwL6xGeKwz/UGl6x8/H64OB5Pmja0u/dwyY2X4=; b=iVwx59GN3COw/HgsOTKWyC8wU66UINRuufpjmX5OqCDFkmtasUYGBReXqxE5EsxZoh0hEP2AMB4IqffCfjyKRVKPmDHzu0AXuQOHC7hUWNA8MPJgjJCJGjFPkf6aSr4BaD0NPnGbavePOBBuq59cko1w1kNINFx43ZnQusVNe1U= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from AS4PR08MB8142.eurprd08.prod.outlook.com (2603:10a6:20b:58d::7) by AS2PR08MB8877.eurprd08.prod.outlook.com (2603:10a6:20b:5e6::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.30; Tue, 28 May 2024 19:33:51 +0000 Received: from AS4PR08MB8142.eurprd08.prod.outlook.com ([fe80::d190:9400:2899:80a1]) by AS4PR08MB8142.eurprd08.prod.outlook.com ([fe80::d190:9400:2899:80a1%7]) with mapi id 15.20.7611.030; Tue, 28 May 2024 19:33:51 +0000 Message-ID: <71a6858c-1ee4-4d51-a675-33c4ab225b7b@arm.com> Date: Tue, 28 May 2024 20:33:47 +0100 User-Agent: Mozilla Thunderbird Cc: nd@arm.com Subject: Re: [PATCH v11 2/6] mempool: add functions to get extra mempool info Content-Language: en-US To: =?UTF-8?Q?Morten_Br=C3=B8rup?= , dev@dpdk.org References: <20230927150854.3670391-2-paul.szczepanek@arm.com> <20240524083651.482541-1-paul.szczepanek@arm.com> <20240524083651.482541-3-paul.szczepanek@arm.com> <98CBD80474FA8B44BF855DF32C47DC35E9F495@smartserver.smartshare.dk> From: Paul Szczepanek In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35E9F495@smartserver.smartshare.dk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0230.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a6::19) To AS4PR08MB8142.eurprd08.prod.outlook.com (2603:10a6:20b:58d::7) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS4PR08MB8142:EE_|AS2PR08MB8877:EE_|DU2PEPF00028D0F:EE_|AM9PR08MB6708:EE_ X-MS-Office365-Filtering-Correlation-Id: 5d3bc961-ef68-4141-fb54-08dc7f4d1f1a x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0;ARA:13230031|376005|366007|1800799015; X-Microsoft-Antispam-Message-Info-Original: =?utf-8?B?T2IvWnlCM25PSXRKRmtjdFZpdVlkL0RFeUNteUd3OVNTYzI1SzFHQWNFUW1V?= =?utf-8?B?dVlmL1RUaFBuM1JkRG5oRXdCSVhnVloxelV5NUxlTS84SlREeFRkWWdESWtr?= =?utf-8?B?RXRIemV5S1hFOEc1UzdqWk1OM2hKamtLSTdJMDNhN3Z2VmZCVGZ1MWpodlBN?= =?utf-8?B?YnJzbEo1NURSaW9vRWFDcmVzY1BmOVFkcGtDSEtGanQ3ZFg1R2swYkRQZ1Er?= =?utf-8?B?WVYxU1Y5ZHczYWUza2FDSytrbjlKejMyTm9OdkxLSFRkQ1NoSTNWbjZrT1Jx?= =?utf-8?B?ckEzWGpseWNWVEI4MHpKZ3lieXpjekpiTU1iRHVPS0RwbGUxQzVrdWlxalhB?= =?utf-8?B?QlNRVGc0b1k2S1NnZTlCanZGRDd0eXNZbnRDWm5PRW5ka2dSWmg1MDVReGt1?= =?utf-8?B?VlZYVTBrTGU3d2gxUSs1WEQwOEtTeXRZc0x1WUdDM2lCMmk1Z3grYnRFTHVy?= =?utf-8?B?ZXpUcXNqTU5BOVpUT2trbXBkcElMbVVvSE9ub1BTckJ0bTVkM0JGbjE3NFF0?= =?utf-8?B?c2JYcktPMk4rdUtUcE8rdkRzZ092TnFTVU1MdWlOUnQyUGJyanZ3OXMrQ3pk?= =?utf-8?B?NGZEbmo5WmVISFlsSjQydml1T2pjaUhrSHdSMU0xTjlvaGZhS0xhai92SGUw?= =?utf-8?B?ak9CNGtXMGp0UTdrclBHT0d5bGhra0F2eUR3VTd4RXFNdWhoU3NKdmlBTUN2?= =?utf-8?B?aDJNSzZra0xrSjNsTHFnTEZ5bnBSV0xIcFA5aERqcktLNlNZNFRnSmRK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Q=3D?= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS4PR08MB8142.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(366007)(1800799015); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB8877 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: DU2PEPF00028D0F.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 500e46e7-e893-43b8-4c9f-08dc7f4d1a33 X-Microsoft-Antispam: BCL:0; ARA:13230031|35042699013|82310400017|1800799015|376005|36860700004; X-Microsoft-Antispam-Message-Info: =?utf-8?B?SHUxeDJNZ2lFUUJKcUVpUXpRdUp6RFVRMFJpSUJVcTlYMmdVanlqNEYwZ1Iw?= =?utf-8?B?YS9RRjRsQzB2R2kraG9zQ3pzU3BUMU8yelhDaDN2SGpOOGVjZE5HS3NDRThC?= =?utf-8?B?VnQ0ZHNxWml4NWFwdVRqK3J2S1VKaHZUQVRyYTRVZ2hGbVlKV2pLOTh1bmQ0?= =?utf-8?B?UmozWk5XS1BJYzQ0UDJmS2FZTjM5OFBmM3RVTkxqUUVmeFJyWnpmZnJZRkdq?= =?utf-8?B?VEVNNU1DcjR2NkJOVTJieksvaXhDUlBzOWxhV0UvRlJyazlVQzZsU1MwcWZq?= =?utf-8?B?d3dzSCtzRnc0YXZxUGhVSWdRYytxUS9xVnFielh1UXpZRzNyWDlJTEplS2tY?= =?utf-8?B?aC90aE1GbVBEWlFCclRBK3IxODhuNlUzdEExdllFWUNxL2dWYktkb2UzVDlT?= =?utf-8?B?NlM2MmxxSnlxcUpUQ3ZrSjdFVzBsbXhkajlKQTZLM2ZVUzE1UWdtWVUxNURV?= =?utf-8?B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DJrSDhlTDk0?= =?utf-8?B?ampoSTBuYmc4ZVZlTFJZSmljQkFyTzlXeGE5RjR3RkxsWXhiQWJHM0NyWnJU?= =?utf-8?B?ZTNzSmJVbi9FUWM0VnVUbFpkRlZBdUpINDlXVkZheW9CN0UzV2JKSzBCQWZu?= =?utf-8?B?aWZIaUdwR3BBcVhacG15aEthME5mMDQ5dHN1QkZ4MWZ6a2xMV0haS21Uc3Zx?= =?utf-8?B?TG1qRHdaVTkxbEJCZ3NKbVVmQVdoZGVSbFNIbStCYURFMkhyNFZVV1BCYjZD?= =?utf-8?B?RHZUd2xWaEFOQU1weDhqWTVzVFR1V3Bpc3RPOFgrKzNxQWhBYkpGWno3dWdZ?= =?utf-8?B?SnM5S0tnTno0V0VhZVZwM1ZsZkxaWmRKTGRmano4OWlhZEt6Y2ZZVVd4Y044?= =?utf-8?Q?mqATGawvLMK1nZI4uUGmPTinMuurxETM+TwYoXb?= 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)(35042699013)(82310400017)(1800799015)(376005)(36860700004); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2024 19:33:59.0839 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5d3bc961-ef68-4141-fb54-08dc7f4d1f1a 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: DU2PEPF00028D0F.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6708 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 24/05/2024 13:20, Morten Brørup wrote: >> From: Paul Szczepanek [mailto:paul.szczepanek@arm.com] >> Sent: Friday, 24 May 2024 10.37 >> >> +size_t rte_mempool_get_obj_alignment(struct rte_mempool *mp) >> +{ >> + if (mp == NULL) >> + return 0; >> + >> + if (mp->flags & RTE_MEMPOOL_F_NO_CACHE_ALIGN) >> + return sizeof(uint64_t); >> + else >> + return RTE_MEMPOOL_ALIGN; >> +} > > The object alignment depends on the underlying mempool driver. You cannot assume that it is either sizeof(uint64_t) or cache line aligned. > > Refer to the calc_mem_size driver operation, which also provides object alignment information: > https://elixir.bootlin.com/dpdk/v24.03/source/lib/mempool/rte_mempool.h#L529 > > If you need this function, you need to add a new driver operation, and your function above can be the default for this operation, like for the the calc_mem_size driver operation: > https://elixir.bootlin.com/dpdk/v24.03/source/lib/mempool/rte_mempool_ops.c#L120 > As discussed on slack the alignment you mention is the memzone alignment which is distinct from the object alignment which is enforced by the mempool according to the RTE_MEMPOOL_F_NO_CACHE_ALIGN flag. Objects may have higher alignment, the alignment returned by the new function is the minimum guaranteed one. I addressed your other comments in v12 (pending internal review).