We should ship purge + suspend, which purges as much memory as possible from background renderers and suspend them.
Design doc: https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJvI/edit
Performance/memory results: https://docs.google.com/document/d/10LqrNpXKNbcAetDX81phpRulKJdS1BSkwIFJMKCWre4/edit#
Work-in-progress CL: https://codereview.chromium.org/2130683002/
Summary:
- Looking at Total, purge+suspend reduced 28% of renderer’s memory in average. The number stays at 28% after resuming, which means that resuming didn’t reclaim much memory average.
- There are a couple of sites (e.g. Google Drive, Yahoo) where resuming reclaims a lot of memory. However, the memory is purged when purging the renderer again.
- It is amazing that 72% of renderer’s memory was dropped in Facebook. This is because Facebook is using a lot of memory in CC and we can drop it when purging (because CC is not necessary for suspended background renderers).
Comment 1 by esprehn@chromium.org
, Aug 8 2016