Skip to content

Reason for eBPF maps to be BPF_MAP_TYPE_LRU_HASH #1888

Answered by grcevski
ananthvanchip asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ananthvanchip, it's mostly around safety of usage.

There's always limits on how many active kprobes can be run at a given and if the kernel is handling heavy memory pressure, some probes may not trigger. The limit on max kretprobes is more obvious, but there can be number of reasons a probe may not run, especially under heavy load. Since Beyla runs in daemonset mode and can run for the lifetime of the cluster, rather than a sidecar specific to an application, it's possible to permanently leak data in non LRU map over long periods of time if certain probes don't fire. With these kinds of leaks, eventually we'll break the overall functionality.

Once we started sharing maps between the u…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by grcevski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants