Skip to content

Binary size creep on Fuchsia after commit 5ced3da #127039

Open
@amanda-tait

Description

@amanda-tait

After bors rolled commit 5ced3da, Fuchsia's canaries began failing their binary size creep checks. See attached screenshot. It's non-obvious why this change would impact codegen on Fuchsia, but I wanted to alert the rust-lang project and commit author that this has occurred.

Screenshot 2024-06-27 at 10 14 40 AM

cc: @tesuji @erickt

Activity

added
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Jun 27, 2024
tesuji

tesuji commented on Jun 27, 2024

@tesuji
Contributor

The rustc-perf result for #125853 is neutral. Also the code there doesn't change any behaviors in mir tests.
So you might want to bisect again.

Edit: If you want, I could open a try PR to revert suspicious c036594 which I think could be the most responsible in #125853.

@rustbot label +E-needs-mcve

amanda-tait

amanda-tait commented on Jun 27, 2024

@amanda-tait
Author

Interesting. I've double-checked the bisection and am confident this is the commit after which we observe the size creep. That said, I have no theory of the case for why this is occurring, so I may just be engaging in a post hoc ergo propter hoc fallacy. If the perf result is neutral, that's good evidence that something else may be responsible.

If it's not too much trouble, please open the try PR to see if that sheds more light on what's going on. Note that this is not a blocker for Fuchsia; we just wanted to alert you that we had observed the size creep.

tesuji

tesuji commented on Jun 27, 2024

@tesuji
Contributor

Btw, how did you build rustc on fuchsia ? Did you enable tracing facility ?

#debug-logging = rust.debug-assertions (boolean)

I asked because in the mentioned PR, I changed some tracing level.

lqd

lqd commented on Jun 27, 2024

@lqd
Member

The tracing level could maybe impact rustc's size but not the produced binaries size 🤔 .

Similarly, a try build of the mentioned revert shouldn't provide much more information, unless the fuchsia team tries it to see if it fixes the issue.

What could be interesting though is the simplest way to execute the "binary size creep check", and then we could try it within the fuchsia docker image.

lqd

lqd commented on Jun 27, 2024

@lqd
Member

@amanda-tait @erickt @tmandry @djkoloski @P1n3appl3 #124032 landed a few PRs before #125853 and definitely had binary size increases, did your size checks also flag that one up?

veera-sivarajan

veera-sivarajan commented on Jun 28, 2024

@veera-sivarajan
Contributor

@rustbot label -needs-triage +O-fuchisa +T-compiler +I-heavy

added
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
I-heavyIssue: Problems and improvements with respect to binary size of generated code.
O-fuchsiaOperating system: Fuchsia
and removed
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Jun 28, 2024
added
E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
on Jun 28, 2024
added
C-optimizationCategory: An issue highlighting optimization opportunities or PRs implementing such
on Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-optimizationCategory: An issue highlighting optimization opportunities or PRs implementing suchE-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleI-heavyIssue: Problems and improvements with respect to binary size of generated code.O-fuchsiaOperating system: FuchsiaT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @lqd@amanda-tait@saethlin@tesuji@veera-sivarajan

        Issue actions

          Binary size creep on Fuchsia after commit 5ced3da · Issue #127039 · rust-lang/rust