> For the complete documentation index, see [llms.txt](https://philipzheng.gitbook.io/docker_practice/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://philipzheng.gitbook.io/docker_practice/underly/cgroups.md).

# 控制組

控制組（[cgroups](http://en.wikipedia.org/wiki/Cgroups)）是 Linux 核心的一個特性，主要用來對共享資源進行隔離、限制、統計等。只有能控制分配到容器的資源，才能避免當多個容器同時執行時的對系統資源的競爭。

控制組技術最早是由 Google 的程式員 2006 年起提出，Linux 核心自 2.6.24 開始支援。

控制組可以提供對容器的記憶體、CPU、磁碟 IO 等資源的限制和統計管理。
