-
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 memory footprint of unused fdinstall maps and various fixes #2563
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
release-note/bug
This PR fixes an issue in a previous release of Tetragon.
needs-backport/0.11
needs-backport/1.0
This PR needs backporting to 1.0
needs-backport/1.1
This PR needs backporting to 1.1
and removed
needs-backport/0.11
labels
Jun 14, 2024
mtardy
force-pushed
the
pr/mtardy/fdinstall-map-memory
branch
2 times, most recently
from
June 14, 2024 17:59
5c19dbd
to
1b4c684
Compare
olsajiri
reviewed
Jun 18, 2024
Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
Previous condition was buggy and should have been: hasStackTrace = hasStackTrace || KernelStackTrace || UserStackTrace instead of : hasStackTrace = KernelStackTrace || UserStackTrace Using a function simplify this. Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
mtardy
force-pushed
the
pr/mtardy/fdinstall-map-memory
branch
from
June 19, 2024 08:50
1b4c684
to
f0189d3
Compare
✅ Deploy Preview for tetragon ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
mtardy
force-pushed
the
pr/mtardy/fdinstall-map-memory
branch
from
June 19, 2024 09:07
f0189d3
to
a44a1fa
Compare
kkourt
approved these changes
Jun 19, 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, just a minor not for your consideration.
Resize the fdinstall_map if needed to save memory, thus we are saving ~11MB of kernel memory by kprobe that are not using FollowFD, UnfollowFD or CopyFD. Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
mtardy
force-pushed
the
pr/mtardy/fdinstall-map-memory
branch
from
June 19, 2024 10:45
a44a1fa
to
2631f9b
Compare
mtardy
added
backport-done/1.0
backport-done/1.1
The backport of this PR is complete
and removed
needs-backport/1.0
This PR needs backporting to 1.0
needs-backport/1.1
This PR needs backporting to 1.1
labels
Jul 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport-done/1.0
backport-done/1.1
The backport of this PR is complete
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.
The code is not great but it fixes the issue, maybe we can do it more elegantly idk