---
name: "bpftune-netns"
section: "8"
platform: "linux"
package: "bpftune"
version: "0.0~git20250314.8fd59cc-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/bpftune-netns"
---

# bpftune-netns(8)

bpftune plugin for network namespace awareness

## NAME

BPFTUNE-NETNS - bpftune plugin for network namespace awareness

## DESCRIPTION

bpftune needs to be namespace-aware; when it receives events, they are tied to a specific netns cookie, and if we see an event in that netns we want to be able to auto-tune within it and not in the global network namespace.

On startup, the netns tuner iterates over the various sources of netns info to collate a list of network namespaces, and supplements this by watching for addition of network namespaces via BPF. Using this info, we can then maintain tuner state on a per-namespace basis.

Per-namespace support requires netns cookie support; running "bpftune -S" shows if this is present.

## SEE ALSO

[**bpf**(2)](/bpf/2.md), [**bpftune**(8)](/bpftune/8.md),
