lmkd: Set default kill timeout to limit waits for uninterruptible processes
When lmkd tries to kill a process in uninterruptible sleep state, it may
need to wait for a long time. To prevent this set the default kill timeout
to 100ms which should work for majority of the devices.
Bug: 160295034
Bug: 161955028
Bug: 162297751
Test: lmkd_unit_test
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ia280dc095df9ca8494278e0a75b976ed93fc04ae
(cherry picked from commit 7d1f4f0047)
Signed-off-by: Martin Liu <liumartin@google.com>
Merged-In: Ia280dc095df9ca8494278e0a75b976ed93fc04ae
This commit is contained in:
parent
62f4f4262e
commit
dd8c2c181b
2
lmkd.cpp
2
lmkd.cpp
|
|
@ -3196,7 +3196,7 @@ static void update_props() {
|
||||||
property_get_bool("ro.lmk.kill_heaviest_task", false);
|
property_get_bool("ro.lmk.kill_heaviest_task", false);
|
||||||
low_ram_device = property_get_bool("ro.config.low_ram", false);
|
low_ram_device = property_get_bool("ro.config.low_ram", false);
|
||||||
kill_timeout_ms =
|
kill_timeout_ms =
|
||||||
(unsigned long)property_get_int32("ro.lmk.kill_timeout_ms", 0);
|
(unsigned long)property_get_int32("ro.lmk.kill_timeout_ms", 100);
|
||||||
use_minfree_levels =
|
use_minfree_levels =
|
||||||
property_get_bool("ro.lmk.use_minfree_levels", false);
|
property_get_bool("ro.lmk.use_minfree_levels", false);
|
||||||
per_app_memcg =
|
per_app_memcg =
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue