DCA · Question #11
Which of the following is supported by control groups?
The correct answer is C. Limit CPU usage within a container. Control groups (cgroups) are a Linux kernel feature that allows for resource allocation, prioritization, and limitation of system resources among groups of processes.
Question
Which of the following is supported by control groups?
Options
- AManage certificates
- BCollect net
- CLimit CPU usage within a container
- DIsolate processes in a container
How the community answered
(41 responses)- A2% (1)
- B2% (1)
- C90% (37)
- D5% (2)
Why each option
Control groups (cgroups) are a Linux kernel feature that allows for resource allocation, prioritization, and limitation of system resources among groups of processes.
Managing certificates is typically handled by security tools, PKI, or application-level configurations, not directly by Linux control groups.
While cgroups can monitor network usage, 'collect net' is not a standard or specific function supported by cgroups; network configuration and monitoring are distinct.
Cgroups can limit resource usage like CPU, memory, and I/O for processes or containers by creating hierarchical groups and assigning specific resource constraints to them.
Process isolation in containers is primarily provided by namespaces, which create a separate view of system resources for processes, distinct from cgroups which manage resource usage.
Concept tested: Linux cgroups resource management
Source: https://docs.docker.com/config/containers/resource_constraints/
Topics
Community Discussion
No community discussion yet for this question.