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

Feature Request: Configurable Memory Limit #3446

Open
shane-lawrence opened this issue Jan 14, 2025 · 1 comment
Open

Feature Request: Configurable Memory Limit #3446

shane-lawrence opened this issue Jan 14, 2025 · 1 comment

Comments

@shane-lawrence
Copy link
Contributor

Motivation
On some busy nodes, Falco's memory usage exceeds 8 GB. I'm not sure if it's storing a lot of data on pids, threads, fds, sockets, connection state, or what else may be using all of that memory but it takes resources away from other applications. I've been using k8s memory limits to restrict this, but that is enforced through OOMKills. A more graceful way to limit memory usage would be helpful. It would also be great to get a better understanding of what is using up so much memory.

Feature
I would like a configuration setting that limits the amount of memory Falco uses to a specified maximum value and drops state information that exceeds the limit without crashing the process.

Alternatives
If the memory usage was improved more generally on large nodes then I would not have a need for this feature.

Additional context

@FedeDP
Copy link
Contributor

FedeDP commented Jan 21, 2025

Hi!
In the falco.yaml you can find the falco_libs.thread_table_size key: https://github.com/falcosecurity/falco/blob/master/falco.yaml#L1307.
You can try to play wit hit to limit the amount of threads stored by libs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants