-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Dogfood -Zno-embed-metadata in the standard library
#145343
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
Conversation
|
@bors try |
Dogfood `-Zno-embed-metadata` in the compiler
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@rust-timer build 6edf4f5 |
This comment has been minimized.
This comment has been minimized.
74ef778 to
ce49790
Compare
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (6edf4f5): comparison URL. Overall result: ❌✅ regressions and improvements - please read the text belowBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -0.7%, secondary -0.8%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 3.6%, secondary 3.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 464.328s -> 465.28s (0.21%) |
|
☔ The latest upstream changes (presumably #145366) made this pull request unmergeable. Please resolve the merge conflicts. |
ce49790 to
412cf87
Compare
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Dogfood `-Zno-embed-metadata` in the compiler
This comment has been minimized.
This comment has been minimized.
412cf87 to
70e90f9
Compare
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Dogfood `-Zno-embed-metadata` in the compiler
This comment has been minimized.
This comment has been minimized.
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
|
@bors r+ |
Dogfood `-Zno-embed-metadata` in the standard library This PR dogfoods the [`-Zno-embed-metadata`](rust-lang/cargo#15495) flag in the standard library. This removes the .rmeta portion out of the `libstd.so` file, thus reducing its filesize on disk. Notably, this reduces the amount of MiB that we ship to people who download the standard library. I think that the only way to find out what this breaks is to try to run full CI, and then try to land it on nightly :) r? @ghost
…uwer Rollup of 13 pull requests Successful merges: - #145343 (Dogfood `-Zno-embed-metadata` in the standard library) - #150151 (Destabilise `target-spec-json`) - #150723 (std: move `errno` and related functions into `sys::io`) - #150771 (Remove legacy homu `try` and `auto` branch mentions) - #150826 (Add `f16` inline ASM support for s390x) - #150934 (Move some checks from `check_doc_attrs` directly into `rustc_attr_parsing`) - #150943 (Port `#[must_not_suspend]` to attribute parser) - #150990 (std: sys: net: uefi: Make TcpStream Send) - #150995 (core: ptr: split_at_mut: fix typo in safety doc) - #150998 (Relax test expectation for @__llvm_profile_runtime_user) - #151002 (Remove a workaround for a bug (take 2)) - #151005 (Fix typo in `MaybeUninit` docs) - #151011 (Update books) r? @ghost
Dogfood `-Zno-embed-metadata` in the standard library This PR dogfoods the [`-Zno-embed-metadata`](rust-lang/cargo#15495) flag in the standard library. This removes the .rmeta portion out of the `libstd.so` file, thus reducing its filesize on disk. Notably, this reduces the amount of MiB that we ship to people who download the standard library. I think that the only way to find out what this breaks is to try to run full CI, and then try to land it on nightly :) r? @ghost
Rollup of 12 pull requests Successful merges: - #145343 (Dogfood `-Zno-embed-metadata` in the standard library) - #150151 (Destabilise `target-spec-json`) - #150723 (std: move `errno` and related functions into `sys::io`) - #150826 (Add `f16` inline ASM support for s390x) - #150934 (Move some checks from `check_doc_attrs` directly into `rustc_attr_parsing`) - #150943 (Port `#[must_not_suspend]` to attribute parser) - #150990 (std: sys: net: uefi: Make TcpStream Send) - #150995 (core: ptr: split_at_mut: fix typo in safety doc) - #150998 (Relax test expectation for @__llvm_profile_runtime_user) - #151002 (Remove a workaround for a bug (take 2)) - #151005 (Fix typo in `MaybeUninit` docs) - #151011 (Update books) r? @ghost
|
In case the current rollup doesn't make it, I'd rather mark this as rollup=never, hard to say if this change will pass all tests. @bors rollup=never |
This comment has been minimized.
This comment has been minimized.
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 2f1bd3f (parent) -> b2a322b (this PR) Test differencesShow 5 test diffsStage 2
Additionally, 2 doctest diffs were found. These are ignored, as they are noisy. Job group index
Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard b2a322beb29110e22a1782e2ce5ed2a0719b81ed --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (b2a322b): comparison URL. Overall result: ❌✅ regressions and improvements - please read the text belowOur benchmarks found a performance regression caused by this PR. Next Steps:
@rustbot label: +perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (secondary -0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -3.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 475.39s -> 473.958s (-0.30%) |
|
The tiny regressions are only noticeable on the smallest crates, they are caused by now loading both the @rustbot label: +perf-regression-triaged |
|
This saved enough disk space that the used column of |
|
I posted some statistics for the libstd component here (GitHub hid it in the meantime...). |
|
The savings to the amount of space it takes to build the standard library should be much larger than the savings of the final artifact size as the latter already skipped the duplicate crate metadata for everything other than libstd.so. |
|
Right, but we don't really care that much about the total disk savings on CI, I guess? Locally it might be more important, but probably still ~negligent. The size of the rustup-distributed toolchain is the win I'm after here. That is true for rustc components, of course. For normal Rust code, |
|
For CI it could potentially help a bit with being able to build on smaller runners with less free space. Locally for most people it wouldn't matter much, but on dev-desktop it would make me need to throw away the build directory less frequently and I'm sure there are people who need/want to build rustc in relatively constrained environments too. And I believe some people have multiple worktrees checked out that each take up a lot of space. This PR likely won't help all that much with that, but my PR for doing the same for rustc should help a non-trivial amount. |
This PR dogfoods the
-Zno-embed-metadataflag in the standard library. This removes the .rmeta portion out of thelibstd.sofile, thus reducing its filesize on disk. Notably, this reduces the amount of MiB that we ship to people who download the standard library.I think that the only way to find out what this breaks is to try to run full CI, and then try to land it on nightly :)
r? @ghost