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 1804EA00C3; Mon, 19 Sep 2022 10:10:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BB60240E0F; Mon, 19 Sep 2022 10:10:06 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 2EC1740141 for ; Mon, 19 Sep 2022 10:10:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663575005; x=1695111005; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=k7jI69hBOnTlaS0HkS2mEnjFp2oIuYLpK3rN5q0BaNc=; b=bYB3Apb2sz6tlSP9cl4nKfwbmSOVlDH/kigUkrQW5Lfw/Qxzco1YwzZh NRonY+RXHRStuC/6QhZlevMEk4tVH4JB/2I8fI3FjY+ZqDsEBuTJJ1nwX iUZogvLOAYCDF5PG8QggMcGV9jew/AcTX3xxb8IAgufgdmRChRHtVw35Y cr5mAUlATCzYISsA4t3wU8hICgofJpQdurMOS7Z96gdQhfvksMLaT3kjK SPjEPSvRXbKyA4PYR/nHpWdfmqaJ49WUfb0iKEpU0vNwWgNm+4FELHz2u N675yvJrU7QDqnBBcwufAgA3MUIWGi+lpQv0y+1V4E6qFppDpgZQHIhqO Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10474"; a="299328840" X-IronPort-AV: E=Sophos;i="5.93,327,1654585200"; d="scan'208";a="299328840" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2022 01:10:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,327,1654585200"; d="scan'208";a="947115396" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga005.fm.intel.com with ESMTP; 19 Sep 2022 01:10:00 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 19 Sep 2022 01:09:59 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 19 Sep 2022 01:09:59 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Mon, 19 Sep 2022 01:09:59 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.107) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Mon, 19 Sep 2022 01:09:59 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a37ctM5/+Bv93smQ0EUUa+QxUA0yAFcbzjYSQRUMd5akLGBATj/zEKW/QliLWVofOjAp9T4YvStzQg+Ycz/Pz1Wh2r1jpBGc2ZYw026P3ycSWNniICUhxtV0lIl9MC3aR65rIyl+KJmm3mCzu/cWbZ3m+7+wL8tFWSTkHvNXjOh2ArGEn6AWmTgQBpbaHc01N4b7GhPnOI1C5ZPPYDZkhud+Yxwl3hGuSlW9pgB42BBxnk/wP4uxlFmLBIQN8oPnL3992MPtuTH3/vsAwVxZ8xCl61iciu+/Fltetbcv0I94Uxg7ebjKa6fxeMsPhxOPXJYWwib0McDXqve5h75YwQ== 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=YMpNdWzuyH6/0fPHbjBNE9o7K480LumGgctKrHSyBls=; b=f/JQt5Hv1QLMCOgcDxtYAVzOXrVPH0hUHyVtC1966Ma+A8ULlOjMvl6de2/v2a+m+yjU5qyKwiK8KOiiaUWR2epXd7wv7LVPV8mEJZGX3vJQQgg8ybrY2jKz4Q2OrENmtRKSn8SbESqufYZpsfc/LvAgotZh191BwIrmPQSuGhaQOtCr6mmw/GZrPOnW+NVPxlB00SA1pTN0ZfbBms1nSjEmPHj9UF4Voklpfz82fA1hiZq3gSP3/sv1t5yjTfoNYC2UQHwBunZIN0fhXYaMSKI3pLk+2LgUyinT6Co2i9QCfXIdZtE2xNdnJyA2dfk7d0q2J23+5AVcV5BMF6ccQg== 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 Received: from SN7PR11MB7019.namprd11.prod.outlook.com (2603:10b6:806:2ae::22) by SN7PR11MB6922.namprd11.prod.outlook.com (2603:10b6:806:2a9::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.17; Mon, 19 Sep 2022 08:09:57 +0000 Received: from SN7PR11MB7019.namprd11.prod.outlook.com ([fe80::a0bf:a414:d7a6:8117]) by SN7PR11MB7019.namprd11.prod.outlook.com ([fe80::a0bf:a414:d7a6:8117%7]) with mapi id 15.20.5632.019; Mon, 19 Sep 2022 08:09:57 +0000 From: "Jiang, Cheng1" To: =?iso-8859-1?Q?Morten_Br=F8rup?= , "thomas@monjalon.net" , "Richardson, Bruce" CC: "dev@dpdk.org" , "Hu, Jiayu" , "Ding, Xuan" , "Ma, WenwuX" , "Wang, YuanX" , "Yang, YvonneX" , "He, Xingguang" Subject: RE: [RFC] app/dma-perf: introduce dma-perf application Thread-Topic: [RFC] app/dma-perf: introduce dma-perf application Thread-Index: AQHYyR9m6dMSM9nf90CVSj5gPOh1rK3hq8mAgAS013A= Date: Mon, 19 Sep 2022 08:09:57 +0000 Message-ID: References: <20220915154758.688-1-cheng1.jiang@intel.com> <98CBD80474FA8B44BF855DF32C47DC35D8731D@smartserver.smartshare.dk> In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35D8731D@smartserver.smartshare.dk> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.500.17 dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN7PR11MB7019:EE_|SN7PR11MB6922:EE_ x-ms-office365-filtering-correlation-id: 7313fa35-795f-4734-559d-08da9a165789 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: vR5wW3VibTPiL/XZxIWsRLxzfBNwDrNngA4zcxgooluIRrxrjFsE7eqCE1sqfPZLMcmBwl8AlliFGOTtMab65/nX2Rj6aKIis/pwg7pCbhUUnRmVODDEXygPj0G8ooRfsl8aFWjtSCn7hIZtPvZV5ElbQTL7q1mM230gosGoko9cFqEYy1uuucsy9QwvRaNCFbgk2snNWUCVXYPu3DlLoRb20oje+ukv7VLpRlExnXpEwQUGKKPFjD3O+rv1p3Q15kChur3w/n/dhPGIELF6NDQnv60DQkRrHm/bE5KLOK5mCyNAJi4pA/qFfBGgVO2BXTPkBpcccjv4n3hcDcBdxTWMpc6S+uCuvD9e1tvsjMqw0ULhRqhSkPjYJ8tnOSg9iEBeGA5ZkEYKZfsZvvtCs2frrAffuurl828N3F6ckDAWT235TNI6s71Z3ycG/bK4crebv+YL4c7BZfQsa0F+LGw8tz6nK4VCXlccs6mb8jpmn2jEweG07XwStu0Ib/0XUblkrtQqa27NNlPu2Hl53gETOgTgQWQxsNaBePfTvMsPWYtaz9CowzKaVpxqPOouaWnMp5YKbzg2sTSZZYeBe+TqZmRUmcgi7nCAKnyj9xgGWhE/fAZl1NLwhmCNToXVwuHIVpBtrwLf63+02XEeK3o5/Zn/llM6vV7BQ6vVlJf+S6xLZL9zO2VD0d4e+uyKiz8lwZyOPy7CEyaCJryapYcEn7DVA5NqmEh4a6R9/YZrMxM5OyqIpTApK+WDkaJwJ+M/OOwFjeNkp3OngnKjLg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN7PR11MB7019.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(376002)(136003)(366004)(39860400002)(396003)(346002)(451199015)(7696005)(6506007)(41300700001)(9686003)(26005)(107886003)(53546011)(71200400001)(83380400001)(186003)(316002)(6636002)(110136005)(52536014)(54906003)(76116006)(66946007)(8676002)(66476007)(64756008)(66446008)(66556008)(5660300002)(4326008)(8936002)(122000001)(82960400001)(38100700002)(38070700005)(33656002)(55016003)(2906002)(478600001)(86362001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?ekovq4Nt4oreWfvrJr9OsAWvDm1XukaW3OAYeeBXsCxlW6NasCW0f2h+eA?= =?iso-8859-1?Q?3KcsdqiIOgQeoAnuDYH2NkSxRIh1BBdOA98MCA6gmnO+QVbwYZD3WoNn4G?= =?iso-8859-1?Q?h2X5pY6EgPxm6M9KKmD7JCzfaG0CD/2MZWGF2g/hxmvkbql4P0HX+8n9A3?= =?iso-8859-1?Q?iwkDaoZa38mlmo7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iso-8859-1?Q?qhn2o5Sa5vk+fojufey6SyMtpfqCKsey2MWVUr5Pxbn4FFrhycKlefg4OC?= =?iso-8859-1?Q?WyEvoQGgFFTniF4NMQR1L9iybNcEIZsWgkiazB8sH2/B1itsNA/kB0Cnmg?= =?iso-8859-1?Q?1GIYhtk7sJ84YmhUhrQyWO8S7i3WWEsJvuso7urvTaGoImaQGGpKjWcT4w?= =?iso-8859-1?Q?s8E1OQIsxv6A50nt1YqnQ99naBYSnmQfUJZpbEAmiUHgGNRMw5gcUxTqJ2?= =?iso-8859-1?Q?mcTyeq3lnUO9805Zf1sAFpTfjKrSTA8lXvlCCaLeLcvZwckDJcWrESFN5F?= =?iso-8859-1?Q?wTHzet9UdhAnLneRZOehjUcHyjjl8wXE+NULQA6LkT/mA6/XKenqh1FOHt?= =?iso-8859-1?Q?P3J6dREq3ipSmunJ9xkDEIRNDrxVZJo0EKEvO1n4cDAZ3v2mpP3beiClFO?= =?iso-8859-1?Q?kVdqPP+lhIU2IuxOSf53fz29t6s+RxDddrsLrN2UMc7Nfb/DKK+sOdP54o?= =?iso-8859-1?Q?3zldPcP3V0sgsXAX4HDYrWArsSI68ILFE9BOmxNpBIhQv4Tpv0jxs8Fgd5?= =?iso-8859-1?Q?Tfl0Zkw1EmkG/XHde7W0cmngxPXJjVvfXe?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN7PR11MB7019.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7313fa35-795f-4734-559d-08da9a165789 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Sep 2022 08:09:57.4453 (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: U6zXtuP6bwYIkq6x3J68sBeZW8++AY35+k3FKba3FCXqaFA8H+p2qJl6LmR9MmlijP85JHnZ4xOm7RnIPt19aA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR11MB6922 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 Hi, Replies are inline. > -----Original Message----- > From: Morten Br=F8rup > Sent: Friday, September 16, 2022 3:36 PM > To: Jiang, Cheng1 ; thomas@monjalon.net; > Richardson, Bruce > Cc: dev@dpdk.org; Hu, Jiayu ; Ding, Xuan > ; Ma, WenwuX ; Wang, > YuanX ; Yang, YvonneX > ; He, Xingguang > Subject: RE: [RFC] app/dma-perf: introduce dma-perf application >=20 > > From: Cheng Jiang [mailto:cheng1.jiang@intel.com] > > Sent: Thursday, 15 September 2022 17.48 > > > > 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. > > > > 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! Sure, thanks!! >=20 > Is there any reason for making this a separate application, instead of pa= rt of > the /app/test/ application? >=20 > NB: Someone could have asked the same question about test-compress-dev > and similar applications... ;-) First of all, this application is specifically used to test the performance= of DMA device, and does not involve functional testing. So I'm not sure whether it is suitable for the app/test. Secondly, the configuration and switching of many test scenarios are involv= ed here, so we think it may be a more appropriate to be an independent appl= ication. >=20 > Acked-by: Morten Br=F8rup Thanks for your acknowledgement. Cheng