我在尝试使用cpuset子系统分离2组时遇到问题.这工作正常,但是如果我去向该组添加子组(在本例中为user1),cgconfig将无法以“无法删除非空组”开头.删除群组滥用者/ user1将完美启动.然而,这打破了我正在尝试的东西.
这是一个无法启动的示例cgconfig.
CentOS 6.5版(最终版)
2.6.32-431.5.1.el6.x86_64
libcgroup-0.40.rc1-5.el6_5.1.x86_64
在VM内部.
mount { cpuset = /cgroup/cpuset; cpu = /cgroup/cpu; cpuacct = /cgroup/cpuacct; memory = /cgroup/memory; devices = /cgroup/devices; freezer = /cgroup/freezer; net_cls = /cgroup/net_cls; blkio = /cgroup/blkio; } group normal { blkio { blkio.throttle.write_bps_device="253:0 72428800"; blkio.throttle.read_bps_device="253:0 72428800"; blkio.reset_stats=""; blkio.weight="700"; blkio.weight_device=""; } memory { memory.limit_in_bytes = "1673003008"; memory.memsw.limit_in_bytes="1673003008"; } cpuset { cpuset.mems = "0"; cpuset.cpus = "0-2"; } } group abusers { cpu {} blkio {} memory { memory.limit_in_bytes = "38442369024"; memory.memsw.limit_in_bytes="81203822592"; } cpuset { cpuset.mems = "0"; cpuset.cpus = "3"; } } group abusers/user1 { cpu { cpu.shares = 200; cpu.cfs_quota_us = 10000; cpu.cfs_period_us = 100000; } blkio { blkio.throttle.write_bps_device="253:2 10485760"; blkio.throttle.read_bps_device="253:2 10485760"; blkio.reset_stats=""; blkio.weight="100"; blkio.weight_device=""; } memory { memory.limit_in_bytes = "1024M"; memory.memsw.limit_in_bytes="1280M"; } }