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

[qob] don’t use unbounded threads reading results #13634

Merged
merged 1 commit into from Sep 15, 2023

Conversation

patrick-schultz
Copy link
Collaborator

@patrick-schultz patrick-schultz commented Sep 15, 2023

CHANGELOG: fix a bug which caused jobs with a large number of partitions (close to 100k) to run out of memory on the driver after all partitions finish.

Cap number of threads allocated when reading results of a cda on the driver.

Still waiting on a test to confirm this fixes the bad scaling with number of partitions.

We were reading cda results with a threadpool containing one thread per partition, but kept all but 1000 threads blocked. This changes to use a threadpool of 1000 threads.

We still use a surprising amount of memory when reading results, but this change will likely allow jobs with ~100k partitions to complete.

fixes #13533

Cap number of threads allocated when reading results of a cda on the driver.
Copy link
Collaborator

@danking danking left a comment

Choose a reason for hiding this comment

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

Approved with gusto!

@danking danking merged commit 795c8fb into hail-is:main Sep 15, 2023
8 checks passed
@patrick-schultz patrick-schultz deleted the qob-agg-memory-use branch October 30, 2023 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[query] Hail uses more than 2.7 gigabytes of RAM to load ~100,000 export VCF results
2 participants