From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 68AE51E34B for ; Thu, 14 Jun 2018 13:24:14 +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 orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jun 2018 04:24:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,222,1526367600"; d="scan'208";a="57300889" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by fmsmga002.fm.intel.com with ESMTP; 14 Jun 2018 04:24:11 -0700 Received: from irsmsx156.ger.corp.intel.com (10.108.20.68) by IRSMSX154.ger.corp.intel.com (163.33.192.96) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 14 Jun 2018 12:24:04 +0100 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.139]) by IRSMSX156.ger.corp.intel.com ([169.254.3.252]) with mapi id 14.03.0319.002; Thu, 14 Jun 2018 12:24:04 +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 1/2] testpmd: add forwarding mode to simulate a noisy neighbour Thread-Index: AQHT16wiQK5sZcN6BEGCUJGdT0KWZaRf8/6g Date: Thu, 14 Jun 2018 11:24:03 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C260CB3607@IRSMSX108.ger.corp.intel.com> References: <20180419065936.7288-1-jfreimann@redhat.com> <20180419065936.7288-2-jfreimann@redhat.com> In-Reply-To: <20180419065936.7288-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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMGUxNTIxN2MtNTEzMC00ZjNlLTg3ZTgtNDI3MGIyN2UzZGUzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiYXF0aHVqazd2SndjejVQRnVsM243UGdvdzdBbDJLU1VEejBLN1JraGJhaWEzN1pYU0RnTGMybEJjdUwxTnpFaiJ9 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 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:24:15 -0000 Hi Jens, > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jens Freimann > Sent: Thursday, April 19, 2018 8:00 AM > 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 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 > --noisy-buffersize-before-sending [packet numbers] Keep the mbuf in a > FIFO and forward the over flooding packets from the FIFO. This queue is p= er > TX-queue (after all other packet processing). >=20 > --noisy-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 > --noisy-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 > --noisy-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 > --noisy-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 > --noisy-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 7 errors and 15 warnings. Regards, Bernard.