What is the function of cgroup in docker

Release: 2020-04-03 10:51:03
Original
7759 people have browsed it

What is the function of cgroup in docker

The main functions of cgroups in docker:

Resource Limitation (ResourceLimitation)

cgroups can limit the total resources used by the process group. For example, if you set an upper limit for memory usage when the application is running, an OOM (OutofMemory) will be issued once this quota is exceeded.

Prioritization

By assigning the number of CPU time slices and the size of the hard disk IO bandwidth, it is actually equivalent to controlling the priority of the process.

Resource Statistics (Accounting)

cgroups can count system resource usage, such as CPU usage time, memory usage, etc. This function is very suitable for billing.

Process Control (Control)

cgroups can perform operations such as suspending and resuming process groups.

For more related tutorials, please pay attention to the docker tutorial column on the PHP Chinese website.

The above is the detailed content of What is the function of cgroup in docker. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!