| author | rwestMSFT | |
|---|---|---|
| ms.author | randolphwest | |
| ms.date | 09/05/2025 | |
| ms.service | sql | |
| ms.topic | include | |
| ms.custom |
|
Starting with [!INCLUDE sssql25-md] and [!INCLUDE sssql22-md] CU 20, [!INCLUDE ssnoversion-md] detects and honors control group (cgroup) v2 constraints, improving performance stability and resource isolation across Docker, Kubernetes, and OpenShift environments. Control groups enable fine-grained control in the Linux kernel over system resources such as CPU and memory.
With cgroup v2 support, [!INCLUDE ssnoversion-md] mitigates out of memory (OOM) errors previously observed in containerized deployments, particularly on Kubernetes clusters (for example, AKS v1.25+), where memory limits defined in container specifications weren't enforced.
stat -fc %T /sys/fs/cgroupThe results are as follows:
| Result | Description |
|---|---|
cgroup2fs |
You're using cgroup v2 |
cgroup |
You're using cgroup v1 |
The easiest path is choosing a distribution that supports cgroup v2 out of the box.
If you need to switch manually, add the following line to your GRUB configuration:
systemd.unified_cgroup_hierarchy=1
Then, run the following command to update GRUB:
sudo update-grubFor more information, see the following resources: