Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.81 KB

File metadata and controls

47 lines (34 loc) · 1.81 KB
author rwestMSFT
ms.author randolphwest
ms.date 09/05/2025
ms.service sql
ms.topic include
ms.custom
linux-related-content

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.

Check cgroup version

stat -fc %T /sys/fs/cgroup

The results are as follows:

Result Description
cgroup2fs You're using cgroup v2
cgroup You're using cgroup v1

Switch to cgroup v2

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-grub

For more information, see the following resources: