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 92626A04FF; Wed, 27 Apr 2022 12:54:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 866EF41145; Wed, 27 Apr 2022 12:54:48 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 3DABF4113F for ; Wed, 27 Apr 2022 12:54:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651056886; x=1682592886; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=yLfEdhUqvaTtP9SPfHZWkwMrC7GzRug++Ysl5yAmQNg=; b=Y6hGLUA8LcEj7At+hUmzYvcenAUHUgshzGSY97YepvPhbC4zAtNxYGtF zzSqpuh+4dQ0Z1hmfvGqJdi047G98pOL5RcDdbh4AG1DWA/8JhT9WjEdz 9pWhntY42zqeHO6jWp54D0q+bHH2GVI+btsI0iP2YK+Q3jhA6U2F0bnQ8 4RxUfq246qC4sSdysFRkDfP+Kgp/PP3G9hL4FH3VmQWP5B+rq/mYh15AC UTvC6xpO6AC8KCMNB8OcV4ouJr98ZzT8QT52bBnJivPrSKroOfDHn73Zh +Rnn6AX2bvSqecf10VO1cgQ09V5wVEOrXyz/KGG2u/VAhHY/aE12XRJbO g==; X-IronPort-AV: E=McAfee;i="6400,9594,10329"; a="264736761" X-IronPort-AV: E=Sophos;i="5.90,292,1643702400"; d="scan'208";a="264736761" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2022 03:54:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,292,1643702400"; d="scan'208";a="705492215" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga001.fm.intel.com with ESMTP; 27 Apr 2022 03:54:45 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 27 Apr 2022 03:54:44 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Wed, 27 Apr 2022 03:54:44 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.102) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Wed, 27 Apr 2022 03:54:43 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ga6b8MRdZNkjzzoyQHxH/2HYmIoXccbAh1kgn5XjJfnQglOY6iRSRU06/hAHuQhVypj4x43DuI7FdqzugGCUR9HSC18AnNOUR/g/s+XTcbK0mF0TLlIZru3K2GhcnpWmUteFPEuyuvkW4V7rFgLMxF0RhriLTj/l2V5RDwwPBguWzdt6RzD1mHHup5oNqKP7CPKW98JeavXDKJdUxlUHx7cNm6wkMGT0kiKmyoAn0yUUHqpSsaSFyCc74vyMtDjIa8o4RdJFrbSIad3lrW6X4KAFsqafRVjFq7FgGXaIuvhczZDPxfZIyfa2+ua5p0wFbVXYdkRl1WM9WswB/m/A0A== 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=z8/GojiQ2EPl6MaRi9Z0V+4acmnQz/p21LaCWAYlIqU=; b=cGF0It2saay81XlqlIOiOJ+WzkdhsJwyn6No5/ZmYAbkBx5wx0hMcWGVZOS9pDAOqxXnWgtnnQE4aVlILPz/Y3lPyH4aX8mG6lIv0MyUvC5MaCNUysHl7DgdVMVWuZeuDX5UBCyBva6cIjKopB65N3RUK4uJvnhdFAJgfNNWgsOpP6+k1Z5L1SN0tTsG0V/Np2LKU8Ceg8zDiXf04ABicqrv7tmVx8Bu5r5iiWF6ZpnES+QbWKdzfov6OKvlmkvKr775I3sSQdovTEzxD0/ae9SEKTv6dD4JsC4FFCGHbw3ZZG+tEPUHVyN+6SkANkNjW/3s3QtKynsWs2pI0E6bNg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by SA2PR11MB5081.namprd11.prod.outlook.com (2603:10b6:806:118::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14; Wed, 27 Apr 2022 10:54:41 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::d55d:28c1:bfab:3dd]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::d55d:28c1:bfab:3dd%5]) with mapi id 15.20.5186.021; Wed, 27 Apr 2022 10:54:41 +0000 Message-ID: Date: Wed, 27 Apr 2022 11:54:36 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v3 3/3] examples/dma: add force minimal copy size parameter To: Chengwen Feng , , , CC: References: <20220411025634.33032-1-fengchengwen@huawei.com> <20220424060741.33214-1-fengchengwen@huawei.com> <20220424060741.33214-4-fengchengwen@huawei.com> From: Kevin Laatz In-Reply-To: <20220424060741.33214-4-fengchengwen@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0247.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a7::18) To MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 28e5bbab-165a-49f3-a293-08da283c54e4 X-MS-TrafficTypeDiagnostic: SA2PR11MB5081:EE_ X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hXaAmUwoslc+J1tPEDVxU9Q5NtfzpoFT04BUxLtocPjxgUBkQkk2Y6Hze3eomCpQbjLv/TqjDDKR2yrP8+M9n7FgLCTnuUL0kP2hL3Kq6MSr6srS8ck7oqNbFCGpM+xNaFVrW1hb/doBRkeGmmVRECkA0rBbPj65CWiY+QhonNboMubNkja9DfL0lanqVuqXoSw7H/8MyB2Yzb39OzEPV8RLYLVDW+XqmpoHriNnLrg9A0grb5q3iTWsRJ0E5+/DsTX/wLfCFCF2hcW8xdyirtYmNPNx/Vs/kWDureOuthZVv6LDpT2pLYFaA0kgF46r4B5j2asqRWRDBWvccx0cqLlpt8aBMddknZo5wGTLiR9J0aKY1CmWgygwyg4AI7L3+Fvuxdto2f+SY4OPJPZ5AE8RYwgAZHV8+7hD/EqbJzGDDRYFpXkb8z/7o9idY/mx+tiiiHuIGbaezJrT+NGCbgqTnSS38Jb/3y3/be6c4FuEcg+GhKcDV5lOS/n5oZjnjzB8DauVEReZJh6hHDaeUDaOlDFT8vwGmZONsxlVW+ZREeKBZtE4pgEDkyCw8rTUHTsmXObz2qjmxj6B3zdn2UxWEowr7P/ZuTLMVkcP5eY6zro+7SHNAq0CLwEUfuOhluULRqi8dXZLG+lbbogVquO9WYVcIOeiY5q3Ti/qD4RyUH8DC3mV7D32tB+oIg9xCg/dEJ8QW51gHB7ISqE3yauKo4WJQQ5euVomg8+oQZ6sWHQ0BdWataZyXTXy6bAa X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW4PR11MB5872.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(66476007)(86362001)(5660300002)(4744005)(31696002)(316002)(8676002)(53546011)(82960400001)(6666004)(38100700002)(83380400001)(2906002)(2616005)(66946007)(8936002)(4326008)(6512007)(44832011)(66556008)(26005)(186003)(6506007)(6636002)(6486002)(508600001)(36756003)(31686004)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?YTNHN0pVSXIrRUxBN2hkdnpPZ0R4OGY0VExUTmYxVE9YSktzUHJ4SkZOcHkv?= =?utf-8?B?MlkyMGw4dk5NZ25uV3VBWDNEcDhQS2Z2Tkc2emhHTlpsdUlRYVdMSVVDbThO?= =?utf-8?B?ZHZCTU5aQnVDWmJvUjZNck5XM2ZQMklnNmc3MlozblhtT0hsdThiQXlsazIw?= =?utf-8?B?dHVDZ2Nhd2UrVmVjTjlTYTgvak9HY0U3V3l0b3labFJRTGxYRUFmTzNxNnBj?= =?utf-8?B?M3lML0VlOW1PRE9SdGd2ckNSY3AvWVhoSStua2hUTWRvZk1WL05OY1g0TEFF?= =?utf-8?B?Z0sxSHlyT3VFZHpFTnJpZTBGbWpWNmpPUFJIOHQyNWo5b3dSMmNXb1lXa1Jp?= =?utf-8?B?VEZkMksydFRrbU9ic0Z0dURGbm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REkrSzkvOHJZNVNtYzdvR1BOWHd2TXJlTlYvZERVcHZXdENVVVBDTGR6N0FO?= =?utf-8?B?a25ETGRkWnVDU2VGMVh4UDkvYWtrbDlwTnQ5ODh2RFcya0IzN0tHUzVpRHl2?= =?utf-8?B?SXErazhIenZvQlRtNVFBOG1lWnVkWXprcGJ6TUlzOTQ3RnhaYlRuRUNkc0xK?= =?utf-8?Q?DsNJxqAdpndApeYQ=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 28e5bbab-165a-49f3-a293-08da283c54e4 X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2022 10:54:41.5639 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: o7cuqRFXq2qUyvQZwBJIZuJCT7L2ipKbGf7T1lmsHc4XVzlXyHqgTZX5Mb0RjSHpOFVn08uorM2xI7nhTnpRUQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5081 X-OriginatorOrg: intel.com 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/04/2022 07:07, Chengwen Feng wrote: > This patch adds force minimal copy size parameter > (-m/--force-min-copy-size), so when do copy by CPU or DMA, the real copy > size will be the maximum of mbuf's data_len and this parameter. > > This parameter was designed to compare the performance between CPU copy > and DMA copy. User could send small packets with a high rate to drive > the performance test. > > Signed-off-by: Chengwen Feng > Acked-by: Bruce Richardson > --- > examples/dma/dmafwd.c | 30 +++++++++++++++++++++++++++--- > 1 file changed, 27 insertions(+), 3 deletions(-) Acked-by: Kevin Laatz