Project

General

Profile

Actions

Bug #6394

closed

Sudden increase in capture.kernel_drops and tcp.pkt_on_wrong_thread after upgrading to 6.0.14

Added by Sascha Steinbiss about 1 year ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

We noticed that on some machines, metrics for capture.kernel_drops and tcp.pkt_on_wrong_thread started increasing immediately after upgrading to Suricata 6.0.14 from Suricata 6.0.13. Downgrading to 6.0.13 solved the issue right away.

Here's our capture configuration:

af-packet:
  - interface: S5
    cluster-id: 96
    cluster-type: cluster_qm
    threads: 22
    defrag: yes
    use-mmap: yes
    mmap-locked: yes
    tpacket-v3: yes
    rollover: no
    use-emergency-flush: yes
    ring-size: 200000
    block-size: 4194304
    bpf-filter: "not host X.X.X.X and not host X.X.X.X" 

We disabled the bpf-filter to confirm the issue is unrelated to its use. Disabling it made no difference.

This is on a Debian bullseye machine with Intel X710 and X722 NICs.

The graphs show the increase in the counters after the upgrade at 2023-10-04 ~7:30 UTC with no other configuration change.
Kernel drop delta increase after 2023-10-04 ~7:30 UTC upgrade
Packets on wrong thread counter increase after 2023-10-04 ~7:30 UTC upgrade


Files

3eb33_wrong_thread.png (37.5 KB) 3eb33_wrong_thread.png Packets on wrong thread counter increase after 2023-10-04 ~7:30 UTC upgrade Sascha Steinbiss, 10/10/2023 09:42 AM
3eb33_kernel_drops.png (40.4 KB) 3eb33_kernel_drops.png Kernel drop delta increase after 2023-10-04 ~7:30 UTC upgrade Sascha Steinbiss, 10/10/2023 09:42 AM
ciscows.png (219 KB) ciscows.png Sascha Steinbiss, 10/27/2023 01:13 PM
Screenshot from 2023-11-13 17-44-55.png (31.8 KB) Screenshot from 2023-11-13 17-44-55.png Sascha Steinbiss, 11/13/2023 04:45 PM

Related issues 3 (2 open1 closed)

Related to Suricata - Optimization #3637: Performance impact of Cisco FabricpathClosedPhilippe AntoineActions
Related to Suricata - Task #6443: Suricon 2023 brainstormAssignedVictor JulienActions
Related to Suricata - Optimization #2725: stream/packet on wrong threadFeedbackOISF DevActions
Actions

Also available in: Atom PDF