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

Issue 248193003: Limit renderer saved frames to avoid running out of fds. (Closed)

Created:
6 years, 8 months ago by jbauman
Modified:
6 years, 8 months ago
Reviewers:
piman
CC:
chromium-reviews, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Limit renderer saved frames to avoid running out of fds. Software delegated rendering uses one fd per tile, so with a bunch of tiles that means it can run out of fds. If it seems close to hitting the limit the browser should throw away old frames to avoid this from happening. BUG=362603 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266383

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -2 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 4 chunks +30 lines, -0 lines 0 comments Download
M content/browser/renderer_host/renderer_frame_manager.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/renderer_frame_manager.cc View 1 2 chunks +16 lines, -2 lines 0 comments Download
M content/common/host_shared_bitmap_manager.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
jbauman
6 years, 8 months ago (2014-04-22 23:53:55 UTC) #1
piman
https://codereview.chromium.org/248193003/diff/1/content/browser/renderer_host/renderer_frame_manager.cc File content/browser/renderer_host/renderer_frame_manager.cc (right): https://codereview.chromium.org/248193003/diff/1/content/browser/renderer_host/renderer_frame_manager.cc#newcode89 content/browser/renderer_host/renderer_frame_manager.cc:89: static_cast<uint32>((saved_frame_limit - 2) * fraction_to_reduce); I'm not sure I ...
6 years, 8 months ago (2014-04-23 00:32:02 UTC) #2
jbauman
PTAL. Modified it to use your algorithm (it does seem better), and added a test ...
6 years, 8 months ago (2014-04-25 02:27:52 UTC) #3
piman
lgtm https://codereview.chromium.org/248193003/diff/20001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc (right): https://codereview.chromium.org/248193003/diff/20001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc#newcode1166 content/browser/renderer_host/render_widget_host_view_aura_unittest.cc:1166: bitmaps.push_back(cc::SharedBitmap::GenerateId()); nit: Do you need to pass those ...
6 years, 8 months ago (2014-04-25 02:39:48 UTC) #4
jbauman
The CQ bit was checked by jbauman@chromium.org
6 years, 8 months ago (2014-04-25 18:07:31 UTC) #5
jbauman
The CQ bit was unchecked by jbauman@chromium.org
6 years, 8 months ago (2014-04-25 19:43:56 UTC) #6
jbauman
The CQ bit was checked by jbauman@chromium.org
6 years, 8 months ago (2014-04-25 19:44:00 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/248193003/40001
6 years, 8 months ago (2014-04-25 22:09:35 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-25 23:19:49 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-25 23:19:49 UTC) #10
jbauman
The CQ bit was checked by jbauman@chromium.org
6 years, 8 months ago (2014-04-25 23:23:20 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/248193003/40001
6 years, 8 months ago (2014-04-25 23:26:47 UTC) #12
commit-bot: I haz the power
Change committed as 266383
6 years, 8 months ago (2014-04-26 22:17:54 UTC) #13
Nico
6 years, 7 months ago (2014-04-28 15:49:21 UTC) #14
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/258093002/ by thakis@chromium.org.

The reason for reverting is: Somewhat speculative.
SoftwareFrameManagerTest.DoNotEvictVisible started failing reliably on the
valgrind bots after this landed. Example:
http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20OS%20%28v...

http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20OS%20%28v....

Powered by Google App Engine
This is Rietveld 408576698