aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2023-10-10 12:42:34 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2023-10-10 12:50:09 -0500
commit965de92b37cbe8d8670f6cc956e1d10677551e19 (patch)
treedab61cce2a6a42327a7e66f10cd18ec71303f03d
parentb85d771e1f90e56008be5a0f2d9f986648c689f4 (diff)
change default RC_CGROUP_MODE to unified
This improves resource management by assigning services to individual cgroups. X-Gentoo-Bug: https://bugs.gentoo.org/914972
-rw-r--r--etc/rc.conf2
-rw-r--r--init.d/cgroups.in2
-rw-r--r--sh/rc-cgroup.sh2
3 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.conf b/etc/rc.conf
index 0029d516..d359eb9e 100644
--- a/etc/rc.conf
+++ b/etc/rc.conf
@@ -199,7 +199,7 @@ rc_tty_number=12
# cgroups version 1 on /sys/fs/cgroup.
# "legacy" mounts cgroups version 1 on /sys/fs/cgroup
# "unified" mounts cgroups version 2 on /sys/fs/cgroup
-#rc_cgroup_mode="hybrid"
+#rc_cgroup_mode="unified"
# This is a list of controllers which should be enabled for cgroups version 2
# when hybrid mode is being used.
diff --git a/init.d/cgroups.in b/init.d/cgroups.in
index 4fa6b131..faf53d8a 100644
--- a/init.d/cgroups.in
+++ b/init.d/cgroups.in
@@ -128,7 +128,7 @@ cgroups_unified()
mount_cgroups()
{
- case "${rc_cgroup_mode:-hybrid}" in
+ case "${rc_cgroup_mode:-unified}" in
hybrid) cgroups_hybrid ;;
legacy) cgroups_legacy ;;
unified) cgroups_unified ;;
diff --git a/sh/rc-cgroup.sh b/sh/rc-cgroup.sh
index c99282fc..e5c7ae7f 100644
--- a/sh/rc-cgroup.sh
+++ b/sh/rc-cgroup.sh
@@ -154,7 +154,7 @@ cgroup_set_limits()
cgroup2_find_path()
{
if grep -qw cgroup2 /proc/filesystems; then
- case "${rc_cgroup_mode:-hybrid}" in
+ case "${rc_cgroup_mode:-unified}" in
hybrid) printf "/sys/fs/cgroup/unified" ;;
unified) printf "/sys/fs/cgroup" ;;
esac