OOM Score - CI/CD用語集の定義
OOMスコアは、メモリが枯渇したときにどのプロセスを最初に終了させるかをLinuxカーネルが判断するために使うプロセスごとの値です。oom_scoreが高いほど、そのプロセスはout-of-memoryキラーの標的になりやすくなります。
チューニング
oom_score_adjでキラーの挙動を調整できます。実際には、exit 137で終了したCI jobは、hostまたはコンテナがメモリ制限に達したときに最も高いスコアの標的だったということです。メモリ使用量を減らすか制限を引き上げるのが対処法です。
関連ガイド
cgroups - CI/CD Glossary Definitioncgroups: cgroups (control groups) are a Linux kernel feature that limits and accounts for the resources (CPU,…
Resource Limits - CI/CD Glossary DefinitionResource Limits: Resource limits cap the CPU and memory a container may consume, enforced through cgroups. In…
OOM (Out of Memory) - CI/CD Glossary DefinitionOOM (Out of Memory): **OOM** is when a process exceeds available memory and the kernel kills it. On CI runner…