Af_packet + RSS, some workers doing nothing / not loaded

hello,

I am having Suricata as IDS on passive optical TAP, where incoming traffic to my network is copied to interface enp3s0f0 and outgoing traffic from my network is copied to enp130s0f0.

Server running Suricata has two sockets each with 14cores 2 threads CPUs:

root@hadar:/usr/local/bin# cat /sys/devices/system/node/node0/cpulist
0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54
root@hadar:/usr/local/bin# cat /sys/devices/system/node/node1/cpulist
1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55

Each used NIC is connected to one of two sockets:

root@hadar:/usr/local/bin# cat /sys/class/net/enp3s0f0/device/numa_node
0
root@hadar:/usr/local/bin# cat /sys/class/net/enp130s0f0/device/numa_node
1

All CPU except both threads of the first CPU on both NUMAs (0,28,1,29) are disabled for system use by kernel params in grub.

nohz_full=2-27,30-55 isolcpus=2-27,30-55 rcu_nocbs=2-27,30-55

I am using RSS to steer incoming traffic into 26 queues per NIC, these queue are pinned by CPU SMP affinity to corresponding reserved cores. I can see in top sirq load being equally spread across the selected cores and also /proc/interrupts corresponds to the set RSS / affinity.

to set NIC I am calling following script:

suricata_interface.sh enp3s0f0 26 '2,4,6,8,10,12,14,16,18,20,22,24,26,30,32,34,36,38,40,42,44,46,48,50,52,54'
suricata_interface.sh enp130s0f0 26 '3,5,7,9,11,13,15,17,19,21,23,25,27,31,33,35,37,39,41,43,45,47,49,51,53,55'
#!/bin/bash

DEV=$1
CORE_NUM=$2
CORE_LIST=$3

#rmmod i40e && modprobe i40e

ip link set $DEV down

ethtool -L $DEV combined $CORE_NUM

ethtool -K $DEV rxhash on

ethtool -K $DEV ntuple on

#link up and sisable arp on TAP interface
ip link set $DEV promisc on arp off up

#disable autonegotiation for TAP interface
ethtool -A $DEV autoneg off

#disable pause frames
ethtool -A $DEV rx off tx off

#set RSS CPU affinity
/usr/local/bin/set_irq_affinity.sh $CORE_LIST $DEV

#set RSS symetric hashing key
ethtool -X $DEV hkey 6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A equal $CORE_NUM

#set RSS hash function to Toeplitz
ethtool -X $DEV hfunc toeplitz

#Manage interrupts
ethtool -C $DEV adaptive-rx off adaptive-tx off rx-usecs 125

#Lower the NIC ring descriptor size
ethtool -G $DEV rx 512

#disable NIC offloading
for offload in rx tx tso ufo gso gro lro tx-nocache-copy sg txvlan rxvlan; do
   /sbin/ethtool -K $DEV $offload off 2>&1 > /dev/null;
done

#set hashing tuple - sd (src IP, dst IP), sdfn (src IP, dst IP, src port, dst port)
for proto in tcp4 udp4 ah4 esp4 sctp4 tcp6 udp6 ah6 esp6 sctp6; do
   /sbin/ethtool -N $DEV rx-flow-hash $proto sd 2>&1 > /dev/null;

I configured Suricata 5.0.3 as IDS, af_packet, workers.

  - interface: enp3s0f0
    threads: 26
    cluster-id: 99
    cluster-type: cluster_qm
    defrag: yes
    use-mmap: yes
    mmap-locked: yes
    tpacket-v3: yes
    ring-size: 200000
    block-size: 1048576
  - interface: enp130s0f0
    threads: 26
    cluster-id: 98
    cluster-type: cluster_qm
    defrag: yes
    use-mmap: yes
    mmap-locked: yes
    tpacket-v3: yes
    ring-size: 200000
    block-size: 1048576
threading:
  set-cpu-affinity: yes
  # Tune cpu affinity of threads. Each family of threads can be bound
  # on specific CPUs.
  #
  # These 2 apply to the all runmodes:
  # management-cpu-set is used for flow timeout handling, counters
  # worker-cpu-set is used for 'worker' threads
  #
  # Additionally, for autofp these apply:
  # receive-cpu-set is used for capture threads
  # verdict-cpu-set is used for IPS verdict threads
  #
  cpu-affinity:
    - management-cpu-set:
        cpu: [ 0, 1 ]  # include only these CPUs in affinity settings
        mode: "balanced"
        prio:
          default: "medium"
    #- receive-cpu-set:
    #    cpu: [ 0 ]  # include only these CPUs in affinity settings
    - worker-cpu-set:
        cpu: [ "2","4","6","8","10","12","14","16","18","20","22","24","26","30","32","34","36","38","40","42","44","46","48","50","52","54","3","5","7","9","11","13","15","17","19","21","23","25","27","31","33","35","37","39","41","43","45","47","49","51","53","55" ]
        mode: "exclusive"
        # Use explicitely 3 threads and don't compute number by using
        # detect-thread-ratio variable:
        # threads: 3
        threads: 52
        prio:
        #  low: [ 0 ]
        #  medium: [ "1-2" ]
        #  high: [ 3 ]
          default: "high"
    #- verdict-cpu-set:
    #    cpu: [ 0 ]
    #    prio:
    #      default: "high"

As you can see, two clusters are created (each for one NIC), each shall be given 26 worker threads, which shall correspond to available cores on one NUMA (sockets) which is connected to the same NIC.

Suricata could start and I can see all expected threads are running:

root@hadar:/etc/suricata# ps -T -p 1545
  PID  SPID TTY          TIME CMD
 1545  1545 ?        00:00:26 Suricata-Main
 1545  1547 ?        01:35:06 W#01-enp3s0f0
 1545  1548 ?        01:39:31 W#02-enp3s0f0
 1545  1549 ?        01:35:11 W#03-enp3s0f0
 1545  1550 ?        01:32:43 W#04-enp3s0f0
 1545  1551 ?        01:40:19 W#05-enp3s0f0
 1545  1552 ?        01:37:15 W#06-enp3s0f0
 1545  1553 ?        01:31:10 W#07-enp3s0f0
 1545  1554 ?        01:45:21 W#08-enp3s0f0
 1545  1555 ?        01:41:50 W#09-enp3s0f0
 1545  1556 ?        01:35:02 W#10-enp3s0f0
 1545  1557 ?        01:37:18 W#11-enp3s0f0
 1545  1558 ?        01:37:42 W#12-enp3s0f0
 1545  1559 ?        01:33:30 W#13-enp3s0f0
 1545  1560 ?        01:37:07 W#14-enp3s0f0
 1545  1561 ?        01:39:57 W#15-enp3s0f0
 1545  1562 ?        01:33:36 W#16-enp3s0f0
 1545  1563 ?        01:34:50 W#17-enp3s0f0
 1545  1564 ?        01:31:02 W#18-enp3s0f0
 1545  1565 ?        01:30:30 W#19-enp3s0f0
 1545  1566 ?        01:40:07 W#20-enp3s0f0
 1545  1567 ?        01:33:19 W#21-enp3s0f0
 1545  1568 ?        01:42:29 W#22-enp3s0f0
 1545  1569 ?        01:38:14 W#23-enp3s0f0
 1545  1570 ?        01:39:29 W#24-enp3s0f0
 1545  1571 ?        01:36:19 W#25-enp3s0f0
 1545  1572 ?        01:39:14 W#26-enp3s0f0
 1545  1573 ?        00:04:57 W#01-enp130s0f0
 1545  1574 ?        00:06:10 W#02-enp130s0f0
 1545  1575 ?        00:04:35 W#03-enp130s0f0
 1545  1576 ?        00:04:23 W#04-enp130s0f0
 1545  1577 ?        00:04:06 W#05-enp130s0f0
 1545  1578 ?        00:04:57 W#06-enp130s0f0
 1545  1579 ?        00:04:47 W#07-enp130s0f0
 1545  1580 ?        00:05:38 W#08-enp130s0f0
 1545  1581 ?        00:05:37 W#09-enp130s0f0
 1545  1582 ?        00:04:36 W#10-enp130s0f0
 1545  1583 ?        00:04:38 W#11-enp130s0f0
 1545  1584 ?        00:05:12 W#12-enp130s0f0
 1545  1585 ?        00:04:41 W#13-enp130s0f0
 1545  1586 ?        00:04:59 W#14-enp130s0f0
 1545  1587 ?        00:06:56 W#15-enp130s0f0
 1545  1588 ?        00:04:36 W#16-enp130s0f0
 1545  1589 ?        00:05:16 W#17-enp130s0f0
 1545  1590 ?        00:04:11 W#18-enp130s0f0
 1545  1591 ?        00:04:56 W#19-enp130s0f0
 1545  1592 ?        00:04:20 W#20-enp130s0f0
 1545  1593 ?        00:04:57 W#21-enp130s0f0
 1545  1594 ?        00:04:20 W#22-enp130s0f0
 1545  1595 ?        00:05:46 W#23-enp130s0f0
 1545  1596 ?        00:04:13 W#24-enp130s0f0
 1545  1597 ?        00:05:30 W#25-enp130s0f0
 1545  1598 ?        00:03:52 W#26-enp130s0f0
 1545  1599 ?        00:01:33 FM#01
 1545  1600 ?        00:01:53 FR#01
 1545  1601 ?        00:00:00 CW
 1545  1602 ?        00:00:02 CS
 1545  1603 ?        00:00:00 US

The issue:

workers thread on some cores seesm to do nothing - see result of top bellow

You can see cores 0,1,28,29 not doing much as these are reserved for OS + suricata management threads, but you would expect rest of the cores to be loaded heavily by suricata workers threads. Unfortunatelly cores 30-55 are idling.

top - 21:43:04 up  2:40,  1 user,  load average: 17.89, 18.27, 18.54
Tasks: 430 total,   1 running, 429 sleeping,   0 stopped,   0 zombie
%Cpu0  :  1.0 us,  0.0 sy,  0.0 ni, 99.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu1  :  1.3 us,  0.3 sy,  0.0 ni, 98.3 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu2  : 39.2 us,  0.0 sy,  0.0 ni, 58.2 id,  0.0 wa,  0.0 hi,  2.6 si,  0.0 st
%Cpu3  : 55.2 us,  0.0 sy,  0.0 ni, 43.0 id,  0.0 wa,  0.0 hi,  1.8 si,  0.0 st
%Cpu4  : 42.0 us,  0.0 sy,  0.0 ni, 55.5 id,  0.0 wa,  0.0 hi,  2.6 si,  0.0 st
%Cpu5  : 99.7 us,  0.0 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  0.3 si,  0.0 st
%Cpu6  : 96.7 us,  0.0 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  3.3 si,  0.0 st
%Cpu7  : 64.9 us,  0.4 sy,  0.0 ni, 33.7 id,  0.0 wa,  0.0 hi,  1.1 si,  0.0 st
%Cpu8  : 74.9 us,  0.0 sy,  0.0 ni, 22.0 id,  0.0 wa,  0.0 hi,  3.1 si,  0.0 st
%Cpu9  : 75.3 us,  0.0 sy,  0.0 ni, 24.0 id,  0.0 wa,  0.0 hi,  0.7 si,  0.0 st
%Cpu10 : 60.8 us,  0.0 sy,  0.0 ni, 34.6 id,  0.0 wa,  0.0 hi,  4.5 si,  0.0 st
%Cpu11 : 76.0 us,  0.0 sy,  0.0 ni, 23.6 id,  0.0 wa,  0.0 hi,  0.3 si,  0.0 st
%Cpu12 : 79.5 us,  0.0 sy,  0.0 ni, 17.8 id,  0.0 wa,  0.0 hi,  2.7 si,  0.0 st
%Cpu13 : 40.0 us,  0.0 sy,  0.0 ni, 59.6 id,  0.0 wa,  0.0 hi,  0.4 si,  0.0 st
%Cpu14 : 81.2 us,  0.0 sy,  0.0 ni, 17.5 id,  0.0 wa,  0.0 hi,  1.4 si,  0.0 st
%Cpu15 : 65.8 us,  0.0 sy,  0.0 ni, 33.8 id,  0.0 wa,  0.0 hi,  0.4 si,  0.0 st
%Cpu16 : 97.7 us,  0.0 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  2.3 si,  0.0 st
%Cpu17 : 87.7 us,  0.0 sy,  0.0 ni, 12.0 id,  0.0 wa,  0.0 hi,  0.3 si,  0.0 st
%Cpu18 : 78.7 us,  0.0 sy,  0.0 ni, 18.9 id,  0.0 wa,  0.0 hi,  2.4 si,  0.0 st
%Cpu19 : 93.6 us,  0.0 sy,  0.0 ni,  5.4 id,  0.0 wa,  0.0 hi,  1.0 si,  0.0 st
%Cpu20 : 44.7 us,  0.0 sy,  0.0 ni, 51.6 id,  0.0 wa,  0.0 hi,  3.6 si,  0.0 st
%Cpu21 : 96.3 us,  0.0 sy,  0.0 ni,  3.0 id,  0.0 wa,  0.0 hi,  0.7 si,  0.0 st
%Cpu22 : 76.7 us,  0.0 sy,  0.0 ni, 20.5 id,  0.0 wa,  0.0 hi,  2.8 si,  0.0 st
%Cpu23 : 68.1 us,  0.4 sy,  0.0 ni, 31.2 id,  0.0 wa,  0.0 hi,  0.4 si,  0.0 st
%Cpu24 : 56.4 us,  0.0 sy,  0.0 ni, 41.4 id,  0.0 wa,  0.0 hi,  2.1 si,  0.0 st
%Cpu25 : 58.6 us,  0.0 sy,  0.0 ni, 39.9 id,  0.0 wa,  0.0 hi,  1.4 si,  0.0 st
%Cpu26 : 90.8 us,  0.0 sy,  0.0 ni,  6.4 id,  0.0 wa,  0.0 hi,  2.7 si,  0.0 st
%Cpu27 : 98.7 us,  0.0 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  1.3 si,  0.0 st
%Cpu28 :  0.0 us,  0.7 sy,  0.0 ni, 99.3 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu29 :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu30 :  0.7 us,  0.3 sy,  0.0 ni, 96.0 id,  0.0 wa,  0.0 hi,  3.0 si,  0.0 st
%Cpu31 :  1.7 us,  0.0 sy,  0.0 ni, 97.2 id,  0.0 wa,  0.0 hi,  1.0 si,  0.0 st
%Cpu32 :  2.4 us,  0.0 sy,  0.0 ni, 95.3 id,  0.0 wa,  0.0 hi,  2.4 si,  0.0 st
%Cpu33 :  1.3 us,  0.0 sy,  0.0 ni, 98.0 id,  0.0 wa,  0.0 hi,  0.7 si,  0.0 st
%Cpu34 :  0.7 us,  0.0 sy,  0.0 ni, 96.0 id,  0.0 wa,  0.0 hi,  3.4 si,  0.0 st
%Cpu35 :  1.4 us,  0.0 sy,  0.0 ni, 98.6 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu36 :  1.3 us,  0.0 sy,  0.0 ni, 96.3 id,  0.0 wa,  0.0 hi,  2.3 si,  0.0 st
%Cpu37 :  3.7 us,  0.0 sy,  0.0 ni, 95.3 id,  0.0 wa,  0.0 hi,  1.0 si,  0.0 st
%Cpu38 :  1.4 us,  0.0 sy,  0.0 ni, 95.9 id,  0.0 wa,  0.0 hi,  2.7 si,  0.0 st
%Cpu39 :  2.0 us,  0.0 sy,  0.0 ni, 96.6 id,  0.0 wa,  0.0 hi,  1.3 si,  0.0 st
%Cpu40 :  1.7 us,  0.0 sy,  0.0 ni, 94.3 id,  0.0 wa,  0.0 hi,  4.1 si,  0.0 st
%Cpu41 :  1.7 us,  0.0 sy,  0.0 ni, 97.3 id,  0.0 wa,  0.0 hi,  1.0 si,  0.0 st
%Cpu42 :  1.7 us,  0.0 sy,  0.0 ni, 96.3 id,  0.0 wa,  0.0 hi,  2.0 si,  0.0 st
%Cpu43 :  1.7 us,  0.0 sy,  0.0 ni, 97.9 id,  0.0 wa,  0.0 hi,  0.3 si,  0.0 st
%Cpu44 :  1.7 us,  0.0 sy,  0.0 ni, 94.5 id,  0.0 wa,  0.0 hi,  3.8 si,  0.0 st
%Cpu45 :  0.7 us,  0.0 sy,  0.0 ni, 99.0 id,  0.0 wa,  0.0 hi,  0.3 si,  0.0 st
%Cpu46 :  1.7 us,  0.0 sy,  0.0 ni, 95.9 id,  0.0 wa,  0.0 hi,  2.4 si,  0.0 st
%Cpu47 :  1.0 us,  0.3 sy,  0.0 ni, 97.3 id,  0.0 wa,  0.0 hi,  1.3 si,  0.0 st
%Cpu48 :  1.4 us,  0.0 sy,  0.0 ni, 96.6 id,  0.0 wa,  0.0 hi,  2.0 si,  0.0 st
%Cpu49 :  0.7 us,  0.0 sy,  0.0 ni, 99.0 id,  0.0 wa,  0.0 hi,  0.3 si,  0.0 st
%Cpu50 :  0.7 us,  0.0 sy,  0.0 ni, 95.9 id,  0.0 wa,  0.0 hi,  3.4 si,  0.0 st
%Cpu51 :  1.3 us,  0.0 sy,  0.0 ni, 96.6 id,  0.0 wa,  0.0 hi,  2.0 si,  0.0 st
%Cpu52 :  1.7 us,  0.0 sy,  0.0 ni, 95.8 id,  0.0 wa,  0.0 hi,  2.4 si,  0.0 st
%Cpu53 :  0.7 us,  0.0 sy,  0.0 ni, 97.9 id,  0.0 wa,  0.0 hi,  1.4 si,  0.0 st
%Cpu54 :  6.5 us,  0.0 sy,  0.0 ni, 91.5 id,  0.0 wa,  0.0 hi,  2.0 si,  0.0 st
%Cpu55 :  0.7 us,  0.0 sy,  0.0 ni, 98.3 id,  0.0 wa,  0.0 hi,  1.0 si,  0.0 st
MiB Mem : 128835.5 total, 103668.6 free,  24739.8 used,    427.1 buff/cache
MiB Swap:   3815.0 total,   3815.0 free,      0.0 used. 103244.1 avail Mem

I have no idea where is the issue with these CPU not being used by Suricata, any help is apreciated. Thank you.

L.

Can you check if the command

/usr/local/bin/set_irq_affinity.sh $CORE_LIST $DEV

sets up the affinity as expected on all 52 ?

yes, it seems to do:

  • I can see IRQs in /proc/interrupts distributed evenly
  • I can see sirq in top spread per all cores ~evenly

More info:

