Linux cgroups can be used for physical memory control, suitable for a variety of application scenarios, because there are more things in cgroups, this article will give you a brief introduction to Linux cgroups, so that everyone has a preliminary understanding.
From the beginning version 2.6.24, linux kernel provides a feature called cgroups (control group). Cgroups is an abbreviation of control groups, which is used to limit, count, and isolate the resources occupied by a group of processes. It is also one of the foundations of the current lightweight virtualization technology lxc (linux container). Each set of processes is a control group, which is a cgroup. Cgroups are divided into several subsystems, each of which represents a facility or resource controller that is used to schedule the use of certain types of resources, such as cpu clocks, memory, block devices, and so on. In terms of implementation, cgroups does not add new system calls, but instead acts as a cgroup file system, which can mount one or more subsystems to a directory. For example, the
code is as follows:
mount -t cgroup -o cpu cpu /sys/fs/cgroup/cpu
Mount the cpu subsystem in /sys/Fs/cgroup/cpu. It is also possible to mount multiple subsystems in a single directory, or even all of them to a directory, but I think it would be more flexible to mount each subsystem in a different directory. Use mount
Many people may not know that the Ubuntu system has its own recovery mode. So what
There are many ways to take screenshots in Linux, but how do you take screenshots i
In Linux systems, route forwarding refers to a protocol in which signals are transf
Firefox is a browser that users like very much on Linux systems, but Firefox often has garbled chara
How to find the reset user name and password in the Uuntu system
Linux refuses foreign IP access steps
What if the Linux partition read-only causes the database to stop writing data?
Summary of screenshots under Ubuntu
How to configure network under Debian system
Steps to install GitLab on CentOS system
What is the role of inode nodes in Linux?
Linux how to use the locate command to find data
VMware clone Linux prompt eth0 can not find what to do?
How to configure the network for Kali Linux?
How to solve the problem that the Linux cd command enters the xargs pipeline output directory error
Analysis of what is Dolby sound and its benefits
How does Win8 prohibit Explorer files from automatically cleaning thumbnails?
Solution for adb connection failure under Mac or Linux
How do WinXP systems extract file names in batches?
Using Credential Manager to increase access speed under Windows 7
ADSL let windows xp boot fake death solution
What should I do if the win7 system CD does not open?