cgroups - CI/CD用語集の定義
cgroups (control groups) は、プロセスのグループが使用できるリソース (CPU、メモリ、I/O) を制限し集計する Linux カーネルの機能です。container はリソース制限を強制するために cgroups を使用します。
メモリ制限との関連
container が cgroup のメモリ制限を超えると、カーネルの out-of-memory killer がプロセスを終了させ、CI ログに exit code 137 が生成されます。制限を引き上げるかメモリ使用量を削減することで解決します。
関連ガイド
Linux Namespaces - CI/CD Glossary DefinitionLinux Namespaces: Linux namespaces are a kernel feature that isolates what a process can see: PID, network, m…
Resource Limits - CI/CD Glossary DefinitionResource Limits: Resource limits cap the CPU and memory a container may consume, enforced through cgroups. In…
OOM Score - CI/CD Glossary DefinitionOOM Score: The OOM score is a per-process value the Linux kernel uses to decide which process to kill first w…