Sensei impacts the graphical traffic widget

Started by Darkopnsense, September 26, 2020, 08:37:10 AM

Previous topic - Next topic
hello mb,

Since upgrading to version 20.7 I have the OUT traffic graph widget.

When you stop sensei, the traffic graph widget works.

I have of course checked my statements on my different configurations.

Situation still valid in version 20.7.3

Regards,

French mother tongue.
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

Seems to be related to Netmap. Zabbix Client is not getting any useful data from LAN (Sensei with Netmap) and WAN1 (Suricata in IPS mode) here, too.

Does setting net.bpf.zerocopy_enable to 1 help?

From: https://docs.opnsense.org/troubleshooting/network.html

QuoteUse zero-copy for bpf(4) for faster processing, when not set (the default) packets will not be seen by bpf, which influences the traffic graphs for example.

Just set
# sysctl net.bpf.zerocopy_enable=1
net.bpf.zerocopy_enable: 0 -> 1

but LAN (igb0) with Sensei in Netmap mode is still flatlining, Zabbix is not picking up traffic either.

A reboot might be necessary to apply the setting before any services are started. Better to put in Misc -> Tunables so that this survives reboots.

Quote from: mb on September 30, 2020, 06:07:26 PM
A reboot might be necessary to apply the setting before any services are started. Better to put in Misc -> Tunables so that this survives reboots.
Thanks, and sorry I failed to mention that. I had already tried that, too. No luck, as soon as Sensei starts, the igb interface flatlines.

Hi @athurdent,

Thanks for the additional update.

This looks like netmap comes into the scene way earlier than iflib getting a chance to tap the packet for bpf(4) processing.

We'll look into that.