标签:
http://www.ibm.com/developerworks/cn/linux/1506_cgroup/
http://www.elmerzhang.com/2012/11/cgroups-learning-1-introduction/
http://blog.csdn.net/jk198310/article/details/9292667
http://blog.chinaunix.net/uid-20788636-id-4451420.html
[root@localhost ~]# uname -a
Linux localhost.localdomain 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# cat /proc/version
Linux version 3.10.0-229.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) #1 SMP Fri Mar 6 11:36:42 UTC 2015
在cgroup中存在几个基本概念:
服务器支持的子系统可以查看/proc/cgroups查看:
[root@localhost proc]# cat /proc/cgroups #subsys_name hierarchy num_cgroups enabled cpuset 2 1 1 cpu 3 1 1 cpuacct 3 1 1 memory 4 1 1 devices 5 1 1 freezer 6 1 1 net_cls 7 1 1 blkio 8 1 1 perf_event 9 1 1 hugetlb 10 1
标签:
原文地址:http://www.cnblogs.com/SailorXiao/p/5808833.html