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

Remove cap on number of jobs? #3191

Closed
mistydemeo opened this issue Feb 25, 2016 · 4 comments
Closed

Remove cap on number of jobs? #3191

mistydemeo opened this issue Feb 25, 2016 · 4 comments

Comments

@mistydemeo
Copy link
Contributor

cabal hardcodes the maximum number of build jobs to 64:

| n > 64 -> Left "You probably don't want that many jobs."

When reviewing #1142, I didn't see a specific rationale given; maybe this was just trying to restrict it to a sane set of values, or avoid typos? We ran into this in Homebrew - Homebrew/legacy-homebrew#49509. Homebrew sets the number of build jobs to the number of threads, usually 2x the number of CPUs. The user in question has a server with two 18-core CPUs, or 72 logical threads, so Homebrew automatically sets 72 build jobs for most software; since this is above the magic number of 64, cabal-install errors out.

@23Skidoo
Copy link
Member

Sure, it can be bumped or removed entirely.

@mistydemeo
Copy link
Contributor Author

How about removing it entirely?

@23Skidoo
Copy link
Member

Fine with me.

@mistydemeo
Copy link
Contributor Author

Does #3192 look suitable?

23Skidoo pushed a commit that referenced this issue Feb 26, 2016
Fixes #3191.

(cherry picked from commit d46e71d)
23Skidoo pushed a commit that referenced this issue Feb 26, 2016
Fixes #3191.

(cherry picked from commit d46e71d)
garetxe pushed a commit to garetxe/cabal that referenced this issue Mar 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants