|
|
Created:
6 years, 11 months ago by kbalazs Modified:
6 years, 10 months ago CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam Base URL:
https://chromium.googlesource.com/chromium/src.git@master Visibility:
Public. |
DescriptionRender process count should not be forced from java unconditionally
content::SetContentCommandLineFlags should enforce a maxiumum value from java.
The problem is that it overrides the value even if the default would be less.
Instead we should let RenderProcessHost decide it based on the available physical
memory and only override if the default value is too high.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249117
Patch Set 1 #
Total comments: 6
Patch Set 2 : fix logic when command_line_renderer_limit <= 0 #Patch Set 3 : fix debug compile issue #Messages
Total messages: 28 (0 generated)
+aberent is a better reviewer for this..
ping?
On 2014/01/23 21:10:54, kbalazs wrote: > ping? Sorry, been travelling for the last week (and still am). Will try to look at it today, but Tuesday is more likely.
https://codereview.chromium.org/138313004/diff/1/content/browser/android/cont... File content/browser/android/content_startup_flags.cc (right): https://codereview.chromium.org/138313004/diff/1/content/browser/android/cont... content/browser/android/content_startup_flags.cc:39: if (command_line_renderer_limit != -1) { What happens if command_line_render_limit is set but max_render_process_count <= 0? It seems that that setting the render limit on the command line shouldn't override single process mode, so that should execute the next block, but with this code it won't. Also what happens if command_line_render_limit is 0 (or < -1)? https://codereview.chromium.org/138313004/diff/1/content/browser/android/cont... content/browser/android/content_startup_flags.cc:49: int default_maximum = RenderProcessHost::GetMaxRendererProcessCount(); If I am reading this right then GetMaxRendererProcessCount() isn't called if the process count is set on the command line, so the available physical memory etc. is ignored. This seems to contradict the description of the CL. Is this what you intend? https://codereview.chromium.org/138313004/diff/1/content/browser/android/cont... content/browser/android/content_startup_flags.cc:52: content::RenderProcessHost::SetMaxRendererProcessCount( Why content::RenderProcessHost here, but simply RenderProcessHost on lines 42 and 49?
https://codereview.chromium.org/138313004/diff/1/content/browser/android/cont... File content/browser/android/content_startup_flags.cc (right): https://codereview.chromium.org/138313004/diff/1/content/browser/android/cont... content/browser/android/content_startup_flags.cc:39: if (command_line_renderer_limit != -1) { On 2014/01/24 21:29:09, aberent wrote: > What happens if command_line_render_limit is set but max_render_process_count <= > 0? > It seems that that setting the render limit on the command line shouldn't > override single process mode, so that should execute the next block, but with > this code it won't. > Also what happens if command_line_render_limit is 0 (or < -1)? I think the command line should override everything if it's >= 1. Good point about 0 or < -1, I will turn the condition into |command_line_renderer_limit > 0|. https://codereview.chromium.org/138313004/diff/1/content/browser/android/cont... content/browser/android/content_startup_flags.cc:49: int default_maximum = RenderProcessHost::GetMaxRendererProcessCount(); On 2014/01/24 21:29:09, aberent wrote: > If I am reading this right then GetMaxRendererProcessCount() isn't called if the > process count is set on the command line, so the available physical memory etc. > is ignored. This seems to contradict the description of the CL. Is this what you > intend? Yes, this was my intent. This is consistent with this: https://code.google.com/p/chromium/codesearch#chromium/src/content/browser/br.... https://codereview.chromium.org/138313004/diff/1/content/browser/android/cont... content/browser/android/content_startup_flags.cc:52: content::RenderProcessHost::SetMaxRendererProcessCount( On 2014/01/24 21:29:09, aberent wrote: > Why content::RenderProcessHost here, but simply RenderProcessHost on lines 42 > and 49? by mistake
Incorporated comments in patch 2. PTAL :)
lgtm
@bulach: could you lgtm as well? I guess I need an owner. Thanks
lgtm, thanks!
The CQ bit was checked by b.kelemen@samsung.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/b.kelemen@samsung.com/138313004/90001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, cc_unittests, check_deps, check_deps2git, chrome_elf_unittests, chromedriver_unittests, components_unittests, compositor_unittests, content_browsertests, content_unittests, crypto_unittests, events_unittests, google_apis_unittests, gpu_unittests, installer_util_unittests, interactive_ui_tests, ipc_tests, jingle_unittests, media_unittests, mini_installer_test, nacl_integration, net_unittests, ppapi_unittests, printing_unittests, remoting_unittests, sql_unittests, sync_integration_tests, sync_unit_tests, telemetry_perf_unittests, telemetry_unittests, unit_tests, views_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...
The CQ bit was checked by b.kelemen@samsung.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/b.kelemen@samsung.com/138313004/370001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on linux_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&...
The CQ bit was checked by b.kelemen@samsung.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/b.kelemen@samsung.com/138313004/370001
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, sync_integration_tests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&...
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/b.kelemen@samsung.com/138313004/370001
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/b.kelemen@samsung.com/138313004/370001
The CQ bit was unchecked by phajdan.jr@chromium.org
The CQ bit was checked by phajdan.jr@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/b.kelemen@samsung.com/138313004/370001
Message was sent while issue was closed.
Change committed as 249117
Message was sent while issue was closed.
On 2014/02/05 21:39:16, I haz the power (commit-bot) wrote: > Change committed as 249117 Thanks for nudging the commit bot! :) |