From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Iremonger, Bernard" Subject: Re: [PATCH 1/2] testpmd: add forwarding mode to simulate a noisy neighbour 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "ailan@redhat.com" , "jan.scheurich@ericsson.com" , "vkaplans@redhat.com" , "Richardson, Bruce" , "thomas@monjalon.net" , "maxime.coquelin@redhat.com" , "Ananyev, Konstantin" , "Yigit, Ferruh" To: Jens Freimann , "dev@dpdk.org" 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) In-Reply-To: <20180419065936.7288-2-jfreimann@redhat.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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.