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

docs: document balancing cores and max-jobs #2749

Merged
merged 1 commit into from Jul 19, 2019

Conversation

grahamc
Copy link
Member

@grahamc grahamc commented Mar 28, 2019

Write a bit about the balance between max-jobs and cores.

<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.)
Copy link
Member

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.
Copy link
Member

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
Copy link
Member

@edolstra edolstra Mar 29, 2019

Choose a reason for hiding this comment

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

scirpt -> script.

@jonringer
Copy link
Contributor

ping @grahamc

I still think this is really valuable, and would love to have it in the manual :)

@grahamc
Copy link
Member Author

grahamc commented Jul 18, 2019

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

Copy link
Contributor

@jonringer jonringer left a 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" />


Copy link
Contributor

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.

Suggested change

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks! Fixed up!

@edolstra edolstra merged commit 1bace40 into NixOS:master Jul 19, 2019
@grahamc grahamc deleted the docs-cores-max-jobs branch July 19, 2019 12:40
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