Support memory management feature 64/225564/10
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 21 Feb 2020 03:34:13 +0000 (12:34 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Mon, 24 Feb 2020 06:10:38 +0000 (06:10 +0000)
commit3e627970ab601d2f93b21536841e34e8fd375dfc
treea79a7295b9e101eef4856b6ae492738184fc379c
parent1c9a87dca5fb04388284b35f41106dd7111d9e29
Support memory management feature

To manage memory usage, the launchpad checks the proc filesystem.
If the percentage of memory usage is over the threshold value, the
launchpad terminates the running slots. In this time, the running slots
are managed by the score and the memory usage(PSS). (exclude hydra loader)
The score of the candidate slot is decided by the amount of usage.

Change-Id: Ie8678be7dc6dfb346b4523b996bfa39d02b006f5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad/conf/launchpad.conf.in
src/launchpad/inc/launchpad_config.h
src/launchpad/inc/launchpad_memory_monitor.h [new file with mode: 0644]
src/launchpad/inc/launchpad_proc.h [new file with mode: 0644]
src/launchpad/src/launchpad.c
src/launchpad/src/launchpad_config.c
src/launchpad/src/launchpad_memory_monitor.c [new file with mode: 0644]
src/launchpad/src/launchpad_proc.c [new file with mode: 0644]