On 29-Jan-25 11:02, Alexander Kanavin wrote:
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know
the content is safe.
I just ran some benchmarks to see how much disabling parallel
codegen-units affects build times (the parallelism is only at the
crate level after this change), and unfortunately the increase has
been significant.
As of current master, rust 1.81.0:
rust-native 527 seconds -> 853 seconds
rust 1123 seconds -> 1688 seconds
I presume the codegen-units parallel issue can be fixed properly by
adding a sort somewhere for determinism, but finding that spot is
probably very challenging. We do need to get to it though.
Can you please point to the request/effort to set up reproducibility
tests upstream?
Sure Alex, I will look into it the ways to optimize it. As I remember, when the
'codegen-units' count is increased it is causing rustdoc binaries are not
reproducible.
I've to re-test it with some higher values of 'codegen-units' on latest rust
sources. I'll test that.
You can simply drop the patch and then rust will pick a default value
of 16 for it. On 1.81.0 that still makes rustdoc unreproducible, I
just checked that.
Thanks for confirmation Alex.
We already have an open issue for the reproducibility issue with rust
community and there the /rustdoc /issue with 'codegen_units' also mentioned.
https://github.com/rust-lang/rust/issues/134589#issue-2753629767
We will work with upstream to find the proper fix for this issue.
Thanks,
Sundeep K.
Alex
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#210434):
https://lists.openembedded.org/g/openembedded-core/message/210434
Mute This Topic: https://lists.openembedded.org/mt/107561284/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-