DCA · Question #109
Does this describe the role of Control Groups (cgroups) when used with a Docker container? Solution: accounting and limiting of resources
The correct answer is B. No. Control Groups (cgroups) are a Linux kernel feature primarily for resource management and isolation, and while they enable accounting and limiting, their full role encompasses more.
Question
Does this describe the role of Control Groups (cgroups) when used with a Docker container? Solution: accounting and limiting of resources
Options
- AYes
- BNo
How the community answered
(27 responses)- A11% (3)
- B89% (24)
Why each option
Control Groups (cgroups) are a Linux kernel feature primarily for resource management and isolation, and while they enable accounting and limiting, their full role encompasses more.
Cgroups are indeed the underlying mechanism for resource accounting and limiting in Linux, which Docker utilizes to manage container resources.
No. While cgroups are instrumental in enabling the accounting and limiting of resources for processes, their role is more comprehensive, also involving resource isolation and prioritization to ensure fair resource sharing and prevent resource starvation. Therefore, 'accounting and limiting of resources' describes *part* of their functionality but not the entirety of their role.
Concept tested: Docker cgroups role and functionality
Source: https://docs.docker.com/config/containers/resource_constraints/
Topics
Community Discussion
No community discussion yet for this question.