Skip to content

CFP-46760: eBPF Runtime Benchmarking - #101

Open
amchelapurath2023 wants to merge 1 commit into
cilium:mainfrom
amchelapurath2023:Cilium-BPF-Benchmarking
Open

CFP-46760: eBPF Runtime Benchmarking#101
amchelapurath2023 wants to merge 1 commit into
cilium:mainfrom
amchelapurath2023:Cilium-BPF-Benchmarking

Conversation

@amchelapurath2023

@amchelapurath2023 amchelapurath2023 commented Jun 26, 2026

Copy link
Copy Markdown

Summary

Introduce BPF program execution statistics tracking and telemetry based
on the Linux BPF_ENABLE_STATS syscall. This adds on-demand benchmarking
capabilities via a new 'cilium bpf benchmark' CLI subcommand and routes
cumulative execution counts and runtimes to Prometheus metrics.

Motivation

Cilium's BPF datapath currently lacks runtime visibility, making it difficult to analyze the performance impact of configuration changes or detect latency regressions in large-scale environments without SSHing into individual nodes to run bpftool or similar queries manually.

[continued in CFP]
Signed-off-by: Anshul Chelapurath achelapurath@google.com

@amchelapurath2023
amchelapurath2023 force-pushed the Cilium-BPF-Benchmarking branch 4 times, most recently from be7ec98 to f248585 Compare June 26, 2026 18:34
@amchelapurath2023

Copy link
Copy Markdown
Author

Requesting review @jrife

Comment thread cilium/CFP-46760-eBPF-Runtime-Benchmarking.md Outdated
Comment thread cilium/CFP-46760-eBPF-Runtime-Benchmarking.md Outdated
Comment thread cilium/CFP-46760-eBPF-Runtime-Benchmarking.md
Comment thread cilium/CFP-46760-eBPF-Runtime-Benchmarking.md Outdated
@amchelapurath2023
amchelapurath2023 force-pushed the Cilium-BPF-Benchmarking branch from f248585 to 390408a Compare June 29, 2026 20:28
@amchelapurath2023
amchelapurath2023 force-pushed the Cilium-BPF-Benchmarking branch from 390408a to a33f5c7 Compare July 7, 2026 20:37
Comment thread cilium/CFP-46760-eBPF-Runtime-Benchmarking.md Outdated
@amchelapurath2023
amchelapurath2023 force-pushed the Cilium-BPF-Benchmarking branch from a33f5c7 to 9b9aab0 Compare July 7, 2026 22:10
@amchelapurath2023
amchelapurath2023 marked this pull request as ready for review July 8, 2026 14:46
@amchelapurath2023
amchelapurath2023 force-pushed the Cilium-BPF-Benchmarking branch from 9b9aab0 to 17bfbd9 Compare July 8, 2026 14:53
@xmulligan

Copy link
Copy Markdown
Member

cc: @cilium/sig-datapath

Comment thread cilium/CFP-46760-eBPF-Runtime-Benchmarking.md
Comment thread cilium/CFP-46760-eBPF-Runtime-Benchmarking.md Outdated
@joestringer
joestringer requested a review from pchaigno July 16, 2026 17:35

@pchaigno pchaigno left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Thanks for the write up!

I'd be interested to know how much overhead enabling this adds. If it is insignificant (which I guess it isn't), we may consider enabling it by default. Knowing the overhead will also be key to document it properly for users.

**Begin Design Discussion:** 2026-06-26
**Cilium Release:** 1.21
**Authors:** Anshul Chelapurath <achelapurath@google.com>
**Status:** Draft

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xmulligan This CFP looks ready to go. Is all we need to change this line to Implementable and merge?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I would just update that line and since it has approval from at least one committer it is ready to merge 🙂

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made some nit changes based on feedback from cilium/cilium#47186. Thanks for the reviews everyone!

@amchelapurath2023
amchelapurath2023 force-pushed the Cilium-BPF-Benchmarking branch from 552b2a8 to cc5f2a5 Compare July 31, 2026 16:59
Signed-off-by: Anshul Chelapurath <achelapurath@google.com>
@amchelapurath2023
amchelapurath2023 force-pushed the Cilium-BPF-Benchmarking branch from cc5f2a5 to 6bee2e8 Compare July 31, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants