-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump fd limit on macos when running rt tests
OS X defaults the ulimit for open files to 256 for programs launched from the Terminal (GUI apps get a higher default). Unfortunately this is too low for the rt tests, which deliberately overcommit and create a lot of threads (which means a lot of schedulers, and each scheduler needs at least 2 fds). By calling sysctl() and setrlimit() we can bump the fd limit up to the maximum allowed (on stock OS X it's 10240). Fixes #7772.
- Loading branch information
Showing
1 changed file
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2001cc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from brson
at lilyball@2001cc0
2001cc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging kballard/rust/fd-limit = 2001cc0 into auto
2001cc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kballard/rust/fd-limit = 2001cc0 merged ok, testing candidate = 34101d2
2001cc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/709
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/712
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt/builds/713
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt-vg/builds/706
success: http://buildbot.rust-lang.org/builders/auto-mac-all-opt/builds/709
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/727
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt/builds/729
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/727
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt/builds/731
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt-vg/builds/736
success: http://buildbot.rust-lang.org/builders/auto-linux-all-opt/builds/729
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/712
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt/builds/726
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/500
2001cc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 34101d2