Skip to content

Commit 2341b95

Browse files
authored
Merge pull request #312 from rtulchii/cgroup-v2-support-docs
Cgroup v2 support docs
2 parents aa8ea65 + a47b075 commit 2341b95

File tree

1 file changed

+65
-3
lines changed
  • docs/cloudlinuxos/cloudlinux_os_kernel

1 file changed

+65
-3
lines changed

docs/cloudlinuxos/cloudlinux_os_kernel/README.md

Lines changed: 65 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -554,12 +554,12 @@ The following profiles are provided by CloudLinux OS:
554554
- cloudlinux-default - CloudLinux hosting profile (DEPRECATED)
555555
- cloudlinux-default-base - Base CloudLinux hosting profile
556556
- cloudlinux-default-cgv1 - Optimized CloudLinux hosting Servers with cgroups v1
557-
- cloudlinux-default-cgv2 - Optimized CloudLinux hosting Servers with cgroups v2 (NOT SUPPORTED YET)
557+
- cloudlinux-default-cgv2 - Optimized CloudLinux hosting Servers with cgroups v2
558558
- cloudlinux-dummy - Empty CloudLinux tuned profile
559559
- cloudlinux-latency-performance - CloudLinux latency-performance profile (DEPRECATED)
560560
- cloudlinux-latency-performance-base - Base CloudLinux latency-performance profile
561561
- cloudlinux-latency-performance-cgv1 - Optimized CloudLinux hosting Servers with cgroups v1
562-
- cloudlinux-latency-performance-cgv2 - Optimized CloudLinux hosting Servers with cgroups v2 (NOT SUPPORTED YET)
562+
- cloudlinux-latency-performance-cgv2 - Optimized CloudLinux hosting Servers with cgroups v2
563563
- cloudlinux-vz - Empty CloudLinux tuned profile
564564
```
565565
</div>
@@ -570,7 +570,7 @@ The recommended profile for most servers is **<span class="notranslate">cloudlin
570570
The profiles are organized in a hierarchy:
571571
- **<span class="notranslate">cloudlinux-default-base</span>** / **<span class="notranslate">cloudlinux-latency-performance-base</span>** — contain all generic tuning parameters (sysctl, CPU governor, OOM adjustments). Not intended for direct use.
572572
- **<span class="notranslate">cloudlinux-default-cgv1</span>** / **<span class="notranslate">cloudlinux-latency-performance-cgv1</span>** — include the base profile and add cgroups v1 boot parameters. **Recommended for most servers.**
573-
- **<span class="notranslate">cloudlinux-default-cgv2</span>** / **<span class="notranslate">cloudlinux-latency-performance-cgv2</span>**reserved for future cgroups v2 support. Not supported yet.
573+
- **<span class="notranslate">cloudlinux-default-cgv2</span>** / **<span class="notranslate">cloudlinux-latency-performance-cgv2</span>**include the base profile and add cgroups v2 boot parameters. Supported starting from **kmod-lve 2.1-58** on **CloudLinux OS 8, 9, 10, and Ubuntu 22**.
574574
- **<span class="notranslate">cloudlinux-default</span>** / **<span class="notranslate">cloudlinux-latency-performance</span>****deprecated** wrappers that internally include the <span class="notranslate">-cgv1</span> variants. They remain functional for backward compatibility (e.g. existing Ansible scripts), but new installations should use the <span class="notranslate">-cgv1</span> profiles directly.
575575

576576
When upgrading from older versions, the deprecated profiles are automatically switched to their <span class="notranslate">-cgv1</span> equivalents.
@@ -664,6 +664,68 @@ tuned-adm off
664664
```
665665
</div>
666666

667+
### Switching between cgroup v1 and cgroup v2
668+
669+
CloudLinux OS supports **cgroup v2** on **CloudLinux OS 8, 9, 10, and Ubuntu 22** — CloudLinux OS 7 is not supported.
670+
671+
::: tip Note
672+
**CloudLinux OS 10** uses **cgroup v2 by default**. On **CloudLinux OS 8, 9, and Ubuntu 22**, cgroup v1 is the default.
673+
:::
674+
675+
The following package versions are required:
676+
677+
| Package | CL8 | CL9 | CL10 | Ubuntu 22 |
678+
|---------|-----|-----|------|-----------|
679+
| `kmod-lve` / `kmodlve-dkms` | 2.1-58+ | 2.1-58+ | 2.1-58+ | 2.1-58+ |
680+
| `tuned-profiles-cloudlinux` | 0.2-14+ | 0.2-15+ | 0.3-6+ | 0.2-10+ |
681+
682+
To switch between cgroup versions, apply the appropriate tuned profile and reboot the server. Choose the profile that matches your current profile family (`cloudlinux-default` or `cloudlinux-latency-performance`).
683+
684+
**Enable cgroup v2 (default profile):**
685+
<div class="notranslate">
686+
687+
```
688+
tuned-adm profile cloudlinux-default-cgv2
689+
reboot
690+
```
691+
</div>
692+
693+
**Enable cgroup v2 (latency-performance profile):**
694+
<div class="notranslate">
695+
696+
```
697+
tuned-adm profile cloudlinux-latency-performance-cgv2
698+
reboot
699+
```
700+
</div>
701+
702+
**Revert to cgroup v1 (default profile):**
703+
<div class="notranslate">
704+
705+
```
706+
tuned-adm profile cloudlinux-default-cgv1
707+
reboot
708+
```
709+
</div>
710+
711+
**Revert to cgroup v1 (latency-performance profile):**
712+
<div class="notranslate">
713+
714+
```
715+
tuned-adm profile cloudlinux-latency-performance-cgv1
716+
reboot
717+
```
718+
</div>
719+
720+
To verify that the server has booted with cgroup v2 and that the LVE module is operating correctly, check the kernel log after reboot:
721+
<div class="notranslate">
722+
723+
```
724+
dmesg | grep -i "cgroups"
725+
```
726+
</div>
727+
728+
The presence of the message **"detected cgroups v2"** in the output confirms that the system is running with cgroup v2.
667729

668730
## Kernel config variables
669731

0 commit comments

Comments
 (0)