root@hadar:/etc/suricata# /usr/local/bin/suricata_interface.sh enp3s0f0 26 '2,4,6,8,10,12,14,16,18,20,22,24,26,30,32,34,36,38,40,42,44,46,48,50,52,54'
combined unmodified, ignoring
no channel parameters changed.
current values: rx 0 tx 0 other 1 combined 26
autoneg unmodified, ignoring
no pause parameters changed, aborting
rx unmodified, ignoring
tx unmodified, ignoring
no pause parameters changed, aborting
IFACE CORE MASK -> FILE
=======================
enp3s0f0 2 4 -> /proc/irq/36/smp_affinity
enp3s0f0 4 10 -> /proc/irq/37/smp_affinity
enp3s0f0 6 40 -> /proc/irq/38/smp_affinity
enp3s0f0 8 100 -> /proc/irq/39/smp_affinity
enp3s0f0 10 400 -> /proc/irq/40/smp_affinity
enp3s0f0 12 1000 -> /proc/irq/41/smp_affinity
enp3s0f0 14 4000 -> /proc/irq/42/smp_affinity
enp3s0f0 16 10000 -> /proc/irq/43/smp_affinity
enp3s0f0 18 40000 -> /proc/irq/44/smp_affinity
enp3s0f0 20 100000 -> /proc/irq/45/smp_affinity
enp3s0f0 22 400000 -> /proc/irq/46/smp_affinity
enp3s0f0 24 1000000 -> /proc/irq/47/smp_affinity
enp3s0f0 26 4000000 -> /proc/irq/48/smp_affinity
enp3s0f0 30 40000000 -> /proc/irq/49/smp_affinity
enp3s0f0 32 1,00000000 -> /proc/irq/50/smp_affinity
enp3s0f0 34 4,00000000 -> /proc/irq/51/smp_affinity
enp3s0f0 36 10,00000000 -> /proc/irq/52/smp_affinity
enp3s0f0 38 40,00000000 -> /proc/irq/53/smp_affinity
enp3s0f0 40 100,00000000 -> /proc/irq/54/smp_affinity
enp3s0f0 42 400,00000000 -> /proc/irq/55/smp_affinity
enp3s0f0 44 1000,00000000 -> /proc/irq/56/smp_affinity
enp3s0f0 46 4000,00000000 -> /proc/irq/57/smp_affinity
enp3s0f0 48 10000,00000000 -> /proc/irq/58/smp_affinity
enp3s0f0 50 40000,00000000 -> /proc/irq/59/smp_affinity
enp3s0f0 52 100000,00000000 -> /proc/irq/60/smp_affinity
enp3s0f0 54 400000,00000000 -> /proc/irq/61/smp_affinity
adaptive-rx unmodified, ignoring
adaptive-tx unmodified, ignoring
rx unmodified, ignoring
no ring parameters changed, aborting
Cannot change udp-fragmentation-offload
Cannot change large-receive-offload
root@hadar:/etc/suricata# /usr/local/bin/suricata_interface.sh enp130s0f0 26 '3,5,7,9,11,13,15,17,19,21,23,25,27,31,33,35,37,39,41,43,45,47,49,51,53,55'
combined unmodified, ignoring
no channel parameters changed.
current values: rx 0 tx 0 other 1 combined 26
autoneg unmodified, ignoring
no pause parameters changed, aborting
rx unmodified, ignoring
tx unmodified, ignoring
no pause parameters changed, aborting
IFACE CORE MASK -> FILE
=======================
enp130s0f0 3 8 -> /proc/irq/268/smp_affinity
enp130s0f0 5 20 -> /proc/irq/269/smp_affinity
enp130s0f0 7 80 -> /proc/irq/270/smp_affinity
enp130s0f0 9 200 -> /proc/irq/271/smp_affinity
enp130s0f0 11 800 -> /proc/irq/272/smp_affinity
enp130s0f0 13 2000 -> /proc/irq/273/smp_affinity
enp130s0f0 15 8000 -> /proc/irq/274/smp_affinity
enp130s0f0 17 20000 -> /proc/irq/275/smp_affinity
enp130s0f0 19 80000 -> /proc/irq/276/smp_affinity
enp130s0f0 21 200000 -> /proc/irq/277/smp_affinity
enp130s0f0 23 800000 -> /proc/irq/278/smp_affinity
enp130s0f0 25 2000000 -> /proc/irq/279/smp_affinity
enp130s0f0 27 8000000 -> /proc/irq/280/smp_affinity
enp130s0f0 31 80000000 -> /proc/irq/281/smp_affinity
enp130s0f0 33 2,00000000 -> /proc/irq/282/smp_affinity
enp130s0f0 35 8,00000000 -> /proc/irq/283/smp_affinity
enp130s0f0 37 20,00000000 -> /proc/irq/284/smp_affinity
enp130s0f0 39 80,00000000 -> /proc/irq/285/smp_affinity
enp130s0f0 41 200,00000000 -> /proc/irq/286/smp_affinity
enp130s0f0 43 800,00000000 -> /proc/irq/287/smp_affinity
enp130s0f0 45 2000,00000000 -> /proc/irq/288/smp_affinity
enp130s0f0 47 8000,00000000 -> /proc/irq/289/smp_affinity
enp130s0f0 49 20000,00000000 -> /proc/irq/290/smp_affinity
enp130s0f0 51 80000,00000000 -> /proc/irq/291/smp_affinity
enp130s0f0 53 200000,00000000 -> /proc/irq/292/smp_affinity
enp130s0f0 55 800000,00000000 -> /proc/irq/293/smp_affinity
adaptive-rx unmodified, ignoring
adaptive-tx unmodified, ignoring
rx unmodified, ignoring
no ring parameters changed, aborting
Cannot change udp-fragmentation-offload
Cannot change large-receive-offload

just some random check:

root@hadar:/etc/suricata# cat /proc/irq/293/smp_affinity
800000,00000000

root@hadar:/etc/suricata# cat /proc/irq/61/smp_affinity
400000,00000000

In addition, here is printed Suricata threads affinity:

root@hadar:/etc/suricata# taskset --all-tasks -p 1545
pid 1545's current affinity mask: 30000003
pid 1547's current affinity mask: 4
pid 1548's current affinity mask: 8
pid 1549's current affinity mask: 10
pid 1550's current affinity mask: 20
pid 1551's current affinity mask: 40
pid 1552's current affinity mask: 80
pid 1553's current affinity mask: 100
pid 1554's current affinity mask: 200
pid 1555's current affinity mask: 400
pid 1556's current affinity mask: 800
pid 1557's current affinity mask: 1000
pid 1558's current affinity mask: 2000
pid 1559's current affinity mask: 4000
pid 1560's current affinity mask: 8000
pid 1561's current affinity mask: 10000
pid 1562's current affinity mask: 20000
pid 1563's current affinity mask: 40000
pid 1564's current affinity mask: 80000
pid 1565's current affinity mask: 100000
pid 1566's current affinity mask: 200000
pid 1567's current affinity mask: 400000
pid 1568's current affinity mask: 800000
pid 1569's current affinity mask: 1000000
pid 1570's current affinity mask: 2000000
pid 1571's current affinity mask: 4000000
pid 1572's current affinity mask: 8000000
pid 1573's current affinity mask: 40000000
pid 1574's current affinity mask: 80000000
pid 1575's current affinity mask: 100000000
pid 1576's current affinity mask: 200000000
pid 1577's current affinity mask: 400000000
pid 1578's current affinity mask: 800000000
pid 1579's current affinity mask: 1000000000
pid 1580's current affinity mask: 2000000000
pid 1581's current affinity mask: 4000000000
pid 1582's current affinity mask: 8000000000
pid 1583's current affinity mask: 10000000000
pid 1584's current affinity mask: 20000000000
pid 1585's current affinity mask: 40000000000
pid 1586's current affinity mask: 80000000000
pid 1587's current affinity mask: 100000000000
pid 1588's current affinity mask: 200000000000
pid 1589's current affinity mask: 400000000000
pid 1590's current affinity mask: 800000000000
pid 1591's current affinity mask: 1000000000000
pid 1592's current affinity mask: 2000000000000
pid 1593's current affinity mask: 4000000000000
pid 1594's current affinity mask: 8000000000000
pid 1595's current affinity mask: 10000000000000
pid 1596's current affinity mask: 20000000000000
pid 1597's current affinity mask: 40000000000000
pid 1598's current affinity mask: 80000000000000
pid 1599's current affinity mask: 3
pid 1600's current affinity mask: 3
pid 1601's current affinity mask: 3
pid 1602's current affinity mask: 3
pid 1603's current affinity mask: 3

