Skip to content
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 override_tasks maps #2692

Merged
merged 3 commits into from
Jul 19, 2024

Commits on Jul 19, 2024

  1. pkg/sensors: add doc for hasMapsSetup

    It can be confusing that only the per policy maps are configured here.
    Noting that the per kprobe setup is done elsewhere.
    
    Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
    mtardy committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    0dac20d View commit details
    Browse the repository at this point in the history
  2. pkg/sensors: reduce memory footprint of unused override maps

    Resize the override_tasks if needed to save memory, thus we are saving
    ~3MB of kernel memory by kprobe that are not using the override action.
    
    Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
    mtardy committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    d02f6c3 View commit details
    Browse the repository at this point in the history
  3. pkg/sensors: add a test for override map resize

    Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
    mtardy committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    8a93157 View commit details
    Browse the repository at this point in the history