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 7CC6E436D2; Tue, 12 Dec 2023 15:38:20 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6A60442E48; Tue, 12 Dec 2023 15:38:20 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2077.outbound.protection.outlook.com [40.107.96.77]) by mails.dpdk.org (Postfix) with ESMTP id BA12E4025C; Tue, 12 Dec 2023 15:38:18 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oVWLt6N+nMmPpo4TdOA5to3sfDxPVCa6nI3TRNTn8qfKkRgtn4+vsLImWShJxut7AAROKvDNCjFI/Fq0mnMTJ791jG65vRdAHCgi8fBrJiSCvYYiibqiDonycwAwtRnXqdydkDy3C7bQih4EqjL5PAn5cqBGJrPjaQrOFOh+H5ASs434czB5N7WgX/I9ZPyfgMwbyYBHg4qIqGgyiY3z5rOONKYitUf7EzAqb9YXkRizjgX5BSInd1FwAKE6zE7TLcBlQdR20s6ODCNgp1iYUMFFOMgt+RPOCJdSAIL0219CZbBarfDagYkILEL5LdhJqR3VMizZ/7523pUllzmCFQ== 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=WaYti4N5+X6tNZHNr2VvJC0zk4mhIZfEq5eDHWz9SN4=; b=J3rH7Zyym5vlop+wL0E4gqCSOBN0QPgKnQtAOZwGu/B7Ys2YC8mQl8hkD0rrBq0dNRC7+mx/0Euu+xwH+LmRiH96txwg6QaGN+u6VQSRkZ23B7UfLovTYZuEMLXabU2HF4bYrNkSSmfn4fv9GHltEtMu4gjeWQ0GU3hucRffgovtKN1dsIPwwU9AStO4NBpbAOnduGV1D9YbRZa2UPgbAbya9YE++lLIP8ECx2tzEVm9vywOraNjgznme5db4CKdyh3hAdYyznfx0MXzs6NgoLU1gPOnCGima5qiP9SnFoKAurUQEPwVG9qIJJ6ivB+UXr88SpFzfZUxOtSxP2qrJw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WaYti4N5+X6tNZHNr2VvJC0zk4mhIZfEq5eDHWz9SN4=; b=rQM5nXWhpPUkrMVKSQHpkU2Lm+dWX6pnAR8sFW35qVIce1JXp2vWIdjiGjrxykqR7pzHpLBD1Kyyx/vSmN4YUMFui7+4LExCmmTj9MgsfabUwMkx/2ceM0GMWuEPtm/JMmuRA4Y4Ik7b92DL/dXumjIocXmVH4nYyMrXXZphhis= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by PH0PR12MB8099.namprd12.prod.outlook.com (2603:10b6:510:29d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.33; Tue, 12 Dec 2023 14:38:16 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::2569:edb2:670f:816f]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::2569:edb2:670f:816f%6]) with mapi id 15.20.7068.033; Tue, 12 Dec 2023 14:38:16 +0000 Message-ID: Date: Tue, 12 Dec 2023 14:38:09 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] app/dma-perf: replace pktmbuf with mempool objects Content-Language: en-US To: =?UTF-8?Q?Morten_Br=C3=B8rup?= , Vipin Varghese , dev@dpdk.org, stable@dpdk.org, honest.jiang@foxmail.com Cc: Thiyagrajan P References: <20231212103746.1910-1-vipin.varghese@amd.com> <98CBD80474FA8B44BF855DF32C47DC35E9F0BF@smartserver.smartshare.dk> From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgAIZARYhBEm7aYjps5XGsPHCElRTPtCK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MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35E9F0BF@smartserver.smartshare.dk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: FR3P281CA0155.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a2::16) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|PH0PR12MB8099:EE_ X-MS-Office365-Filtering-Correlation-Id: 2870f881-c85a-41eb-7f6f-08dbfb1ff9ee X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: z3GtpgGp/4h8a/EJl5AKEDLIfdZ6HBZ545ngAfr46J2ruI7kpYwdHAZK9O/5+r47n1hpk3vOXsXB8GwvJvIIrFocC3uUMtqahENxtvW82JmxSdeghmF3VJieCHQIirb0remoUNa8ek7VZpArX1HCwaqDuZeYHs1WPYB1LgydKpZ54XcBXykzM+xpwq/0cxkMqA2LLGT2PY8XYho4JwSMqiqGkwuIStnuoZZrdJp8IRbfKXBjK1Svm7UFz5HPtpBL2Vy43KJDD0qAV5bXVbrUQbs694l4n3bCloyoLaO5wwUIvQoYMrDqY3ay2qK+qzTI0u5Wc81JB48fhaK+hpk7EHscMUhKQxKHs2udzNQUQfJaJ9mpr9OL3lnzYB5a2vQKIliiLsbUbQBQt3X2oeC6DpnZ7emO0ndcHFncfDYr6xvzUkqI/NBKIwXFznctGu4QXQpoy5gyM6Wnnl6y3y5Vm7SvlJmaxvltGc1caqU3AoCD339CnZf2swHH53LgCfLcDyHjVi3PzSuOisA7Ssjy612EaDldKnDv+tBvq2/NOrw9NR1isRIXCsD38+7iB0HgtYJBsaFqpB6cwFYfW84h+W8n8mMTvKLhcUsbDkLVGixWM2+7C+mjCKDvxEaXhd9J/ZLuy9kNvOt6Ur2uYhPZtw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(366004)(376002)(346002)(136003)(39860400002)(230922051799003)(451199024)(1800799012)(186009)(64100799003)(2906002)(41300700001)(86362001)(478600001)(31686004)(4744005)(66946007)(66574015)(66476007)(6486002)(66556008)(110136005)(316002)(38100700002)(6666004)(8676002)(8936002)(31696002)(4326008)(53546011)(6506007)(6512007)(44832011)(36756003)(5660300002)(2616005)(26005)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Y2ZGRXZIR0lYMGk4UVhDdHNpQ0Fyc25JY3daWUo5VG9RY1c0WHBVL1Uxcjd6?= =?utf-8?B?WTNVRkxPZVNuanV1blFJNFUvWkZpMEZLd1pKbTRkYkR2a05XaFhycXZFZmYx?= =?utf-8?B?My9GWm1YM21Rd1FzT2lYK2ZjekkwV0tUU1hFTTJCV0NpUitSYWp4QzJucHpt?= =?utf-8?B?UFJLcnlGOStSY0Q5ZnJmMFphcWFjVUdHb0NJcHNXV1pxL2ZBSXllenNkQklL?= =?utf-8?B?bjYxdSsxai9jaVJKYzRuZnE2NlRRRXZkcHNLQ1hoa1cwK0ZtOUJVc3B1eHlV?= =?utf-8?B?cjl0NkRiUko4UTdaNThTaTdRQTRBMnVaclNWc3R5MHNGRmxrQVl3SFdFQ1BX?= =?utf-8?B?NVJaVWl5THkwSlpKelhiZlRJRUpYSEVRUVRyWEo2MzRIRVhXYU54RkhReFN4?= =?utf-8?B?MXVNOXhiZkhTd0RjVHRVdW9SbHBQMzJkQ0plYS9QWUJkOXkyakJ2djVqT3FY?= =?utf-8?B?OVllMUZWOGY0ZXEx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cUZuT3RIVUJYZitNRXI3WWNXV29tM01uOTdneHdiQnpGVStoaU5VK0xrVE5S?= =?utf-8?B?L01TSXRDaUt1S3hPQkc4ZVBnbE5FVUE2TU5GbjRaSEttU0VBYVlwc2h6TFRj?= =?utf-8?B?ckxkcktCTUYvNTNkMzh5cUJkUk13dlBVNEZoOHpPTUFMb2N0bkZGSlhVeTgr?= =?utf-8?B?cytVSVo2VkFZZ3VraEJBZnNRQ3NMRFl5b0dBd0tBWjlqZi9HTWpibGtmRzZQ?= =?utf-8?B?THFUMlhxTmNrSU50UWI0Q1dyblFCTkNPMWpmY0VndkUxckVxMlFORVdHQkRu?= =?utf-8?B?cWRiSm9QMW1keUJTSExuQkNQdTV1dWJ4RTVWWGh1LytIOGpvK0R0Tlh6OFVF?= =?utf-8?B?T1VpeHk4Ym1pTE1iK1RMSkp5dWJidXNaVWNhOVB2ZHJrL1B6cVl2cm16VGVh?= =?utf-8?B?dWIwbW5LNytIclU2TERMTzZHV0hpaDU0MUJWWUVQZ3NwZDU0bnVNbkxpUEpT?= =?utf-8?B?MDQyd0IwVlBmUXh5U05UcUxKN2NHeG94cXRQSElDOUlXWUZGR0VFRXBBVHpY?= =?utf-8?B?TkI0Z2NFSTJSQXBlOE9HYlJkekxpWXR1M0JDU0pVc3VrWmE3a09zNlJkQXVV?= =?utf-8?B?cnVFSjdTQ0FUZkIzODdsU2o2OUhMY0NnTVNKQnNxUEl3SFA0a3o1MVVub3Ux?= =?utf-8?B?bjNiRTdVbU5aL0x5MG1COGQxaTRSb0gvWXZRd0FNT0hXanZFVmgyN3E2MkpU?= =?utf-8?Q?6FiI=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2870f881-c85a-41eb-7f6f-08dbfb1ff9ee X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Dec 2023 14:38:16.1610 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sb0Qwzsq64QvcgOxKpE8qgG4CECL6pw1LAwZwgYbIT3DSuEAtqkC5xWlIbNj+LYI X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB8099 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 12/12/2023 11:40 AM, Morten Brørup wrote: >> From: Vipin Varghese [mailto:vipin.varghese@amd.com] >> Sent: Tuesday, 12 December 2023 11.38 >> >> Replace pktmbuf pool with mempool, this allows increase in MOPS >> especially in lower buffer size. Using Mempool, allows to reduce >> the extra CPU cycles. > > I get the point of this change: It tests the performance of copying raw memory objects using respectively rte_memcpy and DMA, without the mbuf indirection overhead. > > However, I still consider the existing test relevant: The performance of copying packets using respectively rte_memcpy and DMA. > This is DMA performance test application and packets are not used, using pktmbuf just introduces overhead to the main focus of the application. I am not sure if pktmuf selected intentionally for this test application, but I assume it is there because of historical reasons. > So, instead of replacing mbufs with mempool objects, please add new test variants using mempool objects. >