]> git.baikalelectronics.ru Git - kernel.git/commit
samples/pktgen: add script pktgen_sample06_numa_awared_queue_irq_affinity.sh
authorRobert Hoo <robert.hu@intel.com>
Wed, 1 Nov 2017 10:41:14 +0000 (11:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2017 05:19:53 +0000 (14:19 +0900)
commitf9b9e6a06b9ffa874c18fe804cf72be6ceb84d1c
treef9bef76d0753513fc2b7666c2b0bf43f68723194
parent22c5a4003bcdcf915f0b7a5208407b9929f9a217
samples/pktgen: add script pktgen_sample06_numa_awared_queue_irq_affinity.sh

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' designates first cpu id, then offset in the NUMA node's cpu list.

(Changes by Jesper: allow changing count from cmdline via '-n')

Signed-off-by: Robert Hoo <robert.hu@intel.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/pktgen/pktgen_sample06_numa_awared_queue_irq_affinity.sh [new file with mode: 0755]