-
Notifications
You must be signed in to change notification settings - Fork 35
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
DONTMERGE: NETOBSERV-983: avoid preallocating huge chunk of memory by default #119
Conversation
using BPF_F_NO_PREALLOC to allocate memory as needed and avoid default preallocation to help with better scale Signed-off-by: msherif1234 <[email protected]>
@msherif1234: This pull request references NETOBSERV-975 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@msherif1234: This pull request references NETOBSERV-975 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. |
Codecov Report
@@ Coverage Diff @@
## main #119 +/- ##
=======================================
Coverage 41.80% 41.80%
=======================================
Files 30 30
Lines 2050 2050
=======================================
Hits 857 857
Misses 1155 1155
Partials 38 38
Flags with carried forward coverage won't be shown. Click here to find out more. |
/ok-to-test |
New image: ["quay.io/netobserv/netobserv-ebpf-agent:d8ab1c2"]. It will expire after two weeks. |
@msherif1234: This pull request references NETOBSERV-983 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. |
/ok-to-test |
@dushyantbehl and/or @praveingk that's just a small config change ; does it seems good to you? |
if we are migrating to global hashmap #118 then there is no need for this PR I am already taking care of the same there |
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.
Looks good to me.
@msherif1234 Even with a global hashmap I believe the spirit of your approach works which is just lazy allocation of the Hashmap memory so I feel this can be added even if we have global or local hashmap. |
right the global hashmap PR has the same change as well hence we won't need this PR anymore once the #118 merge |
using BPF_F_NO_PREALLOC to allocate memory as needed and avoid default preallocation to help with better scale
for reference https://www.kernel.org/doc/html/next/bpf/map_hash.html