Closed Bug 1046158 Opened 10 years ago Closed 10 years ago

[Vertical Homescreen] Use three columns by default everywhere

Categories

(Firefox OS Graveyard :: Gaia::Homescreen, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.0+, b2g-v2.0 fixed, b2g-v2.1 fixed)

RESOLVED FIXED
2.1 S2 (15aug)
blocking-b2g 2.0+
Tracking Status
b2g-v2.0 --- fixed
b2g-v2.1 --- fixed

People

(Reporter: kgrandon, Assigned: kgrandon)

References

Details

(Whiteboard: [systemsfe])

Attachments

(5 files)

To solve bug 1029902 we changed the column layout for 256mb devices. Now that we have more information we would like to try to ship three columns everywhere. We should measure to make sure that this won't impact memory usage.
Summary: [Vertical Homescreens] Use three columns by default everywhere → [Vertical Homescreen] Use three columns by default everywhere
Hey Benwa, Kyle - before we try to go to three columns by default everywhere I just wanted to verify that there are no memory problems. I measured using get_about_memory and saw the following results with around 200 icons: When passing --minimize: both 3 column and 4 column use the same memory. When not passing --minimize: 3 column seems to use ~20mb of more memory than 4 column. Does --minimize discard image data, and if so - are we ok landing with the difference in these numbers?
Flags: needinfo?(khuey)
Flags: needinfo?(bgirard)
I'm going to assume --minimize does mean discarding image data. ~20mb more is big difference. Are you sure you're not seeing a fluctuation? If you don't use minimize try leaving the system idle for 30+ seconds.
Flags: needinfo?(bgirard)
--minimize does discard image data. 20 MB = 200 * 4 bytes / pixel * (3_column_size^2 - 4_column_size^2) That number is consistent with moving from 64px icons in the 4 column layout to ~175px icons in the 3 column layout, if we're decoding every icon. But if the 2.7x number you gave me on Wednesday about the overpainting is accurate we would expect to only have to paint 16 * 2.7 = 43.2 icons at any given time. So something is going wrong here.
Flags: needinfo?(khuey)
Ok, thanks guys. After re-testing without --minimuze and letting both stabilize for ~30s the numbers are much more inline with each other. I think we should be good to get this landed then.
I really don't think we can hand wave away the transient spike. If we need 20 MB more to paint the homescreen every time we do that we're OOM killing 20 MB more of background apps than we were before.
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #7) > I really don't think we can hand wave away the transient spike. If we need > 20 MB more to paint the homescreen every time we do that we're OOM killing > 20 MB more of background apps than we were before. Everything is in 'heap-unclassified', I have a small screenshot of the spike, but not the memory report unfortunately. I will try to reproduce the spike on the 4-column to see if it's in the same ballpark.
That's interesting. We should look into that next week.
Measuring ION memory on master with 3 and 4 icons layout, using a userdebug build.
Measuring ION memory on master with 3 icons layout, using a userdebug build, with 50 or 100 preloaded apps.
Measuring ION memory on master with 4 icons layout, using a userdebug build, with 50 or 100 preloaded apps.
Comment on attachment 8464733 [details] [review] Pull request - Update homescreen columns Aus - would you mind throwing a review on this one? Thanks!
Attachment #8464733 - Flags: review?(aus)
[Blocking Requested - why for this release]: Shipping three columns by default everywhere is a Product/UX blocker.
blocking-b2g: --- → 2.0?
Comment on attachment 8464733 [details] [review] Pull request - Update homescreen columns Looks good to me for back-out purposes. Looks like you got a b2g process crash in one of the test runs. It would be nice to re-run it to make sure it's OK (even though the debug b2g process passed the same test suite).
Attachment #8464733 - Flags: review?(aus) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Based on email-discussion and product needs.
blocking-b2g: 2.0? → 2.0+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: