Closed
Bug 899134
Opened 11 years ago
Closed 11 years ago
AWSY: ~1.7 MB regression in resident memory usage on July 25
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: kats, Unassigned)
References
Details
Attachments
(1 file)
8.99 KB,
text/plain
|
Details |
The top graph at http://areweslimyet.com/mobile shows a ~1.68 MiB regression in the "Start" line and a 1.38 MiB regression in the "StartSettled" line. Looking at the detailed about memory dumps this appears to be mostly just more of libxul being loaded on startup. I'm not yet sure if libxul actually got bigger or we're just loading more of it. Note that the explicit memory usage has not increased noticeably, it's just the resident amount that went up. Start: 28c8c52f176239d85aee297031d0809be49055cd 121.36MiB 9308a970daee28e4431da34b1d3e258524db4337 123.03MiB Δ 1,716.00KiB Start Settled: 28c8c52f176239d85aee297031d0809be49055cd 138.24MiB 9308a970daee28e4431da34b1d3e258524db4337 139.62MiB Δ 1,412.00KiB The pushlog range is pretty small and implicates bug 894448: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=28c8c52f176239d&tochange=9308a970daee
Comment 1•11 years ago
|
||
Could this be related to the increase in static initializers?
Reporter | ||
Comment 2•11 years ago
|
||
Libxul itself appears to have gotten a little smaller in that range: at 28c8c52f176239d85aee297031d0809be49055cd: libxul.so is 12895864 bytes inside the APK at 9308a970daee28e4431da34b1d3e258524db4337: libxul.so is 12891533 bytes inside the APK
Comment 4•11 years ago
|
||
Yes, it can very much. A good way to know is to set the MOZ_DEBUG_LINKER environment variable to 1 when starting fennec, and check the "n/m chunks decompressed" lines.
Flags: needinfo?(mh+mozilla)
Reporter | ||
Comment 5•11 years ago
|
||
"old.log" corresponds to the build prior to the changes, and "new.log" corresponds to the build with the changes. More chunks do appear to be loaded from libxul.so even at the oneLibLoaded output.
Comment 6•11 years ago
|
||
At the firstLoadURI mark, there's a difference of 43 chunks. A chunk is 16KiB. That's 688KiB. Other things happen after firstLoadURI, though, but i wouldn't expect it to make a big difference. So that accounts for some of it, but not all of it.
Comment 7•11 years ago
|
||
Ah, it's a RSS count. Then since there are two mappings of the same data, RSS will count those 688KiB twice. That's 1376KiB.
Reporter | ||
Comment 8•11 years ago
|
||
Bug 899368 appears to have fixed this. There is a drop in memory usage in this (large-ish) range: http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=770b97caaaba&tochange=5d56f5be9d3f which includes the patch from 899368. 770b97caaababc0feb961b4cc8d9812f15b88dc6 125.32MiB 5d56f5be9d3fbd3773e43f5dc42e03ef70b73679 123.11MiB Δ -2.21MiB Thanks!
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•