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

Set the soft ulimit value more conservatively (cherrypick of #11194) #11196

Merged
merged 1 commit into from Nov 17, 2020

Conversation

stuhood
Copy link
Sponsor Member

@stuhood stuhood commented Nov 17, 2020

Problem

Big Sur seemingly sets a hard ulimit value of "maxint", which results in our soft ulimit also becoming maxint. That would be fine, but some (badly behaved, imo) libraries consume the soft ulimit as a default value for their configuration.

Solution

We are fairly certain that we don't need more than 10k file handles in standard usage, so set the soft ulimit value more conservatively to soft_limit = min(hard_limit, 10k).

[ci skip-build-wheels]

…y sets a hard value of "maxint". (pantsbuild#11194)

### Problem

Big Sur seemingly sets a hard ulimit value of "maxint", which results in our soft ulimit also becoming maxint. That would be fine, but some (badly behaved, imo) libraries consume the soft ulimit as a default value for their configuration.

### Solution

We are fairly certain that we don't need more than 10k file handles in standard usage, so set the soft ulimit value more conservatively to `soft_limit = min(hard_limit, 10k)`.

[ci skip-build-wheels]
@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling 7c8875d on stuhood:stuhood/2.0.x-pick-11194 into d57ad06 on pantsbuild:2.0.x.

@stuhood stuhood merged commit 68348c6 into pantsbuild:2.0.x Nov 17, 2020
@stuhood stuhood deleted the stuhood/2.0.x-pick-11194 branch November 17, 2020 21:09
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.

None yet

3 participants