-
Notifications
You must be signed in to change notification settings - Fork 791
feat: support program run batching with new BatchSize option #1914
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
Conversation
c9124a8 to
684226f
Compare
33ddffb to
886a64a
Compare
|
It feels like this failing test has nothing to do with mine, and it just looks like a very quirky one....
|
No, not your fault. Its a persistent flake we have not been able to figure out yet. |
|
That is a bit of a problem....😫 |
ti-mo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool, thanks for taking the time for adding a nice example!
Left one nit. Also, please don't forget to squash your 2nd commit into the 1st. 😄
Signed-off-by: Takeru Hayasaka <[email protected]>
Signed-off-by: Takeru Hayasaka <[email protected]>
886a64a to
a3db07c
Compare
|
@ti-mo san Thanks for the review. I squashed this commit too. Ready to merge now, please check! 🙏 |
|
@takehaya Thanks, merged! |

Summary
Adds BatchSize to RunOptions and plumbs it through to sys.ProgRunAttr.BatchSize, enabling multiple program executions per single
BPF_PROG_RUNsyscall.Motivation
In cases where the call overhead is high, such as with
BPF_F_TEST_XDP_LIVE_FRAMES, this option becomes desirable.I am developing my own packet generator, and I found that I need this feature for optimization.
I would be very happy if this could be accepted.