Skip to content

Change jitdiff parallelism from coreCount * 2 to coreCount#436

Open
MihaZupan wants to merge 1 commit into
dotnet:mainfrom
MihaZupan:parallel-limit
Open

Change jitdiff parallelism from coreCount * 2 to coreCount#436
MihaZupan wants to merge 1 commit into
dotnet:mainfrom
MihaZupan:parallel-limit

Conversation

@MihaZupan
Copy link
Copy Markdown
Member

When diffing corelib+framework assemblies, the largest assemblies end up taking much longer than the rest, so by the end we're only jitting 1 or 2 dlls for a while. By turning parallelism down a bit, those large assemblies get more CPU time at the start, reducing the overall time to finish all of them.

I just did a quick test of before/after with MihuBot and it saves ~10 seconds (2m 40s => 2m 30s) on a 16-core VM when jitting two copies of runtime at the same time.
Could probably save a bit more by tweaking process priority / watching CPU usage, but this was a trivial change to make.

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.

1 participant