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

Lower the default local parallelism, and align the number of swimlanes to it #10499

Merged

Conversation

stuhood
Copy link
Sponsor Member

@stuhood stuhood commented Jul 29, 2020

Problem

It's pretty easy to overwhelm a machine with 2*multiprocessing.cpu_count() processes running (especially since it frequently reports the number of virtual cores rather than physical cores), so this isn't a great default for local parallelism. Additionally, the number of swimlanes rendered in the dynamic UI is out of alignment with our configured parallelism.

Solution

Lower the default parallelism to multiprocessing.cpu_count(), and align the swimlane count.

[ci skip-build-wheels]

…s to the amount of parallelism.

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

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

Thanks!

@stuhood stuhood merged commit 58ede94 into pantsbuild:master Jul 29, 2020
@stuhood stuhood deleted the stuhood/adjust-parallelism-defaults branch July 29, 2020 02:09
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.

None yet

3 participants