conf: Support oom based event trigger and handler in conf 25/301325/3
authorUnsung Lee <unsung.lee@samsung.com>
Thu, 9 Nov 2023 01:12:03 +0000 (10:12 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Tue, 21 Nov 2023 03:57:30 +0000 (12:57 +0900)
commitd7d7d45ce8250e843c33eb0b8d1022885e4d7fe8
treef8d95b1d4350ce0a14b48a0a726590f3b2a5aebd
parent2b6e7e56a06b3a3f9c761b13b191d67d7d2ab1bf
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