From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Pappas Subject: Random numbers at line-rate Date: Mon, 21 Jul 2014 21:24:36 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 To: dev-VfR2kkLFssw@public.gmane.org Return-path: 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" 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