Closed Bug 1838709 Opened 3 years ago Closed 3 years ago

3,367,380 byte (3.6%) regression in APK size from -O2 compiler optimizations

Categories

(Firefox for Android :: Performance, defect, P1)

All
Android
defect

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox114 --- unaffected
firefox115 --- unaffected
firefox116 + fixed

People

(Reporter: cpeterson, Assigned: mleclair)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Severity: -- → S2
Priority: -- → P1
Summary: 3367380.00 (3.6%) regression in APK size → 3,367,380 byte (3.6%) regression in APK size
Keywords: regression
Component: General → Performance
Severity: S2 → S3

Marc, you had mentioned that this bump was probably because of the O2 optimization. Could you confirm two things:

  1. That this is the case here.
  2. We are still seeing a bump in APK size for x86 builds here, but I believe that the O2 optimization was only supposed to happen for arm64.
Flags: needinfo?(mleclair)

(In reply to Dianna Smith [:diannaS] from comment #1)

The mozilla-central regression range based on the GV bumps is https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=b9e3497b939c3bdfee632c7297184b79cfeec9cc&tochange=6a3e558888107e82ba443f0ce749cd51f6e1b385

Thanks, Dianna! The -O2 change (bug 1831935) is in that regression range and the timing aligns with this regression on June 15. We anticipated that -O2 change would increase the APK size.

(In reply to Jonathan Almeida [:jonalmeida] from comment #2)

  1. We are still seeing a bump in APK size for x86 builds [here][0], but I believe that the O2 optimization was only supposed to happen for arm64.

Also, I thought we wanted to limit the -O2 change to Nightly builds (so we could see its impact without it affecting Beta or Release users yet), but the change doesn't check which channel is being built:

https://hg.mozilla.org/mozilla-central/rev/d2b14ac73d9a

Regressed by: 1831935

Yeah that is related to the O2 changes. Since its only in nightly right now I didn't land any other changes but there are ( I think) some changes to the compiler flag that we can add to reduce the impact of the O2 changes ( I think by like .8 MB or something like that).

Flags: needinfo?(mleclair)

[Tracking Requested - why for this release]:

(In reply to Marc Leclair [:mleclair] from comment #4)

Yeah that is related to the O2 changes. Since its only in nightly right now I didn't land any other changes but there are ( I think) some changes to the compiler flag that we can add to reduce the impact of the O2 changes ( I think by like .8 MB or something like that).

Marc, do you plan to revert your O2 changes before Nightly 116 merges to Beta (2023-07-03)? Or add a configure check to enable O2 if Nightly and Oz if Beta or Release? Either way, we don't want this 3 MB regression to ride to Beta or Release. :)

https://hg.mozilla.org/mozilla-central/rev/d2b14ac73d9a

Flags: needinfo?(mleclair)
Summary: 3,367,380 byte (3.6%) regression in APK size → 3,367,380 byte (3.6%) regression in APK size from -O2 compiler optimizations

The bug is marked as tracked for firefox116 (nightly). We have limited time to fix this, the soft freeze is in 6 days. However, the bug still isn't assigned and has low severity.

:amoya, could you please find an assignee and increase the severity for this tracked bug? Given that it is a regression and we know the cause, we could also simply backout the regressor. If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(amoya)
See Also: → 1840062
Assignee: nobody → mleclair
Flags: needinfo?(amoya)
Duplicate of this bug: 1840062
See Also: 1840062 →

I'll get the numbers between nightly and release for pageload. As far as reverting the changes, I'll do that tomorrow so that it doesn't make it into release. However, I still think we should try to keep it in nightly afterwards to get a bit more data since this only landed roughly 10 days ago.

Flags: needinfo?(mleclair)

This should now be fixed by bug 1840494 which will only build with O2 on nightly and Oz on all other variants.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Depends on: 1840494
Target Milestone: --- → 116 Branch
Duplicate of this bug: 1840812
See Also: → 1848842
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: