Skip to content

Add support for using all cores on windows machines with -p max flag - #565

Merged
Pete Gonzalez (octogonz) merged 3 commits into
microsoft:masterfrom
christiango:chrisgo/max-parallel
Mar 19, 2018
Merged

Pete Gonzalez (octogonz) merged 3 commits into
microsoft:masterfrom
christiango:chrisgo/max-parallel

Conversation

@christiango

Copy link
Copy Markdown
Member

A change was made recently to rush to make it such that the default parallelism is set to be 1 less than the number of cores on windows. This was to address some performance issues windows users were experiencing when trying to do other tasks while a rush build was running.

However, in CI environments, we want the maximum amount of available parallelism to get faster builds. This change introduces a 'max' argument to the -p flag that always sets the paralellism to equal the number of cores on the CPU.

description: 'Specify the number of concurrent build processes.'
description: 'Specify the number of concurrent build processes'
+ ` A value of 'max' can be used to achieve the maximum default parallelism.`
+ ' If omitted, the parallelism will be based on the number of CPU cores.'

@octogonz Pete Gonzalez (octogonz) Mar 16, 2018 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe clarify:

'The value "max" can be specified to indicate the number of CPU cores. If this parameter omitted, the default value depends on the operating system and number of CPU cores." #Resolved

key: 'COUNT',
description: 'Specify the number of concurrent build processes.'
description: 'Specify the number of concurrent build processes'
+ ` A value of 'max' can be used to achieve the maximum default parallelism.`

@octogonz Pete Gonzalez (octogonz) Mar 16, 2018 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

' [](start = 29, length = 1)

English language uses double-quotes #Resolved

@octogonz Pete Gonzalez (octogonz) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

:shipit:

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.

2 participants