From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Wiles, Keith" Subject: Re: [PATCH] examples: new txburst application Date: Sat, 31 Jan 2015 23:47:23 +0000 Message-ID: References: <1416335575-30717-1-git-send-email-bhavesh@vmware.com> <25405198.KkrSSHtStQ@xps13> <72e5096b3711419f93a9161a20c9fa11@EX13-MBX-025.vmware.com> <3621315.EODueA6DKm@xps13> <3AD66C8B-4AF4-494C-8CDE-85DFFDE16C15@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: "dev-VfR2kkLFssw@public.gmane.org" To: "Wiles, Keith" , Bhavesh Davda Return-path: In-Reply-To: <3AD66C8B-4AF4-494C-8CDE-85DFFDE16C15-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Content-Language: en-US Content-ID: <080EEE3E5C1F3949A19EE2B7012EAA9F-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" On 1/30/15, 1:45 PM, "Wiles, Keith" wrote: > > >Sent from my iPhone > >On Jan 30, 2015, at 9:49 AM, Bhavesh Davda wrote: > >>> Did you know pktgen-dpdk? >>> http://dpdk.org/browse/apps/pktgen-dpdk/tree/README.md >>>=20 >>> Do you think it could replace your application? >>=20 >> [Bhavesh Davda] Yes, I regularly use pktgen-dpdk, and love the app >>(thanks Keith!) but I couldn't quite get it to do this simplistic job of >>generating a stream of X-byte UDP packets in burst of Y spread apart by >>Z microseconds. > >Hmmm, sounds like an enhancement request to pktgen is needed here. I will >look at adding it to pktgen and it is up to everyone if the example is >reasonable to have. For me it does seem reasonable to include as it maybe >simpler to setup, but if and when I can add that support to pktgen it may >no longer be needed. > >Let me have a look at adding the support and will let you guys know next >week. Looking at the txburst code and your description needing to send a burst of 220 byte UDP packets with an interval of 50us is mostly doable via Pktgen. In Pktgen you can setup a packet 220+UDP+other parameters already in single packet mode or sequence mode. You can set the rate at a given percentage per second of packets, but you can not set the interval rate between burst easily. The number of packets in a burst is also adjustable via the burst command =B9set burst '. Did I describe the problem here correctly? The current percentage rate is in whole numbers in Pktgen may not be fine enough gain rate for some tests. I do have in Pktgen a way to adjust the time between burst of packets using a debug command to fine tune the number of clock ticks (HPET) to a given number =B9set tx_cycles ', would that command be useful and solve your given test case? The tx_cycles option is not listed in the help text :-) Maybe I should make it not hidden. > >Thanks Keith