-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Poetry install gets killed OOM #3756
Comments
Out of curiosity, is this machine a development environment or a target environment? I suspect that the issue here is that the memory consumption is real since it is in parallel downloading, unpacking and installing (which might involve build/compile for packages like numpy). OS might be killing off the parent process. If this is not a leak, then the workaround that you have listed might be the actual solution for this scenario. Maybe generating some profiles with something like https://pythonspeed.com/products/filmemoryprofiler/ might help triage the issue. |
well, it's a dev machine, I don't have enough ram for everything so I minimized the VMs locally, I'll try the profiler but I'm wondering, how many tasks poetry executes in parallel ? I see here he's trying to install 6 packages simultaneously I would be really concerned if the same thing happens on production and creates 100 process for installing all the dependencies at once. My machine have 2 cores, poetry could use the number of CPUs (or 2 * CPUs) to execute parallel tasks and of course an option would be welcome. |
I believe you are looking for poetry/poetry/installation/executor.py Lines 66 to 76 in 129ed0e
I suspect we will need a new configuration and update the defaults maybe. |
Doing poetry install causes CPU usage to reach ~100% for an instance that has only one CPU. Possible relevant issues python-poetry/poetry#3756 python-poetry/poetry#3010
Doing poetry install causes CPU usage to reach ~100% for an instance that has only one CPU. Possible relevant issues python-poetry/poetry#3756 python-poetry/poetry#3010
Hello, any news on this issue ? the only solution I'm using right now is to disable |
I expect it's compiling numpy that is burning through RAM anyway - there's nothing much poetry can do about that. If disabling parallel works for you, great, do that. Or allocate more RAM to your VMs, 512M really isn't very much at all these days. Pretty sure that there'll be no poetry fix here. |
Correct, this is wontfix. We can tune the default parallelism, but at the end of the day if the default is too aggressive for your system resources, that's why we have the knob. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).logs:
Issue
Noticed that today my server deployments fails during the poetry install task. after investigating, figured out that poetry is getting killed by the OS, Out Of Memory.
I have a machine with very limited resources, it was working fine until I updated poetry.
After doing some research I figured out that
installer.parallel
was addedtrue
by default in version1.1.4
. when I disabled the option the deployments are not failing anymore.The text was updated successfully, but these errors were encountered: