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
0.9.12: Possible leak of open files #1835
Comments
I've also triggered a test build on Fedora 34 with Python 3.9 to see if this is Python 3.10 related. EDIT: That requires updated gast and beniget, so no dice for now. Can try later in Copr if the cause is not waht it seems to be.
|
Lines 345 to 362 in 4a07f9a
What happens here if |
I seem to be confusing closing with deleting here. It's getting late and I am getting clumsy. Will get back to this tomorrow (or later). |
In Fedora, when I build the proposed 0.9.12 version of Pythran, we run the tests with pytest-xdist. When the number of test runner processes (the
-n
argument of pytest-xdist) is low (1, 2 or 3), almost all the tests eventually fail withOSError: [Errno 24] Too many open files
.One failure typically looks like this:
A typical progress looks like this (for 1 test runner process):
For more processes, the failures appear later, e.g. this is for 3 processes:
When the number of test processes is higher (e.g. 6 or 8), the problem is not observable. Likely, this means that the number of open files raises when one Python process calls pythran (or some parts of the test) repeatedly.
The limit for open files is set to 1024. Setting it to 2048 (via
ulimit -n 2048
) makes the errors go away and the tests pass.The text was updated successfully, but these errors were encountered: