plugin-api: resourced: Add lmk_try_count in get_kill_candidates_post_with_wss 78/298378/2 accepted/tizen/unified/20230907.175321
authorUnsung Lee <unsung.lee@samsung.com>
Tue, 5 Sep 2023 02:24:00 +0000 (11:24 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 6 Sep 2023 23:59:57 +0000 (23:59 +0000)
commitbb33cf580796f0db99aa9b7a66569cd7b4c4f75e
tree5c0ed5cdd62eaa20a6d5c18218308934ba90b011
parent418dfa5feca0f07cf72d714711a4d805e29fa532
plugin-api: resourced: Add lmk_try_count in get_kill_candidates_post_with_wss

resourced-lmk-governor needs to know the number of killing cycle.
This is because, the governor should know whether
memory thrasing happens or not. If lowmem state is not recovered during the
threshold cycle, then the governor skips working set size calculation and
does not give benefit to apps with effcient memory usage.

Change-Id: I4ba581d10b967665ae3155205cba9b30b0e3fa6b
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/plugin-api/resourced/include/system/syscommon-plugin-resourced-memory-lmk-interface.h
src/plugin-api/resourced/include/system/syscommon-plugin-resourced-memory-lmk.h
src/plugin-api/resourced/src/syscommon-plugin-resourced-memory-lmk.c