-
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
[backport v1.0] pkg/sensors: reduce ratelimit map memory footprint #2584
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
mtardy
added
kind/backport
This PR provides functionality previously merged into master.
release-note/bug
This PR fixes an issue in a previous release of Tetragon.
labels
Jun 19, 2024
mtardy
force-pushed
the
pr/mtardy/backport-v1.0-ratelimit-memory
branch
from
July 2, 2024 10:09
ef7606e
to
7fe8d49
Compare
mtardy
force-pushed
the
pr/mtardy/backport-v1.0-ratelimit-memory
branch
from
July 16, 2024 18:39
7fe8d49
to
60482a9
Compare
[ upstream commit ed824b3 ] 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>
[ upstream commit 38ab012 ] Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
[ upstream commit 850410b ] 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>
[ upstream commit 1eea47b ] Add a NoRateLimit test and a RateLimitTest. Signed-off-by: Kevin Sheldrake <kevin.sheldrake@isovalent.com>
mtardy
force-pushed
the
pr/mtardy/backport-v1.0-ratelimit-memory
branch
from
July 16, 2024 18:40
60482a9
to
ca3509c
Compare
I'm sure it's all good. LMK when it's green. |
2 tasks
[ upstream commit 9e8f005 ] For the base image to have nc.openbsd, see cilium/little-vm-helper-images@2af406c. Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
mtardy
force-pushed
the
pr/mtardy/backport-v1.0-ratelimit-memory
branch
from
July 18, 2024 17:10
32952d2
to
cef36a3
Compare
cc @kevsecurity it's green |
olsajiri
approved these changes
Jul 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
kind/backport
This PR provides functionality previously merged into master.
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.
Backport of #2551 and #2583