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
docs: document balancing cores and max-jobs #2749
Conversation
<listitem><para> | ||
Dictates how many separate derivations will be built at the same | ||
time. If you set this to zero, the local machine will attempt to | ||
do no builds (forcing it to be built remotely.) |
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.
will attempt to do no build
-> will do no builds
.
<listitem><para> | ||
Dictates how many cores each derivation is allowed to use. If | ||
you set this to zero, the builds will be given access to all the | ||
cores of your system. |
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.
"Dictates" -> "suggests" (and drop the second sentence). There is nothing that stops a derivation from using more cores. In practice, the "cores" option translates to GNU Make's -j <cores>
flag.
</tbody> | ||
</table> | ||
|
||
<para>It is up to the derivations' build scirpt to respect |
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.
scirpt
-> script
.
ping @grahamc I still think this is really valuable, and would love to have it in the manual :) |
a9e32d3
to
3601b8a
Compare
Thanks @jonringer, I've updated the docs and addressed @edolstra's feedback. Would you might giving it a read for mistakes? I have a tendency to make silly mistakes :x |
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.
Even though English is my first language, i still struggle greatly with it as well :).
Looks good to me, except i think there's an extra newline added accidentally.
<xi:include href="diff-hook.xml" /> | ||
|
||
|
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.
Extra white space? I don't see 2 newlines anywhere else.
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.
Thanks! Fixed up!
e92c925
to
b33b434
Compare
b33b434
to
cf6172f
Compare
Write a bit about the balance between max-jobs and cores.