aboutsummaryrefslogtreecommitdiff
path: root/overlay
diff options
context:
space:
mode:
authorHashcode <hashcode0f@gmail.com>2015-05-27 23:26:34 -0700
committerHashcode <hashcode0f@gmail.com>2015-05-27 23:26:34 -0700
commit8e9ef9caa809894cd564b81389969fc278a20dc2 (patch)
tree19e4ce21989ec8964d97205ae5ae3f1e41f559d3 /overlay
parentf783e7326ec2b3b339054ec2c7495ab641fb67a1 (diff)
otter-common: set minfree overlay for less aggressive behaviour
Change-Id: I1ae986be5c75ce443b39ca1a7331be9092aaf1c6
Diffstat (limited to 'overlay')
-rw-r--r--overlay/aosp/frameworks/base/core/res/res/values/config.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/overlay/aosp/frameworks/base/core/res/res/values/config.xml b/overlay/aosp/frameworks/base/core/res/res/values/config.xml
index 11bd947..fb27cb9 100644
--- a/overlay/aosp/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/aosp/frameworks/base/core/res/res/values/config.xml
@@ -122,4 +122,13 @@
<!-- reference volume index for music stream to limit headphone volume and display warning -->
<integer name="config_safe_media_volume_index">6</integer>
+
+ <!-- Device configuration setting the minfree tunable in the lowmemorykiller in the
+ kernel. A high value will cause the lowmemorykiller to fire earlier, keeping more
+ memory in the file cache and preventing I/O thrashing, but allowing fewer processes
+ to stay in memory. A low value will keep more processes in memory but may cause
+ thrashing if set too low. Overrides the default value chosen by ActivityManager based
+ on screen size and total memory for the largest lowmemorykiller bucket, and scaled
+ proportionally to the smaller buckets. -1 keeps the default. -->
+ <integer name="config_lowMemoryKillerMinFreeKbytesAbsolute">122880</integer>
</resources>