#4021·falco

Discrepancy in falcosecurity_scap_n_evts_total metric between host (systemd) and DaemonSet deployments under identical syscall workload

Author: ilyagozCreated Sep 28, 2026Updated Sep 28, 2026
Labelskind/bug

I have a small k3s cluster (3 master, 2 worker nodes on virtual machines, 2-4 cores, 2-6 GB, Debian 6.12.101-1 (2026-08-05) x86_64). I have setup it so I can quickly switch between Falco running as a systemd service and a DaemonSet on k3s, using Falco Operator. Falco version: 0.45.0, engine.kind=modern_ebpf.

Configuration is identical, as far as I can tell, and as close to default as possible. In both cases, 72 syscalls selected in total: 19 from rules + 53 for state engine. The 'cri' engine is enabled in both environments pointing to /run/k3s/containerd/containerd.sock. Detection functionality (e.g., rule triggering like "Terminal shell in container") works identically in both setups. Falco reports no dropped events.

However, under the exact same workload on the node, falcosecurity_scap_n_evts_total metric reports significantly different event rates (all measurements were performed on the same node):

  • DaemonSet: ~3,100 EPS
  • Host (systemd): ~3,800 EPS

Tracing sys_enter and sys_exit with bpftrace for the 72 selected syscalls shows nearly identical kernel activity across both setups:

  • Total kernel tracepoint hits (sys_enter + sys_exit): ~6,250 events/sec (~3,125 actual syscalls/sec).
  • Ratio of sys_enter to sys_exit is strictly 1:1 in the kernel for both setups.

Given that raw kernel tracepoint rates, selected syscall masks, rule sets and drop metrics are identical, what accounts for falcosecurity_scap_n_evts_total reporting ~3,800 EPS when running on the host versus ~3,100 EPS when running as a DaemonSet?