Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/bench: disable BPF stats collection at the end of execution #1735

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

lmb
Copy link
Contributor

@lmb lmb commented Nov 10, 2023

Turning on BPF stats collection causes overhead, so it makes sense to turn it off at the end of benchmarking. On newer kernels we can use ebpf.EnableStats as a safer interface.

Turning on BPF stats collection causes overhead, so it makes sense
to turn it off at the end of benchmarking. On newer kernels we can
use ebpf.EnableStats as a safer interface.

Signed-off-by: Lorenz Bauer <[email protected]>
@lmb lmb requested a review from a team as a code owner November 10, 2023 11:20
@lmb lmb requested a review from tixxdz November 10, 2023 11:20
@lmb lmb added the release-note/misc This PR makes changes that have no direct user impact. label Nov 10, 2023
@lmb
Copy link
Contributor Author

lmb commented Nov 10, 2023

Not sure how to test this exactly, but the code compiles xD

Copy link
Contributor

@kkourt kkourt left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks!

@kkourt kkourt merged commit dda3bb6 into cilium:main Nov 10, 2023
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants