pktstat-bpf

Per-flow traffic monitor for Linux with four eBPF capture modes

Image 1 of 1: pktstat-bpf TUI listing flows by bitrate, with process names from KProbes mode

Counts traffic per flow from the kernel and reports bitrate, protocol and L7 labels such as TLS, QUIC and PostgreSQL, in a CLI report or a TUI. TC, XDP, KProbes and cgroup modes trade kernel floor, direction and process attribution.

Trade-offs

  • XDP over the default TC hook for speed, at the cost of egress statistics, since XDP runs only on the ingress path.
  • KProbes for process IDs, names and cgroup paths. They sit closest to userspace and carry the highest overhead of the modes.
  • Flow counters in a per-CPU LRU hash, summed on read, so churn can evict flows. A one-entry array alongside it cannot evict, which keeps the byte total exact.

Q&A4

Each mode counts at a different layer. XDP and TC sit close to wire bytes, cgroup_skb leaves out the Ethernet header and KProbes count app payload, so the columns do not compare across modes.

Reviews

Loading reviews

    More in eBPF

    See all 8 →
    • XDPerfXDP traffic generator with WASM packet plugins
    • BeeperApplication-layer parser for eBPF programs
    • rocketplaneIOSelf-hosted Kubernetes observability with transaction-gated agent actions
    • GhostScopeSource-aware eBPF tracer for live userspace processes
    • kernwatchTerminal dashboard for Linux kernel observability
    • ProcInShWeb-based Linux process inspector with a 3D process space

    More in Observability

    See all 33 →
    • cerberusPrometheus, Loki and Tempo HTTP gateway for ClickHouse
    • agent-traceSession recorder and replay tool for coding agents
    • QueueScopeNative macOS dashboard for BullMQ queues on Redis
    • NerdlogMulti-host TUI log viewer with a timeline histogram and no central server
    • duckdb-otlpOpenTelemetry ingest and SQL queries in DuckDB

    More in Networking

    See all 23 →
    • blitcpFile copier that reads in disk order, dedupes and streams over raw SSH
    • SnitchPer-app network monitor and outbound firewall for the desktop
    • ConduitSSH, Mosh and SFTP client for phones with no account and no cloud sync
    • rustbgpdAn API-first BGP daemon in Rust for route servers and route reflectors
    • ADNSAndroid Private DNS controller with a native NextDNS dashboard and no VPN
    • Reticulum Mobile AppOff-grid encrypted messaging over LoRa or TCP on the Reticulum mesh, for phones