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

use rlimit to enforce memory limits rather than global allocators #594

Merged
merged 7 commits into from
Sep 5, 2024

Conversation

MichaelRawson
Copy link
Contributor

@MichaelRawson MichaelRawson commented Sep 3, 2024

As discussed with @quickbeam123 and related to #592. The current standard-compliant solution to memory limiting seems a bit fragile and under-reports memory use in some seemingly-random cases. Use POSIX setrlimit with RLIMIT_DATA to cause ENOMEM when we exceed the specified limit.

@quickbeam123 quickbeam123 merged commit 200cc4d into master Sep 5, 2024
1 check passed
@quickbeam123 quickbeam123 deleted the michael-memory-rlimit branch September 5, 2024 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants