diff options
| author | Edgar Arriaga <edgararriaga@google.com> | 2022-03-23 17:19:07 -0700 |
|---|---|---|
| committer | Edgar Arriaga <edgararriaga@google.com> | 2022-04-27 14:41:14 -0700 |
| commit | c8a02c5afb3412ee766c8f7080b447ab1e7b19ab (patch) | |
| tree | 07dabb57b971da263de5428f9563f2f52c89fb9e /core/java/android/util/SparseSetArray.java | |
| parent | 834aee5dd7147ee7e1da90bdbb03113d2a5be54a (diff) | |
Add threshold to downgrade compaction when swap is low
This patch introduces a threshold that allows compaction
system to downgrade full compactions into file only compactions
which do not cause compactions to happen as a way to reduce
pressure on swap thus aiming for a reduction in overall cpu
usage during high memory pressure scenarios as finding new
pages will likely be harder when the swap is low.
Bug: 226458732
Test: Manual. Verified that compaction runs artificially using different
thresholds and logging.
Change-Id: I12b460174c857f6750c9a173997c66381e4a1dc3
Diffstat (limited to 'core/java/android/util/SparseSetArray.java')
0 files changed, 0 insertions, 0 deletions
