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 Test: lmkd_unit_test Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: Ia280dc095df9ca8494278e0a75b976ed93fc04ae
This commit is contained in:
parent
ff6ad5cd06
commit
7d1f4f0047
2
lmkd.cpp
2
lmkd.cpp
|
|
@ -3216,7 +3216,7 @@ static void update_props() {
|
|||
property_get_bool("ro.lmk.kill_heaviest_task", false);
|
||||
low_ram_device = property_get_bool("ro.config.low_ram", false);
|
||||
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 =
|
||||
property_get_bool("ro.lmk.use_minfree_levels", false);
|
||||
per_app_memcg =
|
||||
|
|
|
|||
Loading…
Reference in New Issue