]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit029e1ea65e37fd26c22012bf8828ab540e108767
treef9bef76d0753513fc2b7666c2b0bf43f68723194
parent22ac5ad4a7d4e201d19b7f04ce8d79346c80a34b
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]