linux - What is the relationship between cgroups and rlimit?
PHP中文网
PHP中文网 2017-05-31 10:38:05
0
1
817

Both of these have the function of limiting process resources, but rlimit is two system calls, which seems to be more low-level. Does the implementation of cgroup use rlimit? Or is there no relationship between the two and they are two independent mechanisms?

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
黄舟

cgroup is a resource that limits a group of processes, and rlimit is a resource that limits a process or a user. They are two independent mechanisms, which are irrelevant. There seems to be almost no overlap in what they restrict. A process is subject to cgroup Restrictions are also subject to rlimt restrictions. You can refer to: Cgroup overview and man getrlimit

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!