Skip to content

Commit 5676599

Browse files
committed
Add cgroup v2 switching documentation
Document cgroup v2 support available from kmod-lve 2.1-57 on CL8/CL9/CL10, including tuned profile commands to switch between v1 and v2, and dmesg verification step. Made-with: Cursor
1 parent 9d9d8bf commit 5676599

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

  • docs/cloudlinuxos/cloudlinux_os_kernel

docs/cloudlinuxos/cloudlinux_os_kernel/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,39 @@ tuned-adm off
664664
```
665665
</div>
666666

667+
### Switching between cgroup v1 and cgroup v2
668+
669+
Starting from **kmod-lve 2.1-57**, CloudLinux OS supports **cgroup v2**. This is available on **CloudLinux OS 8, 9, and 10** only — CloudLinux OS 7 is not supported.
670+
671+
To switch between cgroup versions, apply the appropriate tuned profile and reboot the server.
672+
673+
**Enable cgroup v2:**
674+
<div class="notranslate">
675+
676+
```
677+
tuned-adm profile cloudlinux-default-cgv2
678+
reboot
679+
```
680+
</div>
681+
682+
**Revert to cgroup v1:**
683+
<div class="notranslate">
684+
685+
```
686+
tuned-adm profile cloudlinux-default-cgv1
687+
reboot
688+
```
689+
</div>
690+
691+
To verify that the server has booted with cgroup v2 and that the LVE module is operating correctly, check the kernel log after reboot:
692+
<div class="notranslate">
693+
694+
```
695+
dmesg | grep -i "cgroups"
696+
```
697+
</div>
698+
699+
The presence of the message **"detected cgroups v2"** in the output confirms that the system is running with cgroup v2.
667700

668701
## Kernel config variables
669702

0 commit comments

Comments
 (0)