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 EE7AFA0032; Fri, 16 Sep 2022 09:36:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5ED1940DFD; Fri, 16 Sep 2022 09:36:25 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id E85CF427F9 for ; Fri, 16 Sep 2022 09:36:23 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [RFC] app/dma-perf: introduce dma-perf application X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Fri, 16 Sep 2022 09:36:21 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D8731D@smartserver.smartshare.dk> In-Reply-To: <20220915154758.688-1-cheng1.jiang@intel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [RFC] app/dma-perf: introduce dma-perf application Thread-Index: AdjJH2owdwfm1oRaQvO+cUZTu51XIwAfj1Uw References: <20220915154758.688-1-cheng1.jiang@intel.com> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Cheng Jiang" , , Cc: , , , , , , 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 > From: Cheng Jiang [mailto:cheng1.jiang@intel.com] > Sent: Thursday, 15 September 2022 17.48 >=20 > There are many high-performance DMA devices supported in DPDK now, and > these DMA devices can also be integrated into other modules of DPDK as > accelerators, such as Vhost. Before integrating DMA into applications, > developers need to know the performance of these DMA devices in = various > scenarios and the performance of CPUs in the same scenario, such as > different buffer lengths. Only in this way can we know the target > performance of the application accelerated by using them. This patch > introduces a high-performance testing tool, which supports comparing > the > performance of CPU and DMA in different scenarios automatically with a > pre-set config file. Memory Copy performance test are supported for > now. >=20 > Signed-off-by: Cheng Jiang > Signed-off-by: Jiayu Hu > Signed-off-by: Yuan Wang > --- > app/meson.build | 1 + > app/test-dma-perf/benchmark.c | 537 = ++++++++++++++++++++++++++++++++++ > app/test-dma-perf/benchmark.h | 12 + > app/test-dma-perf/config.ini | 61 ++++ > app/test-dma-perf/main.c | 399 +++++++++++++++++++++++++ > app/test-dma-perf/main.h | 55 ++++ > app/test-dma-perf/meson.build | 16 + > 7 files changed, 1081 insertions(+) > create mode 100644 app/test-dma-perf/benchmark.c > create mode 100644 app/test-dma-perf/benchmark.h > create mode 100644 app/test-dma-perf/config.ini > create mode 100644 app/test-dma-perf/main.c > create mode 100644 app/test-dma-perf/main.h > create mode 100644 app/test-dma-perf/meson.build >=20 Excellent, thank you! Is there any reason for making this a separate application, instead of = part of the /app/test/ application? NB: Someone could have asked the same question about test-compress-dev = and similar applications... ;-) Acked-by: Morten Br=F8rup