dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
* Random numbers at line-rate
@ 2014-07-21 19:24 Chris Pappas
       [not found] ` <CAE4G5iryAeKytnVLvpFoL7CmrnXxo_Gw0cmwOaAzNvvagr3QEg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Pappas @ 2014-07-21 19:24 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

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
packets).

Shouldn't the implementation scale for multicore and not degrade
performance or am I missing anything? Also, is there another recommendation
for generating randomness at line-rate? (the cpu does not support rdrand).

Best regards,
Chris

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-22  1:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-21 19:24 Random numbers at line-rate Chris Pappas
     [not found] ` <CAE4G5iryAeKytnVLvpFoL7CmrnXxo_Gw0cmwOaAzNvvagr3QEg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-21 19:54   ` Neil Horman
     [not found]     ` <20140721195415.GA25740-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2014-07-21 20:43       ` Stephen Hemminger
2014-07-22  1:24         ` Neil Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).