Comment 3 for bug 995956

Revision history for this message
urusha (urusha) wrote :

I see you. The critical issue is point 1, while point 2 is more a configuration issue. Now after your explanation I agree with your opinion about point 2. A better way is to add mount points (cpuset,blkio) to the default configuration file. What should I do for it then?

Well, I'm not against changing the title if it's needed.

The main purpose for me is to run daemons with limits. Upstart doesn't handle cgroups and cgroup limits at the moment, so the final optimal way I found is:
a) use cgconfig.conf to set limits
b) use service.override and cgexec to run daemon in the special cgroup. cups example:
  exec cgexec -g cpuset:daemon-cups /usr/sbin/cupsd -F

cgred could also be used, but if you use lxc on the same machine it affects all lxc container's daemons (cups) too and I don't need such limits. Anyway point 1 of this bug report is needed for this method to work too (cgconfig should start before cups).

Could you give me a link about libcgroup+libvirt problems?

Thanks.