docker_practice/underly/cgroups.md

10 lines
477 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

## 控制组
控制组([cgroups](http://en.wikipedia.org/wiki/Cgroups)是Linux内核的一个特性主要用来隔离各个容器和宿主主机的资源利用。只有能控制分配到容器的资源才能避免当多个容器同时运行时的彼此资源竞争。
控制组技术最早是由Google的程序员2006年起提出Linux内核自2.6.24开始支持。
控制组可以提供对容器内内存、CPU、磁盘IO等资源的限制和计费管理。