[pktgen script v2 1/2] Add some helper functions

2017-09-17 Thread Robert Hoo
From: Robert Hoo 1. given a device, get its NUMA belongings 2. given a device, get its queues' irq numbers. 3. given a NUMA node, get its cpu id list. Signed-off-by: Robert Hoo --- pktgen/functions.sh | 44 1 file changed, 44 insertions(+)

[pktgen script v2 2/2] Add pktgen script: pktgen_sample06_numa_awared_queue_irq_affinity.sh

2017-09-17 Thread Robert Hoo
From: Robert Hoo This script simply does: Detect $DEV's NUMA node belonging. Bind each thread (processor of NUMA locality) with each $DEV queue's irq affinity, 1:1 mapping. How many '-t' threads input determines how many queues will be utilized. If '-f' designate

[pktgen script v2 0/2] Add a pktgen sample script of NUMA awareness

2017-09-17 Thread Robert Hoo
From: Robert Hoo It's hard to benchmark 40G+ network bandwidth using ordinary tools like iperf, netperf (see reference 1). Pktgen, packet generator from Kernel sapce, shall be a candidate. I derived this NUMA awared irq affinity sample script from multi-queue sample02, successfully benchm

Re: [PATCH] pktgen: add a new sample script for 40G and above link testing

2017-09-01 Thread Robert Hoo
On Fri, 2017-08-25 at 14:24 +, Waskiewicz Jr, Peter wrote: > On 8/25/17 5:19 AM, Jesper Dangaard Brouer wrote: > >> > >> Tested with Intel XL710 NIC with Cisco 3172 switch. > >> > >> It would be even slightly better if the irqbalance service is turned > >> off outside. > > > > Yes, if you don'

Re: [PATCH] pktgen: add a new sample script for 40G and above link testing

2017-09-01 Thread Robert Hoo
On Sun, 2017-08-27 at 11:25 +0300, Tariq Toukan wrote: > > On 25/08/2017 12:26 PM, Robert Hoo wrote: > > (Sorry for yesterday's wrong sending, I finally fixed my MTA and git > > send-email settings.) > > > > It's hard to benchmark 40G+ network bandw

Re: [PATCH] pktgen: add a new sample script for 40G and above link testing

2017-09-01 Thread Robert Hoo
On Fri, 2017-08-25 at 11:19 +0200, Jesper Dangaard Brouer wrote: > (please don't use BCC on the netdev list, replies might miss the list in cc) > > Comments inlined below: > > On Fri, 25 Aug 2017 10:24:30 +0800 Robert Hoo wrote: > > > From: Robert Ho > &

[PATCH] pktgen: add a new sample script for 40G and above link testing

2017-08-25 Thread Robert Hoo
ould be even slightly better if the irqbalance service is turned off outside. Referrences: https://people.netfilter.org/hawk/presentations/LCA2015/net_stack_challenges_100G_LCA2015.pdf http://www.intel.cn/content/dam/www/public/us/en/documents/reference-guides/xl710-x710-performance-tuning-linux-g

[PATCH] pktgen: add a new sample script for 40G and above link testing

2017-08-24 Thread Robert Hoo
allenges_100G_LCA2015.pdf http://www.intel.cn/content/dam/www/public/us/en/documents/reference-guides/xl710-x710-performance-tuning-linux-guide.pdf Signed-off-by: Robert Hoo --- ...tgen_sample06_numa_awared_queue_irq_affinity.sh | 132 + 1 file changed, 132 insertions(+) crea