Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r229894 - WebProcess memory monitor thresholds should be better…
… tuned for embedded systems. https://bugs.webkit.org/show_bug.cgi?id=183773 Reviewed by Yusuke Suzuki. Take into account the total system RAM for the thresholds calculation. For systems with more than 3GB the conservative and strict thresholds remain as they are, but for systems with less RAM the thresholds are dynamically configured as follows: - Conservative threshold (release non critical memory) if WebProcess using more than 33% of the total RAM. - Strict threshold (release all possible memory) if WebProcess using more than 50% of the total RAM. The Kill threshold is also modified. Now it is capped at 90% of the total RAM. * wtf/MemoryPressureHandler.cpp: (WTF::thresholdForMemoryKillWithProcessState): (WTF::thresholdForPolicy): (WTF::MemoryPressureHandler::shrinkOrDie):
- Loading branch information
1 parent
29ce157
commit 9d1bfb1
Showing
2 changed files
with
33 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters