~/talk

Using BPF Iterators to Gain Insight into Kubernetes

github:alban
slides:none on file

BPF iterators (added in Linux 5.8) let the kernel itself walk tasks and sockets so a 25-line iterator yields one line per thread or TCP socket with a single read instead of thousands of /proc opens (demo compares ~5,000 syscalls vs one). Inspector Gadget uses BPF iterators via bpffs + bpftool to implement process and socket collectors, enriching results from a BPF hash map keyed by mnt namespace ID with container/pod/label strings; network iteration runs once per network namespace (practically per pod).

AI-written summary · about

  1. 0:00BPF iterators in Kubernetes
  2. 1:28BPF evolution to iterators
  3. 3:53Demo: BPF over Linux threads
  4. 7:10BPF vs traditional ps command
  5. 8:12Demo: BPF over TCP sockets
  6. 9:35Namespace isolation with BPF
  7. 10:16Enriching BPF data for Kubernetes
  8. 11:20Demo: Kubernetes process gadget
  9. 12:24Demo: Kubernetes socket gadget
  10. 13:27Container metadata for BPF enrichment
  11. 14:52BPF maps for container metadata
  12. 16:35Inspecting BPF maps for metadata
  13. 17:57Future BPF iterator enhancements
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.