[libvirt-users] cgroup

Ondrej Famera xfamera at fi.muni.cz
Sun Feb 13 21:37:29 UTC 2011


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-guests-in-fedora-12/

> Zvi Dubitzky
> Email:dubi at il.ibm.com
>
>
> _______________________________________________
> libvirt-users mailing list
> libvirt-users at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users

-- 
Ondrej Famera
unix at fi




More information about the libvirt-users mailing list