-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Open
Labels
A-codegenArea: Code generationArea: Code generationC-optimizationCategory: An issue highlighting optimization opportunities or PRs implementing suchCategory: An issue highlighting optimization opportunities or PRs implementing suchI-compiletimeIssue: Problems and improvements with respect to compile times.Issue: Problems and improvements with respect to compile times.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
This is the output of cargo build -Z timings
for Servo, on a 14 cores / 28 threads machine, filtered with "Min unit time" at 10 seconds.
Edit: with Rust nightly-2019-09-28
For most of codegen for the script
crate only 3 to 4 threads seem to be CPU-bound, leaving other cores idle, despite codegen-units=16
being the default. (Results are similar if I specify it explicitly.)
Shouldn’t CPU usage be much closer to min(ncpu, codegen-units)
?
Metadata
Metadata
Assignees
Labels
A-codegenArea: Code generationArea: Code generationC-optimizationCategory: An issue highlighting optimization opportunities or PRs implementing suchCategory: An issue highlighting optimization opportunities or PRs implementing suchI-compiletimeIssue: Problems and improvements with respect to compile times.Issue: Problems and improvements with respect to compile times.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.