diff options
author | Charan Teja Reddy <charante@codeaurora.org> | 2019-09-12 16:55:47 +0530 |
---|---|---|
committer | charan teja reddy <charante@codeaurora.org> | 2019-09-25 05:41:32 +0000 |
commit | dc05bfa43f31f3dea8083ff890069dfed9e9ac4f (patch) | |
tree | 210a643218beb1abb63a52dbc47c4fdb0b21fd86 /trusty/coverage/coverage_test.cpp | |
parent | 529274813e13ef544e72d3175d5ba5a17f4ff6fb (diff) |
lmkd: add one task in proc_get_script per polling interval
In search of native apps to kill by ULMK, proc_get_script() traverse all
the process in the system by opening /proc directory. This can take
indefinte amount of time in low on memory as to give the info for each
entry kernel may go for memory reclaim. As anyway we are killing only
one process in a polling interval, just limit adding one eligible process
to kill while saving the current position in readdir.
CRs-Fixed: 2521954
Change-Id: I94c8a1c61735d1412c7efc83e9d627730ac2c06b
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions