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

cgroup free and available memory #1302

Open
iambriccardo opened this issue Jul 8, 2024 · 2 comments
Open

cgroup free and available memory #1302

iambriccardo opened this issue Jul 8, 2024 · 2 comments

Comments

@iambriccardo
Copy link
Contributor

Hi, we are using sysinfo in https://github.com/getsentry/relay and we were wondering, the free_memory of CGroupLimits is it equivalent to Sys::new_all().free_memory()? If so, would there be a way to get available_memory?

This question arises from our need to understand how much memory is our cgroup using, excluding all the memory that can be reclaimed by the OS (Linux).

Thanks in advance!

@GuillaumeGomez
Copy link
Owner

Code is here, I'll let you take a look to confirm whether or not it does what you want.

@iambriccardo
Copy link
Contributor Author

I was looking through the code, thanks for pointing me to that! Will take an additional look

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