/proc/interrupts seems to be corresponding to requested affinity: (the small number of interrupts under other CPU seems to be from before was script applied during server startup)

            CPU0       CPU1       CPU2       CPU3       CPU4       CPU5       CPU6       CPU7       CPU8       CPU9       CPU10      CPU11      CPU12      CPU13      CPU14      CPU15      CPU16      CPU17      CPU18      CPU19      CPU20      CPU21      CPU22      CPU23      CPU24      CPU25      CPU26      CPU27      CPU28      CPU29      CPU30      CPU31      CPU32      CPU33      CPU34      CPU35      CPU36      CPU37      CPU38      CPU39      CPU40      CPU41      CPU42      CPU43      CPU44      CPU45      CPU46      CPU47      CPU48      CPU49      CPU50      CPU51      CPU52      CPU53      CPU54      CPU55      

  35:          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572864-edge      i40e-0000:03:00.0:misc
  36:        159          0   72920056          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572865-edge      i40e-enp3s0f0-TxRx-0
  37:          0        266          0          0   72627057          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572866-edge      i40e-enp3s0f0-TxRx-1
  38:          0          0        324          0          0          0   72343385          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572867-edge      i40e-enp3s0f0-TxRx-2
  39:          0          0          0        240          0          0          0          0   72229650          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572868-edge      i40e-enp3s0f0-TxRx-3
  40:          0          0          0          0        254          0          0          0          0          0   71558165          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572869-edge      i40e-enp3s0f0-TxRx-4
  41:          0          0          0          0          0        350          0          0          0          0          0          0   67878012          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572870-edge      i40e-enp3s0f0-TxRx-5
  42:          0          0          0          0          0          0        224          0          0          0          0          0          0          0   71079300          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572871-edge      i40e-enp3s0f0-TxRx-6
  43:          0          0          0          0          0          0          0        287          0          0          0          0          0          0          0          0   77515962          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572872-edge      i40e-enp3s0f0-TxRx-7
  44:          0          0          0          0          0          0          0          0        362          0          0          0          0          0          0          0          0          0   71606009          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572873-edge      i40e-enp3s0f0-TxRx-8
  45:          0          0          0          0          0          0          0          0          0        378          0          0          0          0          0          0          0          0          0          0   74846554          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572874-edge      i40e-enp3s0f0-TxRx-9
  46:          0          0          0          0          0          0          0          0          0          0        298          0          0          0          0          0          0          0          0          0          0          0   74242518          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572875-edge      i40e-enp3s0f0-TxRx-10
  47:          0          0          0          0          0          0          0          0          0          0          0        271          0          0          0          0          0          0          0          0          0          0          0          0   68410761          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572876-edge      i40e-enp3s0f0-TxRx-11
  48:          0          0          0          0          0          0          0          0          0          0          0          0        283          0          0          0          0          0          0          0          0          0          0          0          0          0   75221972          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572877-edge      i40e-enp3s0f0-TxRx-12
  49:          0          0          0          0          0          0          0          0          0          0          0          0          0        348          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   79425825          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572878-edge      i40e-enp3s0f0-TxRx-13
  50:          0          0          0          0          0          0          0          0          0          0          0          0          0          0        339          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   70674026          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572879-edge      i40e-enp3s0f0-TxRx-14
  51:          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0        379          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   71063635          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572880-edge      i40e-enp3s0f0-TxRx-15
  52:          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0        403          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   65989252          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572881-edge      i40e-enp3s0f0-TxRx-16
  53:          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0        389          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   73015301          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0   PCI-MSI 1572882-edge      i40e-enp3s0f0-TxRx-17
  54:          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0        401          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   69868262          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0   PCI-MSI 1572883-edge      i40e-enp3s0f0-TxRx-18
  55:          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0        387          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   67281970          0          0          0          0          0          0          0          1          0          0          0          0          0   PCI-MSI 1572884-edge      i40e-enp3s0f0-TxRx-19
  56:          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0        524          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   70067625          0          0          0          0          0          0          0          1          0          0          0   PCI-MSI 1572885-edge      i40e-enp3s0f0-TxRx-20
  57:          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0        303          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   71882690          0          0          0          0          0          0          0          1          0   PCI-MSI 1572886-edge      i40e-enp3s0f0-TxRx-21
  58:          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0        559          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   76691119          0          0          0          0          0          0          0   PCI-MSI 1572887-edge      i40e-enp3s0f0-TxRx-22
  59:          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0        538          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   70633733          0          0          0          0          0   PCI-MSI 1572888-edge      i40e-enp3s0f0-TxRx-23
  60:          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0        612          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   71372819          0          0          0   PCI-MSI 1572889-edge      i40e-enp3s0f0-TxRx-24
  61:          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0        427          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   71198742          0   PCI-MSI 1572890-edge      i40e-enp3s0f0-TxRx-25
  92:          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 1572921-edge      i40e-0000:03:00.0:fdir-TxRx-

need to split because of message length limitation:

            CPU0       CPU1       CPU2       CPU3       CPU4       CPU5       CPU6       CPU7       CPU8       CPU9       CPU10      CPU11      CPU12      CPU13      CPU14      CPU15      CPU16      CPU17      CPU18      CPU19      CPU20      CPU21      CPU22      CPU23      CPU24      CPU25      CPU26      CPU27      CPU28      CPU29      CPU30      CPU31      CPU32      CPU33      CPU34      CPU35      CPU36      CPU37      CPU38      CPU39      CPU40      CPU41      CPU42      CPU43      CPU44      CPU45      CPU46      CPU47      CPU48      CPU49      CPU50      CPU51      CPU52      CPU53      CPU54      CPU55      



 267:          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68157440-edge      i40e-0000:82:00.0:misc
 268:        170          0          0   70073245          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68157441-edge      i40e-enp130s0f0-TxRx-0
 269:          0        135          0          0          0   40455488          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68157442-edge      i40e-enp130s0f0-TxRx-1
 270:          0          0        123          0          0          0          0   39694433          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68157443-edge      i40e-enp130s0f0-TxRx-2
 271:          0          0          0        151          0          0          0          0          0   40000109          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68157444-edge      i40e-enp130s0f0-TxRx-3
 272:          0          0          0          0        165          0          0          0          0          0          0   43437116          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68157445-edge      i40e-enp130s0f0-TxRx-4
 273:          0          0          0          0          0        132          0          0          0          0          0          0          0   38375171          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68157446-edge      i40e-enp130s0f0-TxRx-5
 274:          0          0          0          0          0          0        149          0          0          0          0          0          0          0          0   46957916          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68157447-edge      i40e-enp130s0f0-TxRx-6
 275:          0          0          0          0          0          0          0        176          0          0          0          0          0          0          0          0          0   43369431          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68157448-edge      i40e-enp130s0f0-TxRx-7
 276:          0          0          0          0          0          0          0          0        184          0          0          0          0          0          0          0          0          0          0   40607764          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68157449-edge      i40e-enp130s0f0-TxRx-8
 277:          0          0          0          0          0          0          0          0          0        160          0          0          0          0          0          0          0          0          0          0          0   40830290          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0   PCI-MSI 68157450-edge      i40e-enp130s0f0-TxRx-9
 278:          0          0          0          0          0          0          0          0          0          0        238          0          0          0          0          0          0          0          0          0          0          0          0   41639506          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0   PCI-MSI 68157451-edge      i40e-enp130s0f0-TxRx-10
 279:          0          0          0          0          0          0          0          0          0          0          0        144          0          0          0          0          0          0          0          0          0          0          0          0          0   38590095          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0          0   PCI-MSI 68157452-edge      i40e-enp130s0f0-TxRx-11
 280:          0          0          0          0          0          0          0          0          0          0          0          0        244          0          0          0          0          0          0          0          0          0          0          0          0          0          0   42474699          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0   PCI-MSI 68157453-edge      i40e-enp130s0f0-TxRx-12
 281:          0          0          0          0          0          0          0          0          0          0          0          0          0        236          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   47399907          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1   PCI-MSI 68157454-edge      i40e-enp130s0f0-TxRx-13
 282:          0          1          0          0          0          0          0          0          0          0          0          0          0          0        223          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   39550919          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68157455-edge      i40e-enp130s0f0-TxRx-14
 283:          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0        187          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   41612472          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68157456-edge      i40e-enp130s0f0-TxRx-15
 284:          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0        193          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   36050105          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68157457-edge      i40e-enp130s0f0-TxRx-16
 285:          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0        230          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   41185208          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68157458-edge      i40e-enp130s0f0-TxRx-17
 286:          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0        244          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   38778135          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68157459-edge      i40e-enp130s0f0-TxRx-18
 287:          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0        255          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   39455896          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68157460-edge      i40e-enp130s0f0-TxRx-19
 288:          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0        310          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   40661719          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68157461-edge      i40e-enp130s0f0-TxRx-20
 289:          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0        231          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   45020908          0          0          0          0          0          0          0          0   PCI-MSI 68157462-edge      i40e-enp130s0f0-TxRx-21
 290:          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0          0        287          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   43140380          0          0          0          0          0          0   PCI-MSI 68157463-edge      i40e-enp130s0f0-TxRx-22
 291:          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0        291          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   39578674          0          0          0          0   PCI-MSI 68157464-edge      i40e-enp130s0f0-TxRx-23
 292:          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0          0        281          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   37322058          0          0   PCI-MSI 68157465-edge      i40e-enp130s0f0-TxRx-24
 293:          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          1          0        155          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   37187702   PCI-MSI 68157466-edge      i40e-enp130s0f0-TxRx-25
 324:          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68157497-edge      i40e-0000:82:00.0:fdir-TxRx-0
 333:          0          0          0          0          0          0          0          0          0          0          0          1          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68159488-edge      i40e-0000:82:00.1:misc
 390:          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0          0   PCI-MSI 68159545-edge      i40e-0000:82:00.1:fdir-TxRx-0

Just a check - two interfaces are:
enp3s0f0
enp130s0f0
correct ?

Suggestion, adjust for a test the CORE_NUM to be 52 (not 26) in here

ethtool -L $DEV combined $CORE_NUM

As I think each time the script is run it only allows for 26 queues … and you need 52 in total (26 per interface)

Hello,
with all the regards, all ethtool setting are always per interface, not some global one. These are even two separate NICs in my server, in different PCIe slots, so they do not share anything, and kernel driver is instantiated for each interface.

I was using before same setup with different cards and I am 100% positive that any ethtool setting is per interface, not global one.

Maybe you were misled by word combined, but this means queues are TX + RX combined.

Here you can see from dmesg how it is applied to interface.

[   24.269663] i40e 0000:03:00.0: User requested queue count/HW max RSS count:  26/64
...
[   24.563838] i40e 0000:82:00.0: User requested queue count/HW max RSS count:  26/64

64 is maximum number of queus per i40e card interface, as per driver documentation, again not per all cards/interfaces.

Also please note, that if not enough queues will be created, than later on setting SMP affinity would fail. But it doesn’t.

Also you can clearly see 26queues per interface presents in /proc/interrupts listings posted above - just scroll completely to the right so you will see queues names.

one more thing in addition. This is listing of cpu numa/core/thread:

root@hadar:~# egrep 'processor|core id|physical id' /proc/cpuinfo | cut -d : -f 2 | paste - - -  | awk '{print "CPU"$1"\tsocket "$2" core "$3}'
CPU0	socket 0 core 0
CPU1	socket 1 core 0
CPU2	socket 0 core 1
CPU3	socket 1 core 1
CPU4	socket 0 core 2
CPU5	socket 1 core 2
CPU6	socket 0 core 3
CPU7	socket 1 core 3
CPU8	socket 0 core 4
CPU9	socket 1 core 4
CPU10	socket 0 core 5
CPU11	socket 1 core 5
CPU12	socket 0 core 6
CPU13	socket 1 core 6
CPU14	socket 0 core 8
CPU15	socket 1 core 8
CPU16	socket 0 core 9
CPU17	socket 1 core 9
CPU18	socket 0 core 10
CPU19	socket 1 core 10
CPU20	socket 0 core 11
CPU21	socket 1 core 11
CPU22	socket 0 core 12
CPU23	socket 1 core 12
CPU24	socket 0 core 13
CPU25	socket 1 core 13
CPU26	socket 0 core 14
CPU27	socket 1 core 14
CPU28	socket 0 core 0
CPU29	socket 1 core 0
CPU30	socket 0 core 1
CPU31	socket 1 core 1
CPU32	socket 0 core 2
CPU33	socket 1 core 2
CPU34	socket 0 core 3
CPU35	socket 1 core 3
CPU36	socket 0 core 4
CPU37	socket 1 core 4
CPU38	socket 0 core 5
CPU39	socket 1 core 5
CPU40	socket 0 core 6
CPU41	socket 1 core 6
CPU42	socket 0 core 8
CPU43	socket 1 core 8
CPU44	socket 0 core 9
CPU45	socket 1 core 9
CPU46	socket 0 core 10
CPU47	socket 1 core 10
CPU48	socket 0 core 11
CPU49	socket 1 core 11
CPU50	socket 0 core 12
CPU51	socket 1 core 12
CPU52	socket 0 core 13
CPU53	socket 1 core 13
CPU54	socket 0 core 14
CPU55	socket 1 core 14

As you can see, CPUid >= 28 (the ones which seems not to be loaded), are all second threads on the CPU cores. Cores which are already running suricata on the first thread.

I am more and more persuaded that this is some Suricata bug. Here are packets statistics from RSS queues on both NICs and you can clearly see packets being evenly fanout to 26queues per interface as requested. So as far as there it works as supposed to. So either AF_packet or Suricata.

I am runing this on Debian Buster with stock kernel 4.19.0-13-amd64.

