Skip to content
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

Strip debuginfo from rustc-main and rustdoc #134803

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

clubby789
Copy link
Contributor

@clubby789 clubby789 commented Dec 26, 2024

r? @Kobzol
Split from #134690

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Dec 26, 2024
@Kobzol

This comment was marked as resolved.

@clubby789

This comment was marked as resolved.

@Kobzol

This comment was marked as resolved.

@clubby789

This comment was marked as resolved.

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Dec 26, 2024
@clubby789
Copy link
Contributor Author

clubby789 commented Dec 26, 2024

I wonder if for rustc we should just strip unconditionally, because that binary really contains almost no code

I think it's best if we only strip rustc-main when debuginfo is off - dist is the only place it really matters, and if someone needs to debug jemalloc inside rustc-main then we shouldn't confuse them by removing their requested debuginfo

@Kobzol
Copy link
Contributor

Kobzol commented Dec 27, 2024

Ok, fair enough! Let's check if this still has the intended artifact size wins.

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Dec 27, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 27, 2024
Strip debuginfo from rustc-main and rustdoc

r? `@Kobzol`
Split from rust-lang#134690
@bors
Copy link
Contributor

bors commented Dec 27, 2024

⌛ Trying commit e5f6765 with merge 48eebcc...

@bors
Copy link
Contributor

bors commented Dec 27, 2024

☀️ Try build successful - checks-actions
Build commit: 48eebcc (48eebccf201050ba448b73397c277b5258fcf350)

@rust-timer

This comment has been minimized.

@clubby789
Copy link
Contributor Author

$ ls -lh $(rustc --print sysroot)/bin/{rustc,rustdoc}
-rwxr-xr-x 1 jamie jamie 2.0M Dec  6 09:32 ~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustc
-rwxr-xr-x 1 jamie jamie  16M Dec  6 09:32 ~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustdoc
$ ls -lh $(rustc +48eebccf201050ba448b73397c277b5258fcf350 --print sysroot)/bin/{rustc,rustdoc}
-rwxr-xr-x 1 jamie jamie 383K Dec 27 08:59 ~/.rustup/toolchains/48eebccf201050ba448b73397c277b5258fcf350/bin/rustc
-rwxr-xr-x 1 jamie jamie  12M Dec 27 08:59 ~/.rustup/toolchains/48eebccf201050ba448b73397c277b5258fcf350/bin/rustdoc

@Kobzol
Copy link
Contributor

Kobzol commented Dec 27, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Dec 27, 2024

📌 Commit e5f6765 has been approved by Kobzol

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 27, 2024
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (48eebcc): comparison URL.

Overall result: ✅ improvements - no action needed

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

This is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.3% [-0.3%, -0.3%] 1
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results (primary -2.6%, secondary 2.6%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
2.6% [2.6%, 2.6%] 1
Improvements ✅
(primary)
-2.6% [-2.6%, -2.6%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -2.6% [-2.6%, -2.6%] 1

Cycles

Results (secondary 2.6%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
2.6% [2.6%, 2.6%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 763.9s -> 764.266s (0.05%)
Artifact size: 330.55 MiB -> 325.11 MiB (-1.65%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Dec 27, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 27, 2024
Strip debuginfo from rustc-main and rustdoc

r? `@Kobzol`
Split from rust-lang#134690
@bors
Copy link
Contributor

bors commented Dec 27, 2024

⌛ Testing commit e5f6765 with merge e5f0d6f...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants