Skip to content

cgroups: Repository isolated cgroups

John Cai requested to merge jc-cgroups-repository-isolation into master

In be0ee060 (Introduce new Cgroups config 2022-04-17) we introduced a new Cgroups configuration that supports repository-isolation for command execution.

In this change, we implement the repository-based isolation cgroups. Commands are placed into cgroups based on the repository path, so that all commands for a given repository will end up in the same cgroup. This helps to prevent one user from potentially starving the whole system of memory or CPU.

To maintain backwards compatibility, we also add a translation function that translates the old config into the new format.

Changelog: changed

Edited by John Cai

Merge request reports