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

increase RLIMIT_NOFILE locally on Linux and macOS #1107

Merged
merged 1 commit into from Jun 8, 2020

Conversation

EduardoRFS
Copy link
Collaborator

This PR closes #1057

Revery is working with this patch without using ulimit

How it works

It uses setrlimit to increase RLIMIT_NOFILE to 4096 if it isn't big enough, this should be completely safe as setrlimit applies only to the current process and his children.

@ManasJayanth
Copy link
Member

@EduardoRFS Since we're touching the system settings, I think we should do this behind a prompt once we find that the limits arent high enough

@EduardoRFS
Copy link
Collaborator Author

@prometheansacrifice this isn't system settings, is only related to the session inside of esy, so esy shell will have a ulimit -Sn of 4096, but after it closes the session goes back to the default(256 in macOS)

@ManasJayanth
Copy link
Member

Ah, I misunderstood.

@ManasJayanth ManasJayanth merged commit 7219cc4 into esy:master Jun 8, 2020
@bryphe
Copy link
Collaborator

bryphe commented Jun 8, 2020

Nice, thanks @EduardoRFS ! I hit this all the time

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.

MacOS: Too many open files
3 participants