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

Dynamic workers based on RAM usage #44

Closed
thoughtfuldata opened this issue Apr 24, 2023 · 2 comments
Closed

Dynamic workers based on RAM usage #44

thoughtfuldata opened this issue Apr 24, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@thoughtfuldata
Copy link

thoughtfuldata commented Apr 24, 2023

Description

Change the number of workers based on RAM availability

Use case / motivation

I would like for mapply number of workers to be dynamic with memory intensive operations or at least to consider RAM availability

Related Issues

I have detailed the issue in #43. The main complaint there is that there is no message telling me that not sufficient RAM

@thoughtfuldata thoughtfuldata added the enhancement New feature or request label Apr 24, 2023
@ddelange
Copy link
Owner

Hi @thoughtfuldata 👋

This sounds like a cool feature! However in reality I think it's near impossible to estimate RAM usage in advance, without running through it (and crashing) at least once beforehand.

Currently, the amount of workers is calculated in advance, and I think dynamic pool resize would mean a lot of new (low-level) code to write and maintain.

In these scenarios, I think your best bet is to run a small sample and then adjust n_workers accordingly for the big run.

Hope that helps!

@ddelange ddelange closed this as not planned Won't fix, can't repro, duplicate, stale Apr 24, 2023
@ddelange
Copy link
Owner

Probably a duplicate of upstream issue uqfoundation/pathos#243

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants