-
Notifications
You must be signed in to change notification settings - Fork 376
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/sensors: reduce ratelimit map memory footprint #2551
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Since the rate limit feature is only available for LARGE_BPF_PROG, let's remove the unnecessary map and the struct from the small BPF progs. Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
mtardy
added
the
release-note/bug
This PR fixes an issue in a previous release of Tetragon.
label
Jun 13, 2024
It's ready for review but it would be nice to add a test for |
kevsecurity
approved these changes
Jun 14, 2024
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.
LGTM
This commit is very similar to 22510d9 For every ratelimit map loaded, we add ~10MB of kernel memory, and each kprobe added was adding a ratelimit map. We now only load that map if the user used the rateLimit field in a matchActions to reduce the memory footprint of this feature when unused. Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
Add a NoRateLimit test and a RateLimitTest. Signed-off-by: Kevin Sheldrake <kevin.sheldrake@isovalent.com>
mtardy
force-pushed
the
pr/mtardy/ratelimit-memory-shrink
branch
from
June 14, 2024 17:11
3676dc4
to
5c87488
Compare
✅ Deploy Preview for tetragon ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
mtardy
added
needs-backport/1.0
This PR needs backporting to 1.0
needs-backport/1.1
This PR needs backporting to 1.1
needs-backport/0.11
and removed
needs-backport/0.11
labels
Jun 14, 2024
This was referenced Jun 19, 2024
mtardy
added
backport-done/1.1
The backport of this PR is complete
and removed
needs-backport/1.1
This PR needs backporting to 1.1
labels
Jul 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport-done/1.1
The backport of this PR is complete
needs-backport/1.0
This PR needs backporting to 1.0
release-note/bug
This PR fixes an issue in a previous release of Tetragon.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For every ratelimit map loaded, we add ~10MB of kernel memory, and each kprobe added was adding a ratelimit map. We now only load that map if the user used the rateLimit field in a matchActions to reduce the memory footprint of this feature when unused.