commit | 0ba0dc2bb599b5439c756e75853f07358e4b727f | [log] [tgz] |
---|---|---|
author | Benoit Lize <lizeb@chromium.org> | Tue Oct 19 11:15:50 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Oct 19 11:15:50 2021 |
tree | 9a36dcf2c1f73931d117bd62c93ca942f8d4b916 | |
parent | 9fe476aeb2d6c0b60db1c9ddd28f3defdab7faaa [diff] |
[PA] Schedule a one-off purge when a renderer gets backgrounded. PartitionAllocMemoryReclaimer runs on the "idle time" task runnerr in renderers. This one (somewhat counter-intuitively) stops as soon as a renderer becomes fully idle. In particular this applies to the case of a renderer getting backgrounded. This increases memory usage for backgrounded renderers. To mitigate that, run a one-off purge. Locally, using pa_tcache_inspect (in //tools/memory) to query the size of empty slot spans, this saves ~400kiB on a news website when moving to background, on Linux. Without this patch, the empty slot span memory stays around for a long time, rather than dropping to 0 after 10s. Bug: 1250288 Change-Id: Ibda8d90377ca162e6da4d999270214c4b2921ab6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3227760 Commit-Queue: Benoit L <lizeb@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/main@{#932953}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.