root@hadar:/etc/suricata# ethtool -S enp3s0f0
NIC statistics:
     rx_packets: 28096289138
     tx_packets: 105
     rx_bytes: 37424607174380
     tx_bytes: 7350
     rx_errors: 0
     tx_errors: 0
     rx_dropped: 0
     tx_dropped: 0
     collisions: 0
     rx_length_errors: 0
     rx_crc_errors: 0
     rx_unicast: 28096121069
     tx_unicast: 0
     rx_multicast: 444153
     tx_multicast: 105
     rx_broadcast: 109
     tx_broadcast: 0
     rx_unknown_protocol: 0
     tx_linearize: 0
     tx_force_wb: 0
     tx_busy: 0
     rx_alloc_fail: 0
     rx_pg_alloc_fail: 0
     tx-0.tx_packets: 52
     tx-0.tx_bytes: 3640
     rx-0.rx_packets: 1045587639
     rx-0.rx_bytes: 1338825455632
     tx-1.tx_packets: 14
     tx-1.tx_bytes: 980
     rx-1.rx_packets: 971294814
     rx-1.rx_bytes: 1289029769075
     tx-2.tx_packets: 0
     tx-2.tx_bytes: 0
     rx-2.rx_packets: 948478324
     rx-2.rx_bytes: 1252971554285
     tx-3.tx_packets: 0
     tx-3.tx_bytes: 0
     rx-3.rx_packets: 1001686041
     rx-3.rx_bytes: 1318376287992
     tx-4.tx_packets: 0
     tx-4.tx_bytes: 0
     rx-4.rx_packets: 1258835372
     rx-4.rx_bytes: 1702688993104
     tx-5.tx_packets: 0
     tx-5.tx_bytes: 0
     rx-5.rx_packets: 1058133495
     rx-5.rx_bytes: 1404083344822
     tx-6.tx_packets: 0
     tx-6.tx_bytes: 0
     rx-6.rx_packets: 1521477268
     rx-6.rx_bytes: 2122615628767
     tx-7.tx_packets: 0
     tx-7.tx_bytes: 0
     rx-7.rx_packets: 1660648776
     rx-7.rx_bytes: 2330009093404
     tx-8.tx_packets: 0
     tx-8.tx_bytes: 0
     rx-8.rx_packets: 1027365344
     rx-8.rx_bytes: 1356450279527
     tx-9.tx_packets: 0
     tx-9.tx_bytes: 0
     rx-9.rx_packets: 1256372983
     rx-9.rx_bytes: 1723433958534
     tx-10.tx_packets: 39
     tx-10.tx_bytes: 2730
     rx-10.rx_packets: 1003608393
     rx-10.rx_bytes: 1298956737676
     tx-11.tx_packets: 0
     tx-11.tx_bytes: 0
     rx-11.rx_packets: 1045522491
     rx-11.rx_bytes: 1403176594358
     tx-12.tx_packets: 0
     tx-12.tx_bytes: 0
     rx-12.rx_packets: 1051993083
     rx-12.rx_bytes: 1414290769999
     tx-13.tx_packets: 0
     tx-13.tx_bytes: 0
     rx-13.rx_packets: 1034549036
     rx-13.rx_bytes: 1354982201757
     tx-14.tx_packets: 0
     tx-14.tx_bytes: 0
     rx-14.rx_packets: 1056646377
     rx-14.rx_bytes: 1406667619630
     tx-15.tx_packets: 0
     tx-15.tx_bytes: 0
     rx-15.rx_packets: 1230416914
     rx-15.rx_bytes: 1667116171217
     tx-16.tx_packets: 0
     tx-16.tx_bytes: 0
     rx-16.rx_packets: 909276107
     rx-16.rx_bytes: 1195999320291
     tx-17.tx_packets: 0
     tx-17.tx_bytes: 0
     rx-17.rx_packets: 1083354622
     rx-17.rx_bytes: 1436371117943
     tx-18.tx_packets: 0
     tx-18.tx_bytes: 0
     rx-18.rx_packets: 909672660
     rx-18.rx_bytes: 1209888688146
     tx-19.tx_packets: 0
     tx-19.tx_bytes: 0
     rx-19.rx_packets: 960565047
     rx-19.rx_bytes: 1252369384970
     tx-20.tx_packets: 0
     tx-20.tx_bytes: 0
     rx-20.rx_packets: 965892482
     rx-20.rx_bytes: 1254618267246
     tx-21.tx_packets: 0
     tx-21.tx_bytes: 0
     rx-21.rx_packets: 1033885614
     rx-21.rx_bytes: 1277565356354
     tx-22.tx_packets: 0
     tx-22.tx_bytes: 0
     rx-22.rx_packets: 1038431253
     rx-22.rx_bytes: 1378104356700
     tx-23.tx_packets: 0
     tx-23.tx_bytes: 0
     rx-23.rx_packets: 1041042070
     rx-23.rx_bytes: 1379833497596
     tx-24.tx_packets: 0
     tx-24.tx_bytes: 0
     rx-24.rx_packets: 1003267156
     rx-24.rx_bytes: 1332437949737
     tx-25.tx_packets: 0
     tx-25.tx_bytes: 0
     rx-25.rx_packets: 978285778
     rx-25.rx_bytes: 1323744777056
     tx-26.tx_packets: 0
     tx-26.tx_bytes: 0
     rx-26.rx_packets: 0
     rx-26.rx_bytes: 0
     tx-27.tx_packets: 0
     tx-27.tx_bytes: 0
     rx-27.rx_packets: 0
     rx-27.rx_bytes: 0
     tx-28.tx_packets: 0
     tx-28.tx_bytes: 0
     rx-28.rx_packets: 0
     rx-28.rx_bytes: 0
     tx-29.tx_packets: 0
     tx-29.tx_bytes: 0
     rx-29.rx_packets: 0
     rx-29.rx_bytes: 0
     tx-30.tx_packets: 0
     tx-30.tx_bytes: 0
     rx-30.rx_packets: 0
     rx-30.rx_bytes: 0
     tx-31.tx_packets: 0
     tx-31.tx_bytes: 0
     rx-31.rx_packets: 0
     rx-31.rx_bytes: 0
     tx-32.tx_packets: 0
     tx-32.tx_bytes: 0
     rx-32.rx_packets: 0
     rx-32.rx_bytes: 0
     tx-33.tx_packets: 0
     tx-33.tx_bytes: 0
     rx-33.rx_packets: 0
     rx-33.rx_bytes: 0
     tx-34.tx_packets: 0
     tx-34.tx_bytes: 0
     rx-34.rx_packets: 0
     rx-34.rx_bytes: 0
     tx-35.tx_packets: 0
     tx-35.tx_bytes: 0
     rx-35.rx_packets: 0
     rx-35.rx_bytes: 0
     tx-36.tx_packets: 0
     tx-36.tx_bytes: 0
     rx-36.rx_packets: 0
     rx-36.rx_bytes: 0
     tx-37.tx_packets: 0
     tx-37.tx_bytes: 0
     rx-37.rx_packets: 0
     rx-37.rx_bytes: 0
     tx-38.tx_packets: 0
     tx-38.tx_bytes: 0
     rx-38.rx_packets: 0
     rx-38.rx_bytes: 0
     tx-39.tx_packets: 0
     tx-39.tx_bytes: 0
     rx-39.rx_packets: 0
     rx-39.rx_bytes: 0
     tx-40.tx_packets: 0
     tx-40.tx_bytes: 0
     rx-40.rx_packets: 0
     rx-40.rx_bytes: 0
     tx-41.tx_packets: 0
     tx-41.tx_bytes: 0
     rx-41.rx_packets: 0
     rx-41.rx_bytes: 0
     tx-42.tx_packets: 0
     tx-42.tx_bytes: 0
     rx-42.rx_packets: 0
     rx-42.rx_bytes: 0
     tx-43.tx_packets: 0
     tx-43.tx_bytes: 0
     rx-43.rx_packets: 0
     rx-43.rx_bytes: 0
     tx-44.tx_packets: 0
     tx-44.tx_bytes: 0
     rx-44.rx_packets: 0
     rx-44.rx_bytes: 0
     tx-45.tx_packets: 0
     tx-45.tx_bytes: 0
     rx-45.rx_packets: 0
     rx-45.rx_bytes: 0
     tx-46.tx_packets: 0
     tx-46.tx_bytes: 0
     rx-46.rx_packets: 0
     rx-46.rx_bytes: 0
     tx-47.tx_packets: 0
     tx-47.tx_bytes: 0
     rx-47.rx_packets: 0
     rx-47.rx_bytes: 0
     tx-48.tx_packets: 0
     tx-48.tx_bytes: 0
     rx-48.rx_packets: 0
     rx-48.rx_bytes: 0
     tx-49.tx_packets: 0
     tx-49.tx_bytes: 0
     rx-49.rx_packets: 0
     rx-49.rx_bytes: 0
     tx-50.tx_packets: 0
     tx-50.tx_bytes: 0
     rx-50.rx_packets: 0
     rx-50.rx_bytes: 0
     tx-51.tx_packets: 0
     tx-51.tx_bytes: 0
     rx-51.rx_packets: 0
     rx-51.rx_bytes: 0
     tx-52.tx_packets: 0
     tx-52.tx_bytes: 0
     rx-52.rx_packets: 0
     rx-52.rx_bytes: 0
     tx-53.tx_packets: 0
     tx-53.tx_bytes: 0
     rx-53.rx_packets: 0
     rx-53.rx_bytes: 0
     tx-54.tx_packets: 0
     tx-54.tx_bytes: 0
     rx-54.rx_packets: 0
     rx-54.rx_bytes: 0
     tx-55.tx_packets: 0
     tx-55.tx_bytes: 0
     rx-55.rx_packets: 0
     rx-55.rx_bytes: 0
     tx-56.tx_packets: 0
     tx-56.tx_bytes: 0
     rx-56.rx_packets: 0
     rx-56.rx_bytes: 0
     tx-57.tx_packets: 0
     tx-57.tx_bytes: 0
     rx-57.rx_packets: 0
     rx-57.rx_bytes: 0
     tx-58.tx_packets: 0
     tx-58.tx_bytes: 0
     rx-58.rx_packets: 0
     rx-58.rx_bytes: 0
     tx-59.tx_packets: 0
     tx-59.tx_bytes: 0
     rx-59.rx_packets: 0
     rx-59.rx_bytes: 0
     tx-60.tx_packets: 0
     tx-60.tx_bytes: 0
     rx-60.rx_packets: 0
     rx-60.rx_bytes: 0
     tx-61.tx_packets: 0
     tx-61.tx_bytes: 0
     rx-61.rx_packets: 0
     rx-61.rx_bytes: 0
     tx-62.tx_packets: 0
     tx-62.tx_bytes: 0
     rx-62.rx_packets: 0
     rx-62.rx_bytes: 0
     tx-63.tx_packets: 0
     tx-63.tx_bytes: 0
     rx-63.rx_packets: 0
     rx-63.rx_bytes: 0
     veb.rx_bytes: 0
     veb.tx_bytes: 0
     veb.rx_unicast: 0
     veb.tx_unicast: 0
     veb.rx_multicast: 0
     veb.tx_multicast: 0
     veb.rx_broadcast: 0
     veb.tx_broadcast: 0
     veb.rx_discards: 0
     veb.tx_discards: 0
     veb.tx_errors: 0
     veb.rx_unknown_protocol: 0
     veb.tc_0_tx_packets: 0
     veb.tc_0_tx_bytes: 0
     veb.tc_0_rx_packets: 0
     veb.tc_0_rx_bytes: 0
     veb.tc_1_tx_packets: 0
     veb.tc_1_tx_bytes: 0
     veb.tc_1_rx_packets: 0
     veb.tc_1_rx_bytes: 0
     veb.tc_2_tx_packets: 0
     veb.tc_2_tx_bytes: 0
     veb.tc_2_rx_packets: 0
     veb.tc_2_rx_bytes: 0
     veb.tc_3_tx_packets: 0
     veb.tc_3_tx_bytes: 0
     veb.tc_3_rx_packets: 0
     veb.tc_3_rx_bytes: 0
     veb.tc_4_tx_packets: 0
     veb.tc_4_tx_bytes: 0
     veb.tc_4_rx_packets: 0
     veb.tc_4_rx_bytes: 0
     veb.tc_5_tx_packets: 0
     veb.tc_5_tx_bytes: 0
     veb.tc_5_rx_packets: 0
     veb.tc_5_rx_bytes: 0
     veb.tc_6_tx_packets: 0
     veb.tc_6_tx_bytes: 0
     veb.tc_6_rx_packets: 0
     veb.tc_6_rx_bytes: 0
     veb.tc_7_tx_packets: 0
     veb.tc_7_tx_bytes: 0
     veb.tc_7_rx_packets: 0
     veb.tc_7_rx_bytes: 0
     port.rx_bytes: 37537784135422
     port.tx_bytes: 306528
     port.rx_unicast: 28096424284
     port.tx_unicast: 0
     port.rx_multicast: 444153
     port.tx_multicast: 3539
     port.rx_broadcast: 109
     port.tx_broadcast: 0
     port.tx_errors: 0
     port.rx_dropped: 0
     port.tx_dropped_link_down: 0
     port.rx_crc_errors: 0
     port.illegal_bytes: 0
     port.mac_local_faults: 0
     port.mac_remote_faults: 0
     port.tx_timeout: 0
     port.rx_csum_bad: 0
     port.rx_length_errors: 0
     port.link_xon_rx: 0
     port.link_xoff_rx: 0
     port.link_xon_tx: 0
     port.link_xoff_tx: 0
     port.rx_size_64: 507914058
     port.rx_size_127: 1447536628
     port.rx_size_255: 483824003
     port.rx_size_511: 360601739
     port.rx_size_1023: 396575645
     port.rx_size_1522: 24900416473
     port.rx_size_big: 0
     port.tx_size_64: 0
     port.tx_size_127: 3539
     port.tx_size_255: 0
     port.tx_size_511: 0
     port.tx_size_1023: 0
     port.tx_size_1522: 0
     port.tx_size_big: 0
     port.rx_undersize: 0
     port.rx_fragments: 0
     port.rx_oversize: 0
     port.rx_jabber: 0
     port.VF_admin_queue_requests: 0
     port.arq_overflows: 0
     port.tx_hwtstamp_timeouts: 0
     port.rx_hwtstamp_cleared: 0
     port.tx_hwtstamp_skipped: 0
     port.fdir_flush_cnt: 0
     port.fdir_atr_match: 0
     port.fdir_atr_tunnel_match: 0
     port.fdir_atr_status: 1
     port.fdir_sb_match: 0
     port.fdir_sb_status: 1
     port.tx_lpi_status: 0
     port.rx_lpi_status: 0
     port.tx_lpi_count: 0
     port.rx_lpi_count: 0
     port.tx_priority_0_xon_tx: 0
     port.tx_priority_0_xoff_tx: 0
     port.rx_priority_0_xon_rx: 0
     port.rx_priority_0_xoff_rx: 0
     port.rx_priority_0_xon_2_xoff: 0
     port.tx_priority_1_xon_tx: 0
     port.tx_priority_1_xoff_tx: 0
     port.rx_priority_1_xon_rx: 0
     port.rx_priority_1_xoff_rx: 0
     port.rx_priority_1_xon_2_xoff: 0
     port.tx_priority_2_xon_tx: 0
     port.tx_priority_2_xoff_tx: 0
     port.rx_priority_2_xon_rx: 0
     port.rx_priority_2_xoff_rx: 0
     port.rx_priority_2_xon_2_xoff: 0
     port.tx_priority_3_xon_tx: 0
     port.tx_priority_3_xoff_tx: 0
     port.rx_priority_3_xon_rx: 0
     port.rx_priority_3_xoff_rx: 0
     port.rx_priority_3_xon_2_xoff: 0
     port.tx_priority_4_xon_tx: 0
     port.tx_priority_4_xoff_tx: 0
     port.rx_priority_4_xon_rx: 0
     port.rx_priority_4_xoff_rx: 0
     port.rx_priority_4_xon_2_xoff: 0
     port.tx_priority_5_xon_tx: 0
     port.tx_priority_5_xoff_tx: 0
     port.rx_priority_5_xon_rx: 0
     port.rx_priority_5_xoff_rx: 0
     port.rx_priority_5_xon_2_xoff: 0
     port.tx_priority_6_xon_tx: 0
     port.tx_priority_6_xoff_tx: 0
     port.rx_priority_6_xon_rx: 0
     port.rx_priority_6_xoff_rx: 0
     port.rx_priority_6_xon_2_xoff: 0
     port.tx_priority_7_xon_tx: 0
     port.tx_priority_7_xoff_tx: 0
     port.rx_priority_7_xon_rx: 0
     port.rx_priority_7_xoff_rx: 0
     port.rx_priority_7_xon_2_xoff: 0
