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 maximum open files for each server process on Darwin (WebKit export) #25773

Merged
merged 2 commits into from
Sep 24, 2020

Conversation

gsnedders
Copy link
Member

Export of https://bugs.webkit.org/show_bug.cgi?id=215829 & its regression fix https://bugs.webkit.org/show_bug.cgi?id=216823.

Delayed export to verify that this stopped the failures from happening, and we've not seen any over the past three days so I'm assume this fixed it.

…ugs.webkit.org/show_bug.cgi?id=215829

Patch by Sam Sneddon <gsnedders@apple.com> on 2020-09-21
Reviewed by Youenn Fablet.

macOS has a much lower limits than other OSes by default, and the iOS bots often run into it with their level of parallel test execution. This bumps the limit for each wptserve process up to 2048, which is double the limit on Debian, and should probably be safe.

* web-platform-tests/tools/serve/serve.py:
(ServerProc.create_daemon):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@267354 268f45c-cd09-0410-ab3c-d52691b4dbfc
…gs.webkit.org/show_bug.cgi?id=216823

Patch by Sam Sneddon <gsnedders@apple.com> on 2020-09-22
Reviewed by Darin Adler.

* web-platform-tests/tools/serve/serve.py:
Move the resource import to the local point behind the Darwin platform
test. This code is only run once per process initiation, hence it makes
no difference to have the import locally.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@267417 268f45c-cd09-0410-ab3c-d52691b4dbfc
Copy link
Member

@Hexcles Hexcles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC, RLIMIT_NOFILE is the limit on file descriptors. Do we not close the files after serving them? Or do we actually have 256 files opened together?

@Hexcles
Copy link
Member

Hexcles commented Sep 24, 2020

Note that this might have been answered in the WebKit issue which timed out loading for me...

@gsnedders
Copy link
Member Author

@Hexcles remember that sockets are also FDs; it's quite possibly #8369 showing its face again (where the majority of FDs are TCP sockets in the TIME_WAIT state) combined with Darwin having a much lower default RLIMIT_NOFILE (256, versus 1024 on most of the Linux systems I've looked on) and the iOS bots running with multiple bots hitting a single server.

Copy link
Member

@Hexcles Hexcles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Yeah and if we indeed never close the file descriptors, we'd run out of 2048 fairly quickly too...

@gsnedders gsnedders merged commit b3b32e6 into web-platform-tests:master Sep 24, 2020
@gsnedders gsnedders deleted the webkit-export-215829 branch September 24, 2020 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants