conf: Support oom based event trigger and handler in conf 91/303591/1
authorUnsung Lee <unsung.lee@samsung.com>
Thu, 9 Nov 2023 01:12:03 +0000 (10:12 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Tue, 2 Jan 2024 08:44:32 +0000 (17:44 +0900)
commita57a7557310fef9ef2d6b93a53e20aadfbce8aac
treebb1fbaee62fb479b926e4cdba95be8dccd553e18
parentc18e14a39294128a57a31670f165fb593114b1ce
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