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

too much package build parallellism #978

Closed
gregwebs opened this issue Sep 11, 2015 · 5 comments
Closed

too much package build parallellism #978

gregwebs opened this issue Sep 11, 2015 · 5 comments

Comments

@gregwebs
Copy link
Contributor

We have a single core CI server. stack test appears to try to build all the packages at once (before testing commences, judging from the Progress output). As a result, we run out of (4 GB) of memory

@snoyberg
Copy link
Contributor

What happens if you pass in -j 1 explicitly?

On Fri, Sep 11, 2015, 3:21 AM Greg Weber notifications@github.com wrote:

We have a single core CI server. stack test appears to try to build all
the packages at once (before testing commences, judging from the Progress
output). As a result, we run out of (4 GB) of memory


Reply to this email directly or view it on GitHub
#978.

@borsboom
Copy link
Contributor

Does this command return a correct number of processors? It should match grep ^processor /proc/cpuinfo | wc | awk '{print $1}'.

$ runghc <<END
import GHC.Conc
main = print =<< getNumProcessors
END

@gregwebs
Copy link
Contributor Author

-j 1 seems to work. Weird thing is that adding on any other options (such as -j 1 --pedantic) does not parse at the CLI. I will look at the # of processors

@borsboom
Copy link
Contributor

Weird thing is that adding on any other options (such as -j 1 --pedantic) does not parse at the CLI.

See #519

@gregwebs
Copy link
Contributor Author

Thanks for the #519 pointer, now I can properly specify -j.

Sorry for the noise, This is running inside a CircleCI container which appears to be on a 32 core machine :). There is some other technique that is limiting the active processors down to 1.

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

No branches or pull requests

3 participants