root@hadar:/etc/suricata# ethtool -S enp130s0f0
NIC statistics:
     rx_packets: 11146892981
     tx_packets: 107
     rx_bytes: 3752876099943
     tx_bytes: 7490
     rx_errors: 0
     tx_errors: 0
     rx_dropped: 0
     tx_dropped: 0
     collisions: 0
     rx_length_errors: 0
     rx_crc_errors: 0
     rx_unicast: 11145857098
     tx_unicast: 0
     rx_multicast: 1127568
     tx_multicast: 107
     rx_broadcast: 10387
     tx_broadcast: 0
     rx_unknown_protocol: 0
     tx_linearize: 0
     tx_force_wb: 0
     tx_busy: 0
     rx_alloc_fail: 0
     rx_pg_alloc_fail: 0
     tx-0.tx_packets: 59
     tx-0.tx_bytes: 4130
     rx-0.rx_packets: 711016601
     rx-0.rx_bytes: 523231887857
     tx-1.tx_packets: 14
     tx-1.tx_bytes: 980
     rx-1.rx_packets: 373864975
     rx-1.rx_bytes: 97033437519
     tx-2.tx_packets: 0
     tx-2.tx_bytes: 0
     rx-2.rx_packets: 372262710
     rx-2.rx_bytes: 111496507467
     tx-3.tx_packets: 0
     tx-3.tx_bytes: 0
     rx-3.rx_packets: 434700573
     rx-3.rx_bytes: 149698178846
     tx-4.tx_packets: 0
     tx-4.tx_bytes: 0
     rx-4.rx_packets: 447436299
     rx-4.rx_bytes: 168212158392
     tx-5.tx_packets: 0
     tx-5.tx_bytes: 0
     rx-5.rx_packets: 397595607
     rx-5.rx_bytes: 125805647789
     tx-6.tx_packets: 0
     tx-6.tx_bytes: 0
     rx-6.rx_packets: 423952174
     rx-6.rx_bytes: 109497283431
     tx-7.tx_packets: 0
     tx-7.tx_bytes: 0
     rx-7.rx_packets: 458829942
     rx-7.rx_bytes: 106952253216
     tx-8.tx_packets: 0
     tx-8.tx_bytes: 0
     rx-8.rx_packets: 411495199
     rx-8.rx_bytes: 132942591723
     tx-9.tx_packets: 0
     tx-9.tx_bytes: 0
     rx-9.rx_packets: 384804038
     rx-9.rx_bytes: 93668884199
     tx-10.tx_packets: 0
     tx-10.tx_bytes: 0
     rx-10.rx_packets: 447577033
     rx-10.rx_bytes: 126473874339
     tx-11.tx_packets: 0
     tx-11.tx_bytes: 0
     rx-11.rx_packets: 439097593
     rx-11.rx_bytes: 126564718500
     tx-12.tx_packets: 0
     tx-12.tx_bytes: 0
     rx-12.rx_packets: 409571954
     rx-12.rx_bytes: 101976936884
     tx-13.tx_packets: 0
     tx-13.tx_bytes: 0
     rx-13.rx_packets: 471826548
     rx-13.rx_bytes: 163987201283
     tx-14.tx_packets: 0
     tx-14.tx_bytes: 0
     rx-14.rx_packets: 412907483
     rx-14.rx_bytes: 116258575798
     tx-15.tx_packets: 34
     tx-15.tx_bytes: 2380
     rx-15.rx_packets: 389713980
     rx-15.rx_bytes: 102882593942
     tx-16.tx_packets: 0
     tx-16.tx_bytes: 0
     rx-16.rx_packets: 379160363
     rx-16.rx_bytes: 113656108858
     tx-17.tx_packets: 0
     tx-17.tx_bytes: 0
     rx-17.rx_packets: 461562169
     rx-17.rx_bytes: 154197145367
     tx-18.tx_packets: 0
     tx-18.tx_bytes: 0
     rx-18.rx_packets: 361014037
     rx-18.rx_bytes: 95864307861
     tx-19.tx_packets: 0
     tx-19.tx_bytes: 0
     rx-19.rx_packets: 400802410
     rx-19.rx_bytes: 117136674637
     tx-20.tx_packets: 0
     tx-20.tx_bytes: 0
     rx-20.rx_packets: 416956420
     rx-20.rx_bytes: 184646516714
     tx-21.tx_packets: 0
     tx-21.tx_bytes: 0
     rx-21.rx_packets: 492096509
     rx-21.rx_bytes: 272636800616
     tx-22.tx_packets: 0
     tx-22.tx_bytes: 0
     rx-22.rx_packets: 435974722
     rx-22.rx_bytes: 133863690001
     tx-23.tx_packets: 0
     tx-23.tx_bytes: 0
     rx-23.rx_packets: 427797495
     rx-23.rx_bytes: 122537609875
     tx-24.tx_packets: 0
     tx-24.tx_bytes: 0
     rx-24.rx_packets: 409097957
     rx-24.rx_bytes: 114731392792
     tx-25.tx_packets: 0
     tx-25.tx_bytes: 0
     rx-25.rx_packets: 375778190
     rx-25.rx_bytes: 86923122037
     tx-26.tx_packets: 0
     tx-26.tx_bytes: 0
     rx-26.rx_packets: 0
     rx-26.rx_bytes: 0
     tx-27.tx_packets: 0
     tx-27.tx_bytes: 0
     rx-27.rx_packets: 0
     rx-27.rx_bytes: 0
     tx-28.tx_packets: 0
     tx-28.tx_bytes: 0
     rx-28.rx_packets: 0
     rx-28.rx_bytes: 0
     tx-29.tx_packets: 0
     tx-29.tx_bytes: 0
     rx-29.rx_packets: 0
     rx-29.rx_bytes: 0
     tx-30.tx_packets: 0
     tx-30.tx_bytes: 0
     rx-30.rx_packets: 0
     rx-30.rx_bytes: 0
     tx-31.tx_packets: 0
     tx-31.tx_bytes: 0
     rx-31.rx_packets: 0
     rx-31.rx_bytes: 0
     tx-32.tx_packets: 0
     tx-32.tx_bytes: 0
     rx-32.rx_packets: 0
     rx-32.rx_bytes: 0
     tx-33.tx_packets: 0
     tx-33.tx_bytes: 0
     rx-33.rx_packets: 0
     rx-33.rx_bytes: 0
     tx-34.tx_packets: 0
     tx-34.tx_bytes: 0
     rx-34.rx_packets: 0
     rx-34.rx_bytes: 0
     tx-35.tx_packets: 0
     tx-35.tx_bytes: 0
     rx-35.rx_packets: 0
     rx-35.rx_bytes: 0
     tx-36.tx_packets: 0
     tx-36.tx_bytes: 0
     rx-36.rx_packets: 0
     rx-36.rx_bytes: 0
     tx-37.tx_packets: 0
     tx-37.tx_bytes: 0
     rx-37.rx_packets: 0
     rx-37.rx_bytes: 0
     tx-38.tx_packets: 0
     tx-38.tx_bytes: 0
     rx-38.rx_packets: 0
     rx-38.rx_bytes: 0
     tx-39.tx_packets: 0
     tx-39.tx_bytes: 0
     rx-39.rx_packets: 0
     rx-39.rx_bytes: 0
     tx-40.tx_packets: 0
     tx-40.tx_bytes: 0
     rx-40.rx_packets: 0
     rx-40.rx_bytes: 0
     tx-41.tx_packets: 0
     tx-41.tx_bytes: 0
     rx-41.rx_packets: 0
     rx-41.rx_bytes: 0
     tx-42.tx_packets: 0
     tx-42.tx_bytes: 0
     rx-42.rx_packets: 0
     rx-42.rx_bytes: 0
     tx-43.tx_packets: 0
     tx-43.tx_bytes: 0
     rx-43.rx_packets: 0
     rx-43.rx_bytes: 0
     tx-44.tx_packets: 0
     tx-44.tx_bytes: 0
     rx-44.rx_packets: 0
     rx-44.rx_bytes: 0
     tx-45.tx_packets: 0
     tx-45.tx_bytes: 0
     rx-45.rx_packets: 0
     rx-45.rx_bytes: 0
     tx-46.tx_packets: 0
     tx-46.tx_bytes: 0
     rx-46.rx_packets: 0
     rx-46.rx_bytes: 0
     tx-47.tx_packets: 0
     tx-47.tx_bytes: 0
     rx-47.rx_packets: 0
     rx-47.rx_bytes: 0
     tx-48.tx_packets: 0
     tx-48.tx_bytes: 0
     rx-48.rx_packets: 0
     rx-48.rx_bytes: 0
     tx-49.tx_packets: 0
     tx-49.tx_bytes: 0
     rx-49.rx_packets: 0
     rx-49.rx_bytes: 0
     tx-50.tx_packets: 0
     tx-50.tx_bytes: 0
     rx-50.rx_packets: 0
     rx-50.rx_bytes: 0
     tx-51.tx_packets: 0
     tx-51.tx_bytes: 0
     rx-51.rx_packets: 0
     rx-51.rx_bytes: 0
     tx-52.tx_packets: 0
     tx-52.tx_bytes: 0
     rx-52.rx_packets: 0
     rx-52.rx_bytes: 0
     tx-53.tx_packets: 0
     tx-53.tx_bytes: 0
     rx-53.rx_packets: 0
     rx-53.rx_bytes: 0
     tx-54.tx_packets: 0
     tx-54.tx_bytes: 0
     rx-54.rx_packets: 0
     rx-54.rx_bytes: 0
     tx-55.tx_packets: 0
     tx-55.tx_bytes: 0
     rx-55.rx_packets: 0
     rx-55.rx_bytes: 0
     tx-56.tx_packets: 0
     tx-56.tx_bytes: 0
     rx-56.rx_packets: 0
     rx-56.rx_bytes: 0
     tx-57.tx_packets: 0
     tx-57.tx_bytes: 0
     rx-57.rx_packets: 0
     rx-57.rx_bytes: 0
     tx-58.tx_packets: 0
     tx-58.tx_bytes: 0
     rx-58.rx_packets: 0
     rx-58.rx_bytes: 0
     tx-59.tx_packets: 0
     tx-59.tx_bytes: 0
     rx-59.rx_packets: 0
     rx-59.rx_bytes: 0
     tx-60.tx_packets: 0
     tx-60.tx_bytes: 0
     rx-60.rx_packets: 0
     rx-60.rx_bytes: 0
     tx-61.tx_packets: 0
     tx-61.tx_bytes: 0
     rx-61.rx_packets: 0
     rx-61.rx_bytes: 0
     tx-62.tx_packets: 0
     tx-62.tx_bytes: 0
     rx-62.rx_packets: 0
     rx-62.rx_bytes: 0
     tx-63.tx_packets: 0
     tx-63.tx_bytes: 0
     rx-63.rx_packets: 0
     rx-63.rx_bytes: 0
     veb.rx_bytes: 0
     veb.tx_bytes: 0
     veb.rx_unicast: 0
     veb.tx_unicast: 0
     veb.rx_multicast: 0
     veb.tx_multicast: 0
     veb.rx_broadcast: 0
     veb.tx_broadcast: 0
     veb.rx_discards: 0
     veb.tx_discards: 0
     veb.tx_errors: 0
     veb.rx_unknown_protocol: 0
     veb.tc_0_tx_packets: 0
     veb.tc_0_tx_bytes: 0
     veb.tc_0_rx_packets: 0
     veb.tc_0_rx_bytes: 0
     veb.tc_1_tx_packets: 0
     veb.tc_1_tx_bytes: 0
     veb.tc_1_rx_packets: 0
     veb.tc_1_rx_bytes: 0
     veb.tc_2_tx_packets: 0
     veb.tc_2_tx_bytes: 0
     veb.tc_2_rx_packets: 0
     veb.tc_2_rx_bytes: 0
     veb.tc_3_tx_packets: 0
     veb.tc_3_tx_bytes: 0
     veb.tc_3_rx_packets: 0
     veb.tc_3_rx_bytes: 0
     veb.tc_4_tx_packets: 0
     veb.tc_4_tx_bytes: 0
     veb.tc_4_rx_packets: 0
     veb.tc_4_rx_bytes: 0
     veb.tc_5_tx_packets: 0
     veb.tc_5_tx_bytes: 0
     veb.tc_5_rx_packets: 0
     veb.tc_5_rx_bytes: 0
     veb.tc_6_tx_packets: 0
     veb.tc_6_tx_bytes: 0
     veb.tc_6_rx_packets: 0
     veb.tc_6_rx_bytes: 0
     veb.tc_7_tx_packets: 0
     veb.tc_7_tx_bytes: 0
     veb.tc_7_rx_packets: 0
     veb.tc_7_rx_bytes: 0
     port.rx_bytes: 3797504623204
     port.tx_bytes: 306763
     port.rx_unicast: 11145921745
     port.tx_unicast: 0
     port.rx_multicast: 1127573
     port.tx_multicast: 3542
     port.rx_broadcast: 10387
     port.tx_broadcast: 0
     port.tx_errors: 0
     port.rx_dropped: 0
     port.tx_dropped_link_down: 0
     port.rx_crc_errors: 0
     port.illegal_bytes: 0
     port.mac_local_faults: 0
     port.mac_remote_faults: 0
     port.tx_timeout: 0
     port.rx_csum_bad: 0
     port.rx_length_errors: 0
     port.link_xon_rx: 0
     port.link_xoff_rx: 0
     port.link_xon_tx: 0
     port.link_xoff_tx: 0
     port.rx_size_64: 2138763525
     port.rx_size_127: 6100175265
     port.rx_size_255: 479358431
     port.rx_size_511: 187378660
     port.rx_size_1023: 230678944
     port.rx_size_1522: 2010704874
     port.rx_size_big: 0
     port.tx_size_64: 0
     port.tx_size_127: 3542
     port.tx_size_255: 0
     port.tx_size_511: 0
     port.tx_size_1023: 0
     port.tx_size_1522: 0
     port.tx_size_big: 0
     port.rx_undersize: 0
     port.rx_fragments: 0
     port.rx_oversize: 0
     port.rx_jabber: 0
     port.VF_admin_queue_requests: 0
     port.arq_overflows: 0
     port.tx_hwtstamp_timeouts: 0
     port.rx_hwtstamp_cleared: 0
     port.tx_hwtstamp_skipped: 0
     port.fdir_flush_cnt: 0
     port.fdir_atr_match: 0
     port.fdir_atr_tunnel_match: 0
     port.fdir_atr_status: 1
     port.fdir_sb_match: 0
     port.fdir_sb_status: 1
     port.tx_lpi_status: 0
     port.rx_lpi_status: 0
     port.tx_lpi_count: 0
     port.rx_lpi_count: 0
     port.tx_priority_0_xon_tx: 0
     port.tx_priority_0_xoff_tx: 0
     port.rx_priority_0_xon_rx: 0
     port.rx_priority_0_xoff_rx: 0
     port.rx_priority_0_xon_2_xoff: 0
     port.tx_priority_1_xon_tx: 0
     port.tx_priority_1_xoff_tx: 0
     port.rx_priority_1_xon_rx: 0
     port.rx_priority_1_xoff_rx: 0
     port.rx_priority_1_xon_2_xoff: 0
     port.tx_priority_2_xon_tx: 0
     port.tx_priority_2_xoff_tx: 0
     port.rx_priority_2_xon_rx: 0
     port.rx_priority_2_xoff_rx: 0
     port.rx_priority_2_xon_2_xoff: 0
     port.tx_priority_3_xon_tx: 0
     port.tx_priority_3_xoff_tx: 0
     port.rx_priority_3_xon_rx: 0
     port.rx_priority_3_xoff_rx: 0
     port.rx_priority_3_xon_2_xoff: 0
     port.tx_priority_4_xon_tx: 0
     port.tx_priority_4_xoff_tx: 0
     port.rx_priority_4_xon_rx: 0
     port.rx_priority_4_xoff_rx: 0
     port.rx_priority_4_xon_2_xoff: 0
     port.tx_priority_5_xon_tx: 0
     port.tx_priority_5_xoff_tx: 0
     port.rx_priority_5_xon_rx: 0
     port.rx_priority_5_xoff_rx: 0
     port.rx_priority_5_xon_2_xoff: 0
     port.tx_priority_6_xon_tx: 0
     port.tx_priority_6_xoff_tx: 0
     port.rx_priority_6_xon_rx: 0
     port.rx_priority_6_xoff_rx: 0
     port.rx_priority_6_xon_2_xoff: 0
     port.tx_priority_7_xon_tx: 0
     port.tx_priority_7_xoff_tx: 0
     port.rx_priority_7_xon_rx: 0
     port.rx_priority_7_xoff_rx: 0
     port.rx_priority_7_xon_2_xoff: 0

