lowmem-monitor-psi: Add the lowest PSI level 21/300621/1 accepted/tizen/unified/20231031.163521
authorUnsung Lee <unsung.lee@samsung.com>
Mon, 30 Oct 2023 04:41:45 +0000 (13:41 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Mon, 30 Oct 2023 05:40:57 +0000 (14:40 +0900)
commita9d285cc22befe839845776430e13a40bc6e53bf
tree364eb8375bc4567a12925f20a1e92ebb2ecb572a
parenta6e279e81641bce48eab8f2f5089792a0cdb8395
lowmem-monitor-psi: Add the lowest PSI level

Add the lowest PSI level to monitor low memory early.
This is because, sometimes Out-of-Memory (OOM) is triggered earlier than LMK
in ths past 3 level PSIs.

New PSI also cannot perfectly detect LMK status before OOM is triggered.
However, it covers some LMK status detected by vmpressure(low).

In conclusion, change PSI like below:
PSI_LEVEL1(NEW): 30ms/500ms (6%)
LOW -> PSI_LEVEL2
MEDIUM -> PSI_LEVEL3
HIGH -> PSI_LEVEL4

Change-Id: Ib8fe1f75f8baf07d585fd1af8ef4306994d9c442
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/resource-limiter/memory/lowmem-monitor-psi.c