[dpdk-dev] Random numbers at line-rate

2014-07-21 Thread Neil Horman
On Mon, Jul 21, 2014 at 01:43:50PM -0700, Stephen Hemminger wrote: > On Mon, 21 Jul 2014 15:54:15 -0400 > Neil Horman wrote: > > > On Mon, Jul 21, 2014 at 09:24:36PM +0200, Chris Pappas wrote: > > > Hi, > > > > > > I need to generate a random number per packet and I used the rte_fast_rand > > >

[dpdk-dev] Random numbers at line-rate

2014-07-21 Thread Chris Pappas
Hi, I need to generate a random number per packet and I used the rte_fast_rand function to do so. When I run the code for one port-core I get almost line-rate performance. However, running simultaneously on multiple cores degrades performance significantly. (in all cases I uses minimum-sized packe

[dpdk-dev] Random numbers at line-rate

2014-07-21 Thread Neil Horman
On Mon, Jul 21, 2014 at 09:24:36PM +0200, Chris Pappas wrote: > Hi, > > I need to generate a random number per packet and I used the rte_fast_rand > function to do so. When I run the code for one port-core I get almost > line-rate performance. However, running simultaneously on multiple cores > de

[dpdk-dev] Random numbers at line-rate

2014-07-21 Thread Stephen Hemminger
On Mon, 21 Jul 2014 15:54:15 -0400 Neil Horman wrote: > On Mon, Jul 21, 2014 at 09:24:36PM +0200, Chris Pappas wrote: > > Hi, > > > > I need to generate a random number per packet and I used the rte_fast_rand > > function to do so. When I run the code for one port-core I get almost > > line-rate