What the controllers limit
Each controller limits or tracks one resource. These four matter most for a sandbox:
- cpu: the CPU time the group may use in each period.
- memory: the hard limit on memory use.
- io: the disk I/O of the group.
- pids: the number of processes the group may create.
cgroup v1 and v2
cgroup v1 mounts each controller in its own hierarchy. cgroup v2 has one unified hierarchy for all controllers. The two versions can coexist on one host, but one controller cannot be used in both.
How a sandbox uses cgroups
Docker creates control groups for each container. The limits keep one container from exhausting the host memory, CPU or disk I/O. Sandboxes use the same limits to cap their size. Control groups do not stop one container from reaching the data of another. Namespaces do that.
What to check on a provider's page
- Check the CPU, memory and process limits that the provider states for each sandbox size.
- Check whether the provider states a disk I/O limit.
Referencedocs.kernel.org