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

AIX takes a long time to start child processes #21

Closed
NattyNarwhal opened this issue Jun 17, 2018 · 1 comment
Closed

AIX takes a long time to start child processes #21

NattyNarwhal opened this issue Jun 17, 2018 · 1 comment
Labels
area: runtime This issue affects the Mono runtime os: aix This issue affects AIX priority; low This issue isn't too important status: workaround This issue has a workaround

Comments

@NattyNarwhal
Copy link
Member

This is due to mono/mono#6555. When your file descriptor (NOFILES) limit is at unlimited or a similarly high number, it can take a very long time (30 minutes worst case) for Mono to actually start the process. This is due to file descriptor closing the runtime does after forking as the child but before execing the new process.

This problem manifests itself on the CI server for AIX when running the test suite driver.

To remedy this on AIX, you can either set a limit of the number of files the user or system can open, or you can drop the amount of file handles opened for your session as long as it's open by running ulimit -n $NUMBER_OF_DESCRIPTORS - 20000 is a reasonable value. (Ensure that the value you lower is to is below your current hard FD limit.) You can use ulimit -n without a parameter to view the current limit.

This doesn't affect PASE due to it having a hard 2000 FD limit, which isn't enough to make fork-and-exec for Mono noticeably slower.

@NattyNarwhal NattyNarwhal added os: aix This issue affects AIX status: workaround This issue has a workaround labels Jun 17, 2018
@NattyNarwhal NattyNarwhal added area: runtime This issue affects the Mono runtime priority; low This issue isn't too important labels Jul 5, 2018
@NattyNarwhal
Copy link
Member Author

Resolved upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: runtime This issue affects the Mono runtime os: aix This issue affects AIX priority; low This issue isn't too important status: workaround This issue has a workaround
Projects
None yet
Development

No branches or pull requests

1 participant