From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 2AC971E353 for ; Thu, 14 Jun 2018 13:26:21 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jun 2018 04:26:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,222,1526367600"; d="scan'208";a="57301577" Received: from irsmsx102.ger.corp.intel.com ([163.33.3.155]) by fmsmga002.fm.intel.com with ESMTP; 14 Jun 2018 04:26:19 -0700 Received: from irsmsx112.ger.corp.intel.com (10.108.20.5) by IRSMSX102.ger.corp.intel.com (163.33.3.155) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 14 Jun 2018 12:26:18 +0100 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.139]) by irsmsx112.ger.corp.intel.com ([169.254.1.22]) with mapi id 14.03.0319.002; Thu, 14 Jun 2018 12:26:18 +0100 From: "Iremonger, Bernard" To: Jens Freimann , "dev@dpdk.org" CC: "ailan@redhat.com" , "jan.scheurich@ericsson.com" , "vkaplans@redhat.com" , "Richardson, Bruce" , "thomas@monjalon.net" , "maxime.coquelin@redhat.com" , "Ananyev, Konstantin" , "Yigit, Ferruh" Thread-Topic: [dpdk-dev] [PATCH v2 1/2] testpmd: add forwarding mode to simulate a noisy neighbour Thread-Index: AQHT0xvgOcWHDQtIVUa6wUIannvvXKRf/j2g Date: Thu, 14 Jun 2018 11:26:17 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C260CB361C@IRSMSX108.ger.corp.intel.com> References: <20180413113716.27968-1-jfreimann@redhat.com> <20180413113716.27968-2-jfreimann@redhat.com> In-Reply-To: <20180413113716.27968-2-jfreimann@redhat.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMDE3NTY3YmUtMWI2Zi00MmFkLTk0ZDgtNmJlZWIyZDc1NzcyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUmFwWkRTRXF3SmFtRFVFM1wvQkZmUDVpTHlEb1wvbExyN3NldkgxTllBY3IwVERXMEZFeG12d1ptMm45UjZDaHdZIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2 1/2] testpmd: add forwarding mode to simulate a noisy neighbour X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2018 11:26:22 -0000 Hi Jens, > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jens Freimann > Sent: Friday, April 13, 2018 12:37 PM > To: dev@dpdk.org > Cc: ailan@redhat.com; jan.scheurich@ericsson.com; vkaplans@redhat.com; > Richardson, Bruce ; thomas@monjalon.net; > maxime.coquelin@redhat.com; Ananyev, Konstantin > ; Yigit, Ferruh > Subject: [dpdk-dev] [PATCH v2 1/2] testpmd: add forwarding mode to > simulate a noisy neighbour >=20 > This adds a new forwarding mode to testpmd to simulate more realistic > behavior of a guest machine engaged in receiving and sending packets > performing Virtual Network Function (VNF). >=20 > The goal is to enable a simple way of measuring performance impact on > cache and memory footprint utilization from various VNF co-located on the > same host machine. For this it does: >=20 > * Buffer packets in a FIFO: >=20 > Create a fifo to buffer received packets. Once it flows over put those pa= ckets > into the actual tx queue. The fifo is created per tx queue and its size c= an be > set with the --buffersize-before-sending commandline parameter. >=20 > A second commandline parameter is used to set a timeout in milliseconds > after which the fifo is flushed. >=20 > --buffersize-before-sending [packet numbers] Keep the mbuf in a FIFO and > forward the over flooding packets from the FIFO. This queue is per TX-que= ue > (after all other packet processing). >=20 > --flush-timeout [delay] > Flush the packet queue if no packets have been seen during [delay]. As lo= ng > as packets are seen, the timer is reset. >=20 > Add several options to simulate route lookups (memory reads) in tables th= at > can be quite large, as well as route hit statistics update. > These options simulates the while stack traversal and will trash the cach= e. > Memory access is random. >=20 > * simulate route lookups: >=20 > Allocate a buffer and perform reads and writes on it as specified by > commandline options: >=20 > --memory-footprint [size] > Size of the VNF internal memory (MB), in which the random read/write will > be done, allocated by rte_malloc (hugepages). >=20 > --nb-rnd-write [num] > Number of random writes in memory per packet should be performed, > simulating hit-flags update. 64 bits per write, all write in different ca= che lines. >=20 > --nb-rnd-read [num] > Number of random reads in memory per packet should be performed, > simulating FIB/table lookups. 64 bits per read, all write in different ca= che > lines. >=20 > --nb-rnd-read-write [num] > Number of random reads and writes in memory per packet should be > performed, simulating stats update. 64 bits per read-write, all reads and > writes in different cache lines. >=20 > Signed-off-by: Jens Freimann > --- This patch fails to apply to dpdk_18.08.rc0 checkpatch.pl reports 1 error. Regards, Bernard.