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
haskell: tune generic-builder for more parallel build performance #86948
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks sensible to me, but one question:
If it is done at the ghcWithPackages
level, do/can/will we also have the ability to override it per Haskell package? I am suspecting that there might be certain large packages for which we may need to tune down -j
or -A
to not consume too much memory on builders that have less than the casual 3 TB RAM.
It just occurred to me that the change to the ghcWithPackages wrapper is unnecessary, because you can do the same thing in
there has the same effect -- at least if you're building with cabal-install. I'm pretty sure an identical mechanism exists for |
9c4ac9c
to
7255d30
Compare
Raise the maximum number of cores used for parallel building from 4 to 16. Increase the size of the allocation area for GHC's garbage collector from 1 MiB to 64 MiB. See https://www.twitch.tv/videos/611899011 for the motivation for this change.
7255d30
to
f6df169
Compare
I'll merge this change to |
Raise the maximum number of cores used for parallel building from 4 to 16. Increase the size of the allocation area for GHC's garbage collector from 1 MiB to 64 MiB.
See https://www.twitch.tv/videos/611899011 for the motivation for this change.