psi-monitor: Raise default memory pressure threshold to 30% #402
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Current PSI monitor's default memory pressure threshold is 10%. However, according to the application usage, the memory pressure (full avg10) exceeds the threshold 10% easily, then PSI monitor triggers OOM killer to kill a process for taking memory back. But, there is still some available memory space at the moment. That means it is too sensitive on some users' side.
Thanks to the statistics of application usage and the memory pressure measured by Daniel. This commit raises the memory pressure threshold to 30% for trying more widely. Hope it get to the balance more closely.
Besides, add a comment about the memory pressure interface provided by kernel.
https://phabricator.endlessm.com/T35318