[libvirt-users] cgroup

Hi Should libvirtd be in a cgroup hierarchy rooted at /dev/cgroup or it can be rooted also at /cgroup i,e can /etc/cgconfig.conf look like his (without the /dev) : mount { cpuset = /cgroup/cpuset; cpu = /cgroup/cpu; cpuacct = /cgroup/cpuacct; memory = /cgroup/memory; devices = /cgroup/devices; freezer = /cgroup/freezer; net_cls = /cgroup/net_cls; ns = /cgroup/ns; blkio = /cgroup/blkio; } thanks Zvi Dubitzky Email:dubi@il.ibm.com

On 13.02.2011 19:33, Zvi Dubitzky wrote:
Hi
Should libvirtd be in a cgroup hierarchy rooted at /dev/cgroup or it can be rooted also at /cgroup i,e can /etc/cgconfig.conf look like his (without the /dev) :
mount { cpuset = /cgroup/cpuset; cpu = /cgroup/cpu; cpuacct = /cgroup/cpuacct; memory = /cgroup/memory; devices = /cgroup/devices; freezer = /cgroup/freezer; net_cls = /cgroup/net_cls; ns = /cgroup/ns; blkio = /cgroup/blkio; }
thanks
Hi, it doesn't matter where the cgroup hierarchy is mounted. And yes, the /etc/cgconfig.conf can look like that. But you are missing some group in which to put libvirtd. - good tutorial with examples for cgroups in libvirt can be found at http://berrange.com/posts/2009/12/03/using-cgroups-with-libvirt-and-lxckvm-g...
Zvi Dubitzky Email:dubi@il.ibm.com
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
-- Ondrej Famera unix@fi
participants (2)
-
Ondrej Famera
-
Zvi Dubitzky