conf: Support oom based event trigger and handler in conf 94/302694/2
authorUnsung Lee <unsung.lee@samsung.com>
Thu, 9 Nov 2023 01:12:03 +0000 (10:12 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Thu, 28 Dec 2023 09:30:01 +0000 (18:30 +0900)
commit14ffaaf66011594e03fa0f6f2245a3383100b14c
treea86a0c7f57b46078b2c37ecd552143aee8f8f217
parent11641becfc0fec2af1e06c413811bbf5f490d55f
conf: Support oom based event trigger and handler in conf

Add 'MemoryLimitTrigger' conf to support oom based event trigger and handler.
If conf value is oom then, memory limit is handled by kernel oom. On the other hand,
reosurced handles memory limit directly with threshold value in the conf.

Change-Id: I785fc8bdac9505f990dc48cf3c4c7d4ead013c01
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
conf/README
conf/limiter.conf
src/common/cgroup/memory-cgroup.h
src/common/conf/config-parser.c
src/common/conf/config-parser.h