Netflix Releases Code for the bpftop Utility

Netflix Company presented utility bpftop, which provides an interface for monitoring the execution of eBPF programs in the Linux kernel, implemented in the style of the top utility. The utility shows performance indicators, CPU load and event processing for each eBPF program. Supports the construction of graphs to assess the dynamics of changes in execution characteristics over time. The bpftop code is written in Rust and distributed by licensed under Apache 2.0.

Main features:

Advertisement

  • Displays a list of running eBPF programs, their identifiers, type and name.
  • Shows the period and overall average execution time of each eBPF program.
  • Calculation of CPU load and processed events per second for each eBPF program.
  • Graphs of execution time, events per second and CPU load in 10-second intervals.
  • List updated every second.

One of the goals of developing bpftop is to simplify the optimization of eBPF programs and the ability to dynamically monitor the effectiveness of certain changes in eBPF programs. To obtain statistics, bpftop uses the BPF_ENABLE_STATS system call and collects information every second. To reduce overhead, statistics are collected only while the utility is running.

Thanks for reading:

Advertisement