Take the process limit into account in GetMaxRendererProcessCount() on Linux.
On Linux, given sufficient RAM, GetMaxRendererProcessCount() can now return a value as high as (RLIMIT_NPROC / 2), instead of being capped to a hard-coded maximum. This lets the browser start more processes and have more process isolation between renderers if the environment can support it. This also makes the browser behave better when running in an environment that is constrained by the process limit. BUG=104689 Change-Id: I2b249bc4b1e1c2e52579cf6fd603798f3e028249 Reviewed-on: https://chromium-review.googlesource.com/c/1088242 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by:Thomas Anderson <thomasanderson@chromium.org> Reviewed-by:
Charlie Reis <creis@chromium.org> Cr-Commit-Position: refs/heads/master@{#626313}
Showing
Please register or sign in to comment