-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Possible rustc build time regression between 2017-04-14 and 2017-06-21 with CARGO_INCREMENTAL=1 and --release #42834
Comments
I added https://github.com/MaikKlein/regression/blob/master/output-04-14 and https://github.com/MaikKlein/regression/blob/master/output-06-21 Here seems to be the problem 2017-06-21
|
Make sure it is not fixed by #42771 |
This should contain #42771
Down from 471 seconds to 346 seconds. |
I suspect this is because of rust-lang/cargo#4065 which makes The reasoning behind this change is that we don't need to compile things from @rust-lang/cargo, is there a way to keep |
I opened rust-lang/cargo#4234 in relation to this. |
rust-lang/cargo#4234 has been merged. Care to give it another try with the latest Cargo, @MaikKlein? |
@michaelwoerister It is much better now.
Although I am not sure about the multi threading. I know gnome-system-monitor is not the most reliable tool but this is what the compilation looks. https://i.imgur.com/qyHaC5f.png
|
Does the graph stay that way? Only the LLVM part is multi-threaded, so the other cores can only be used towards the end of compilation. On the other hand, if this is a build with full re-use, then the LLVM part is skipped entirely and you won't see any multi-threading. |
@michaelwoerister I am doing I watched it now a couple of times and it only uses multiple cores in the beginning. After around 60s only one core is at 100% for the rest of the compilation. (see the image above) Are there any good tools to record data for cpu usage? I looked at |
@michaelwoerister I actually also compiled it on Windows 10 because I am running an older kernel on linux but I see exactly the same behavior. Only ~8% of my CPU is being used. |
@MaikKlein, I just tried it myself and the problem seems to be that one of the codegen units in the |
Here's the relevant
|
@michaelwoerister That makes sense, I guess this issue can be closed now? |
Thanks for the report! |
I created an repository to recreate this issue https://github.com/MaikKlein/regression/tree/59cab5ac57a668d52d33fa1e9ebca4c0b6fc9c3b
I am on Ubuntu 16.04 x64.
The text was updated successfully, but these errors were encountered: