Files
StateGrid/install_shell/cgroup-d5000-install/cgconfig.conf
Qin Bo 2235771f09 Initial commit
Signed-off-by: Qin Bo <bqin@linx-info.com>
2014-02-19 09:07:55 +08:00

79 lines
1.3 KiB
Plaintext

#
# Copyright IBM Corporation. 2007
#
# Authors: Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
#group daemons/www {
# perm {
# task {
# uid = root;
# gid = webmaster;
# }
# admin {
# uid = root;
# gid = root;
# }
# }
# cpu {
# cpu.shares = 1000;
# }
#}
#
#group daemons/ftp {
# perm {
# task {
# uid = root;
# gid = ftpmaster;
# }
# admin {
# uid = root;
# gid = root;
# }
# }
# cpu {
# cpu.shares = 500;
# }
#}
#
#mount {
# cpu = /mnt/cgroups/cpu;
# cpuacct = /mnt/cgroups/cpuacct;
#}
group d5000_limits {
perm {
task {
uid = d5000;
gid = d5000;
}
admin {
uid = sysadmin;
gid = sysadmin;
}
}
cpuset {
cpuset.cpus = 0-0;
cpuset.mems = 0-0;
}
memory {
memory.limit_in_bytes = 900M;
memory.memsw.limit_in_bytes = 962M;
}
}
mount {
cpu = /lxcg;
cpuset = /lxcg;
cpuacct = /lxcg;
memory = /lxcg;
freezer = /lxcg;
net_cls = /lxcg;
devices = /lxcg;
}