[Devel] [PATCH RHEL9 COMMIT] configs/cgroup: Make cgroup v1 the default hierarcy

Konstantin Khorenko khorenko at virtuozzo.com
Tue Apr 11 21:29:05 MSK 2023


The commit is pushed to "branch-rh9-5.14.0-162.18.1.vz9.19.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh9-5.14.0-162.18.1.vz9.19.4
------>
commit 297766fa08489bdf9906b7f2228a4c8608050f5d
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Tue Apr 11 20:30:39 2023 +0300

    configs/cgroup: Make cgroup v1 the default hierarcy
    
    Add "systemd.unified_cgroup_hierarchy=0" to the kernel boot command line
    which effectively asks kernel to use cgroups v1 by default.
    
    If someone wants to use cgroups v2, adding
    systemd.unified_cgroup_hierarchy=1 into the grub kernel command line
    will do the trick.
    
    https://jira.vzint.dev/browse/PSBM-146806
    
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
    
    Feature: cgroup: unified cgroup hierarchy (cgroup v2) support
---
 redhat/configs/custom-overrides/generic/CONFIG_CMDLINE          | 1 +
 redhat/configs/custom-overrides/generic/CONFIG_CMDLINE_BOOL     | 1 +
 redhat/configs/custom-overrides/generic/CONFIG_CMDLINE_OVERRIDE | 1 +
 3 files changed, 3 insertions(+)

diff --git a/redhat/configs/custom-overrides/generic/CONFIG_CMDLINE b/redhat/configs/custom-overrides/generic/CONFIG_CMDLINE
new file mode 100644
index 000000000000..1380a978c416
--- /dev/null
+++ b/redhat/configs/custom-overrides/generic/CONFIG_CMDLINE
@@ -0,0 +1 @@
+CONFIG_CMDLINE="systemd.unified_cgroup_hierarchy=0"
diff --git a/redhat/configs/custom-overrides/generic/CONFIG_CMDLINE_BOOL b/redhat/configs/custom-overrides/generic/CONFIG_CMDLINE_BOOL
new file mode 100644
index 000000000000..a04ac67dfe3b
--- /dev/null
+++ b/redhat/configs/custom-overrides/generic/CONFIG_CMDLINE_BOOL
@@ -0,0 +1 @@
+CONFIG_CMDLINE_BOOL=y
diff --git a/redhat/configs/custom-overrides/generic/CONFIG_CMDLINE_OVERRIDE b/redhat/configs/custom-overrides/generic/CONFIG_CMDLINE_OVERRIDE
new file mode 100644
index 000000000000..75d188dd7f28
--- /dev/null
+++ b/redhat/configs/custom-overrides/generic/CONFIG_CMDLINE_OVERRIDE
@@ -0,0 +1 @@
+# CONFIG_CMDLINE_OVERRIDE is not set


More information about the Devel mailing list