New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 820565 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Switch to 16-bit GPU textures on CRITICAL memory pressure

Project Member Reported by dskiba@chromium.org, Mar 9 2018

Issue description

On 512MiB devices we use 16-bit GPU textures, because that reduces texture memory (2x?).

Can we switch between 16-bit and 32-bit textures at runtime? Looks like a useful thing to do if we're under critical memory pressure.
 

Comment 1 by ericrk@chromium.org, Mar 15 2018

We can very likely do this, although the change won't necessarily be smooth (I'd expect a momentary jank as we re-produce all tiles).

This will likely reduce memory by something like 4-8MB, so not sure if it's worth the visual degredation. I'd want to better understand how often we're hitting OOM on 1GB devices.

Also, while I think this is doable, I'd suggest staying in 16-bit mode for the lifetime of a page once we drop to it (jumping back and forth is a harder heuristic).

Comment 2 by dskiba@chromium.org, Mar 15 2018

We have AndroidMemoryNotificationForeground histogram that records memory pressure events reported by Android. For 1GiB phones we have this:

                            User Count    Usage     Count
TrimMemoryRunningModerate   5,105,517     29.58%    35,008,783
TrimMemoryRunningLow        8,139,950     47.16%    75,711,803
TrimMemoryRunningCritical   10,992,364    63.69%    230,997,220
LowMemory                   4,224,929     24.48%    16,696,903

https://uma.googleplex.com/p/chrome/histograms/?endDate=20180313&dayCount=1&histograms=MemoryAndroid.NotificationForeground&fixupData=true&uniqueUsers=true&showMax=true&filters=platform%2Ceq%2CA%2Cchannel%2Ceq%2C4%2Chw_ram%2Cge%2C512%2Chw_ram%2Clt%2C1024%2Cisofficial%2Ceq%2CTrue&implicitFilters=isofficial

I.e. 11M users generated 231M CRITICAL events, ~20 per user on average.

Comment 5 by ericrk@chromium.org, Apr 17 2018

Owner: ericrk@chromium.org
Status: Assigned (was: Available)

Sign in to add a comment