This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
manuals:vps:cgroups [2023/03/17 15:47] – created Aither | manuals:vps:cgroups [2025/06/23 16:01] (current) – [cgroups v2 support] init scripts are updated aither | ||
---|---|---|---|
Line 7: | Line 7: | ||
There are two cgroup versions: v1 and v2. Because VPS are containers, the cgroup version | There are two cgroup versions: v1 and v2. Because VPS are containers, the cgroup version | ||
- | depends on the host and cannot be changed inside VPS. We' | + | depends on the host and cannot be changed inside VPS. Most VPS are currently using cgroup v1. |
- | This version is slowly being deprecated and in 2024, we can expect its support | + | This version is slowly being deprecated and we can expect its support |
- | [[https:// | + | [[https:// |
+ | in the near future (systemd v256 should still work). | ||
===== cgroups v2 ===== | ===== cgroups v2 ===== | ||
- | We plan to start the transition to cgroups v2 in 2023. The situation is complicated by the | + | The situation is complicated by the fact that older distributions do not support cgroups v2 |
- | fact that older distributions do not support cgroups v2 and one node can use only one | + | and one node can use only one cgroup version. We have nodes with v1 for older VPS and nodes |
- | cgroup version. We will have to have nodes with v1 for older VPS and nodes with v2 for | + | with v2 for new VPS and distributions that support it. You can see what cgroup version invididual |
- | new VPS and distributions that support it. Our goal is to move as many VPS as possible | + | nodes are using on vpsAdmin landing page. Our end goal is to move as many VPS as possible |
to cgroup v2, since it also comes with performance benefits e.g. in the memory subsystem. | to cgroup v2, since it also comes with performance benefits e.g. in the memory subsystem. | ||
Line 21: | Line 22: | ||
The following distributions support cgroups v2: | The following distributions support cgroups v2: | ||
- | * Alpine Linux with up-to-date init script | + | * Alpine Linux |
+ | * Arch Linux | ||
* CentOS / Alma Linux / Rocky Linux >= 8 | * CentOS / Alma Linux / Rocky Linux >= 8 | ||
* Debian >= 9 | * Debian >= 9 | ||
- | * Devuan | + | * Devuan |
* Fedora >= 31 (possibly older) | * Fedora >= 31 (possibly older) | ||
* NixOS >= 19.03 (possibly older) | * NixOS >= 19.03 (possibly older) | ||
* openSUSE Leap >= 15.1 (possibly older) | * openSUSE Leap >= 15.1 (possibly older) | ||
* Ubuntu >= 18.04 | * Ubuntu >= 18.04 | ||
- | * Void Linux with up-to-date init script | + | * Void Linux |
===== Configuring cgroup version ===== | ===== Configuring cgroup version ===== | ||
Line 39: | Line 41: | ||
If your VPS requires a specific cgroup version and it's not possible to change it, you can | If your VPS requires a specific cgroup version and it's not possible to change it, you can | ||
reflect this in vpsAdmin settings. If you'd like to move to a node with a different cgroup | reflect this in vpsAdmin settings. If you'd like to move to a node with a different cgroup | ||
- | version, please contact our support | + | version, please contact our support. |