From a06b236316d27cc19f5d0bbfd3ecf197328170c9 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Fri, 3 Feb 2023 07:05:09 +0000 Subject: [PATCH] samples/config: add a sample systemd delegation configuration Add a sample cgconfig.conf configuration file, that serves as a template for systemd delegation and how users can control the resources limit allocation such as cpu, memory, or any other valid cgroup settings for the systemd slice/scope cgroup created. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- samples/config/cgconfig_systemd.conf | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 samples/config/cgconfig_systemd.conf diff --git a/samples/config/cgconfig_systemd.conf b/samples/config/cgconfig_systemd.conf new file mode 100644 index 00000000..bfedf706 --- /dev/null +++ b/samples/config/cgconfig_systemd.conf @@ -0,0 +1,22 @@ +# SPDX-License-Identifier: LGPL-2.1-only +# +# Copyright (c) 2023 Oracle and/or its affiliates. +# Author: Kamalesh Babulal +# + +#systemd { +# slice = database.slice; +# scope = db.scope; +# setdefault = yes; +#} +# +#systemd { +# slice = database.slice; +# scope = house_keeping.scope; +# pid = 3456; +#} +# +#systemd { +# slice = others.slice; +# scope = server.scope; +#} -- 2.47.2