docker背景知识2 cgroups
Linux cgroups linux cgroups是linux提供的限制,控制和分离一个进程集资源的功能,子进程承接所有父进程cgroups限制 主要提供如下功能 Resource limitation: 限制资源使用 Prioritization: 优先级控制 Accounting: 审计和计费 Control: 挂起恢复执行进程 提供如下子模型 blkio — this subsystem sets limits on input/output access to and from block devices such as physical drives (disk, solid state, or USB). cpu — this subsystem uses the scheduler to provide cgroup tasks access to the CPU. cpuacct — this subsystem generates automatic reports on CPU resources used by tasks in a cgroup. cpuset — this subsystem assigns individual CPUs (on a multicore system) and memory nodes to tasks in a