-
Notifications
You must be signed in to change notification settings - Fork 31
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
NETOBSERV-1091: remove CO-RE file and extensions as that causes douple allocations #133
Conversation
Signed-off-by: msherif1234 <mmahmoud@redhat.com>
/ok-to-test |
New image: quay.io/netobserv/netobserv-ebpf-agent:5fee00e. It will expire after two weeks. |
Codecov Report
@@ Coverage Diff @@
## main #133 +/- ##
=======================================
Coverage 40.60% 40.60%
=======================================
Files 31 31
Lines 2054 2054
=======================================
Hits 834 834
Misses 1181 1181
Partials 39 39
Flags with carried forward coverage won't be shown. Click here to find out more. |
@msherif1234: This pull request references NETOBSERV-1091 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@msherif1234: This pull request references NETOBSERV-1091 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@msherif1234: This pull request references NETOBSERV-1091 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@@ -13,11 +13,11 @@ | |||
until an entry is available. | |||
4) When hash collision is detected, we send the new entry to userpace via ringbuffer. | |||
*/ | |||
#define BPF_NO_PRESERVE_ACCESS_INDEX |
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.
can you add a comment explaining briefly the reason (or just linking to the JIRA and/or libpbf issue) ?
I'm fine to merge it and also backport on 1.3 |
I linked the issue as well as the PR that trigger this in the PR description shouldn't that be enough ? |
/label qe-approved |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jotak The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* Optimize ebpf agent map memory usage - switch to use pointer to metric instead of metric - manuall trigger GC after flow eviction complete Signed-off-by: msherif1234 <mmahmoud@redhat.com> * Fix memory and cpu scale issue work around in #133 following up on cilium/ebpf#1063 it seems we have a way to fix resources issues Signed-off-by: msherif1234 <mmahmoud@redhat.com> (cherry picked from commit b9c9a03) --------- Signed-off-by: msherif1234 <mmahmoud@redhat.com>
it was noticed cpu and memory are higher than 1.2 release
that change was triggered by #110
it seems using co-re results in a significant memory and cpu increase cilium/ebpf#1063 is opened against cilium/ebpf to track this, issue has been seen even with latest version of the lib, we don't use CO-RE apis at all so for now we will remove it and once we have fix we will re-enable
diag on left side with this PR changes the diag on right is with 1.3 baseline
![image](https://private-user-images.githubusercontent.com/12748167/244801782-cd7ea2af-7fea-4303-8397-5e29f5cb4c79.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0NTgwNDcsIm5iZiI6MTcyNDQ1Nzc0NywicGF0aCI6Ii8xMjc0ODE2Ny8yNDQ4MDE3ODItY2Q3ZWEyYWYtN2ZlYS00MzAzLTgzOTctNWUyOWY1Y2I0Yzc5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDAwMDIyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJlZmM5YTEyNTE4YzlhZWI1NzViYTQ1MjlmNjIwODUwMzE2ZWRkZjVlMDI1YzNjYmRhOWJmOGQwNWJkYzdhYTMmWC1BbXotU2lnbmVkSGVh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