Using openSUSE 12.2 64-bit. Though I am using a newer 3.7 kernel from obs. Should I perhaps try the stock openSUSE 3.4?
I want to create a few custom cgroups. So I installed the package libcgroup1 to gain the utilities. I used the configuration found in the package as an example to create the file /etc/cgconfig.conf. However when I try to start the service I get:
Code:
Jan 02 20:52:06 opensuse-sawako.site cgconfig[5488]: Starting service cgconfigLoading configuration file /etc/cgconfi...ailed
Jan 02 20:52:06 opensuse-sawako.site cgconfig[5488]: Cgroup mounting failed
Jan 02 20:52:06 opensuse-sawako.site cgconfig[5488]: Failed to parse /etc/cgconfig.conf..failed
Jan 02 20:52:06 opensuse-sawako.site cgconfig[5488]: ..done
For some reason the cgroups will not mount? I can only assume because systemd already is using cgroups at /sys/fs/cgroups. If I try to mount there instead it tells me I have no permission. Is there a correct way to setup cgroups? This is my /etc/cgconfig.conf so far:
Code:
group background {
perm {
task {
uid = root;
gid = root;
}
admin {
uid = root;
gid = root;
}
}
cpu {
cpu.shares = 512;
}
}
mount {
cpu = /mnt/cgroups/cpu;
cpuacct = /mnt/cgroups/cpuacct;
}
No comments:
Post a Comment