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

Memory optimizations: remove BTF and kallsyms caches #2937

Merged
merged 2 commits into from
Sep 20, 2024

Commits on Sep 20, 2024

  1. [ksyms] Do not cache ksyms to reduce memory consumption

    We use ksyms for checking the proper exit hooks when loading the base
    sensor. Furthermore, we use it when we add a kprobe policy for a
    function that is part of a kernel module.
    
    Having that always in memory, uses a lot of memory. This patch makes the
    read of ksyms when we need that.
    
    Signed-off-by: Anastasios Papagiannis <[email protected]>
    tpapagian committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    8ccba6c View commit details
    Browse the repository at this point in the history
  2. [btf] Flush kernel spec (BTF) after loading a sensor

    This patch flushes the BTF when we complete the loading of a sensor.
    
    Signed-off-by: Anastasios Papagiannis <[email protected]>
    tpapagian committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    b04a57f View commit details
    Browse the repository at this point in the history