I misunderstood that it is the same NIC - sorry about that.
That scenario where one side of the traffic is copied to one interface and the other to a diff interface is not optimal for inspection. Ideally Suricata will see complete sessions in order (for example 3WHS in order) mirrored on the same interface.
There are some docs about here https://suricata.readthedocs.io/en/suricata-6.0.2/performance/analysis.html?highlight=async-oneside#advanced

Hello Peter,
thank you for reply.

even on the same NIC with multiple physical interfaces (multiport NIC) these be treated separately.

Regarding passive TAP mode, I agree, that suricata shall see flow from both sides. But I didn’t found any information, that traffic has to come to the same interface! For example Suricata in IPS mode will also receive both direction of the traffic on two interfaces. So I would welcome more informations about how Suricata could handle passive TAPs.

But as this is IMHO not related to the issue described above, I would not like to mix these two topics together. I will create another topic for discussing passive TAPs.

So regarding my current issue, short summary:

  • we can see packets coming to RSS queues spread ~ evenly.
  • we can see RSS queues pinned to correct CPU cores.
  • we can see Suricata threads pinned to the same CPU cores.
  • half of the cores (the second threads on the se phys CPU cores) are not being loaded by Suricata worker process (observed in both top and htop)

You have some information here 9.2. Packet Capture — Suricata 6.0.2 documentation about the ordering.
On the commercial side we often see what you describe , only one part of the traffic mirrored or mirrored to separate interfaces. This is not optimal for statefull inspection and detection.
The main point is - detection actually, the packets/flows need to be inspected and seen by Suricata the same way the “end client” will “see” them to provide full inspection.
What often is done in such cases is employment of packet brokers. ( Suricata with passive optical TAP - #7 by ish )

I guess your observation with regards to the second group of cores might be the best track to narrow it down. So those are the cores that are available thanks to Hyperthreading on that machine, correct?

What CPU and Board is this and can you share the bios settings?

One thing you could try for testing is, that you just enable the affinity for those cores that don’t show any load within the cpu-affinity section.