Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(429)

Issue 2921653005: GLES ProgramCache listens to memory pressure (Closed)

Created:
3 years, 6 months ago by ssid
Modified:
3 years, 6 months ago
CC:
chromium-reviews, piman+watch_chromium.org, Zhenyao Mo
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

GLES ProgramCache listens to memory pressure Change the size limit of gl program cache for android and clear the cache on memory pressure situations. BUG=725303 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2921653005 Cr-Commit-Position: refs/heads/master@{#478080} Committed: https://chromium.googlesource.com/chromium/src/+/49b5badc7cb27ac9e9c0f65ca6ce04a0b82800e2

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : comments. #

Total comments: 3

Patch Set 4 : change limits. #

Total comments: 2

Patch Set 5 : fix histogram macro #

Patch Set 6 : low-end check only on Android. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -2 lines) Patch
M gpu/command_buffer/common/constants.h View 1 2 3 4 5 2 chunks +8 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gpu_preferences.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/memory_program_cache.h View 3 chunks +6 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/memory_program_cache.cc View 1 2 3 4 3 chunks +23 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 57 (32 generated)
ssid
+Victor ptal, thanks!
3 years, 6 months ago (2017-06-02 20:29:07 UTC) #10
vmiura
https://codereview.chromium.org/2921653005/diff/40001/gpu/command_buffer/common/constants.h File gpu/command_buffer/common/constants.h (right): https://codereview.chromium.org/2921653005/diff/40001/gpu/command_buffer/common/constants.h#newcode77 gpu/command_buffer/common/constants.h:77: const size_t kDefaultMaxProgramCacheMemoryBytes = 512 * 1024; Have we ...
3 years, 6 months ago (2017-06-03 04:05:32 UTC) #13
ssid
thanks ptal https://codereview.chromium.org/2921653005/diff/40001/gpu/command_buffer/common/constants.h File gpu/command_buffer/common/constants.h (right): https://codereview.chromium.org/2921653005/diff/40001/gpu/command_buffer/common/constants.h#newcode77 gpu/command_buffer/common/constants.h:77: const size_t kDefaultMaxProgramCacheMemoryBytes = 512 * 1024; ...
3 years, 6 months ago (2017-06-05 19:42:45 UTC) #14
vmiura
+ericrk for thoughts on cache size. +kbr for comment on sites with large numbers of ...
3 years, 6 months ago (2017-06-05 19:58:03 UTC) #16
ericrk
On 2017/06/05 19:58:03, vmiura wrote: > +ericrk for thoughts on cache size. > +kbr for ...
3 years, 6 months ago (2017-06-05 20:20:43 UTC) #17
Ken Russell (switch to Gerrit)
Agree with Eric's analysis of this CL; it seems risky in terms of performance to ...
3 years, 6 months ago (2017-06-05 20:47:34 UTC) #18
ssid
As I mentioned earlier, the typical program binary size is 2-10KB and loading a typical ...
3 years, 6 months ago (2017-06-05 21:59:27 UTC) #19
ericrk
On 2017/06/05 21:59:27, ssid wrote: > As I mentioned earlier, the typical program binary size ...
3 years, 6 months ago (2017-06-05 22:19:53 UTC) #20
Ken Russell (switch to Gerrit)
On 2017/06/05 21:59:27, ssid wrote: > As I mentioned earlier, the typical program binary size ...
3 years, 6 months ago (2017-06-05 22:21:53 UTC) #22
vmiura
On 2017/06/05 21:59:27, ssid wrote: > As I mentioned earlier, the typical program binary size ...
3 years, 6 months ago (2017-06-05 22:52:08 UTC) #23
ssid
> Thanks for the additional testing! Sorry I missed your previous comment. This > makes ...
3 years, 6 months ago (2017-06-06 22:31:09 UTC) #24
Ken Russell (switch to Gerrit)
Thanks for doing these measurements and updating the constants for Android. LGTM from my standpoint. ...
3 years, 6 months ago (2017-06-06 22:41:54 UTC) #27
Kai Ninomiya
FYI, the playcanvas demo should work fine if you use 'Request desktop site'.
3 years, 6 months ago (2017-06-06 22:47:13 UTC) #29
Kai Ninomiya
On 2017/06/06 22:47:13, Kai Ninomiya wrote: > FYI, the playcanvas demo should work fine if ...
3 years, 6 months ago (2017-06-06 22:49:03 UTC) #30
ssid
On 2017/06/06 22:49:03, Kai Ninomiya wrote: > On 2017/06/06 22:47:13, Kai Ninomiya wrote: > > ...
3 years, 6 months ago (2017-06-06 23:17:47 UTC) #31
ssid
ping vmiura@
3 years, 6 months ago (2017-06-08 00:20:52 UTC) #32
vmiura
On 2017/06/08 00:20:52, ssid wrote: > ping vmiura@ lgtm, thanks!
3 years, 6 months ago (2017-06-08 00:38:19 UTC) #33
ssid
+ilya for histograms.xml. ptal thanks!
3 years, 6 months ago (2017-06-08 01:07:49 UTC) #37
Ilya Sherman
Metrics LGTM https://codereview.chromium.org/2921653005/diff/120001/gpu/command_buffer/service/memory_program_cache.cc File gpu/command_buffer/service/memory_program_cache.cc (right): https://codereview.chromium.org/2921653005/diff/120001/gpu/command_buffer/service/memory_program_cache.cc#newcode492 gpu/command_buffer/service/memory_program_cache.cc:492: base::UmaHistogramCounts100000("GPU.ProgramCache.MemoryReleasedOnPressure", Optional nit: It's slightly more efficient ...
3 years, 6 months ago (2017-06-08 01:11:38 UTC) #38
ssid
fixed, thanks https://codereview.chromium.org/2921653005/diff/120001/gpu/command_buffer/service/memory_program_cache.cc File gpu/command_buffer/service/memory_program_cache.cc (right): https://codereview.chromium.org/2921653005/diff/120001/gpu/command_buffer/service/memory_program_cache.cc#newcode492 gpu/command_buffer/service/memory_program_cache.cc:492: base::UmaHistogramCounts100000("GPU.ProgramCache.MemoryReleasedOnPressure", On 2017/06/08 01:11:38, Ilya Sherman wrote: ...
3 years, 6 months ago (2017-06-08 01:18:44 UTC) #41
ssid
+Alexander and Sami. This CL is failing the headless bot because of not being able ...
3 years, 6 months ago (2017-06-08 01:45:05 UTC) #45
Sami
On 2017/06/08 01:45:05, ssid wrote: > +Alexander and Sami. This CL is failing the headless ...
3 years, 6 months ago (2017-06-08 16:20:56 UTC) #46
ssid
On 2017/06/08 16:20:56, Sami wrote: > On 2017/06/08 01:45:05, ssid wrote: > > +Alexander and ...
3 years, 6 months ago (2017-06-08 19:17:28 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2921653005/160001
3 years, 6 months ago (2017-06-08 20:44:19 UTC) #54
commit-bot: I haz the power
3 years, 6 months ago (2017-06-08 20:50:00 UTC) #57
Message was sent while issue was closed.
Committed patchset #6 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/49b5badc7cb27ac9e9c0f65ca6ce...

Powered by Google App Engine
This is Rietveld 408576698