diff options
author | dianlujitao <dianlujitao@lineageos.org> | 2017-06-09 19:44:26 +0800 |
---|---|---|
committer | dd3boh <dade.garberi@gmail.com> | 2017-07-12 23:03:43 +0200 |
commit | beb3af66878d67297a4540f2c299c680e372ec20 (patch) | |
tree | 5cba199e73a5f44ffa2e284add54e0d0e7bd6039 /overlay | |
parent | ca89575245ab64dfad36c2702c188bbfbf93839b (diff) |
op3: Adjust lmk parameters
Change-Id: I489e24298ccc429c54caf156d62b84ae2f0d48b1
Diffstat (limited to 'overlay')
-rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index bff486c..736ae72 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -472,4 +472,22 @@ <!-- Whether notify fingerprint client of successful cancelled authentication --> <bool name="config_notifyClientOnFingerprintCancelSuccess">true</bool> + + <!-- 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">409600</integer> + + <!-- Device configuration setting the /proc/sys/vm/extra_free_kbytes tunable in the kernel + (if it exists). A high value will increase the amount of memory that the kernel + tries to keep free, reducing allocation time and causing the lowmemorykiller to kill + earlier. A low value allows more memory to be used by processes but may cause more + allocations to block waiting on disk I/O or lowmemorykiller. Overrides the default + value chosen by ActivityManager based on screen size. 0 prevents keeping any extra + memory over what the kernel keeps by default. -1 keeps the default. --> + <integer name="config_extraFreeKbytesAbsolute">40960</integer> </resources> |