<div> </div>
<div>Hi,<br></div>
<div>we are using currently libvirt-0.10.2.</div>
<div>And yes in our platform cpu contorller(cpuacct) is not mounted.</div>
<div> </div>
<div>Could you please let us know how we can mount more controllers through libvirt.</div>
<div> </div>
<div>It would be helpful for us.</div>
<div> </div>
<div>Regards,</div>
<div>Anusha<br></div>
<div class="gmail_quote">On Fri, May 31, 2013 at 3:27 AM, Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div class="im">On 05/30/2013 01:37 AM, Anusha Rayani wrote:<br>> Hi,<br>><br>> We are implementing feature called CPU separation in the platform. So,<br>> guest VMs will have dedicated cores allocated using cgroups (cgroups<br>
> hierachy related VMs managed by libvirt).<br>><br>>  virsh cpu-stats command is not working in our platform :<br>><br>> virsh # cpu-stats test_vm<br>> error: Failed to virDomainGetCPUStats()<br>><br>
> error: Requested operation is not valid: cgroup CPUACCT controller is not<br>> mounted<br><br></div>Which version of libvirt?  Libvirt 1.0.5 included several improvements<br>to cgroup; perhaps some of those are relevant?  Libvirt is supposed to<br>
find cgroup controllers, regardless of how you spell their mount point<br>(it inspects procfs to learn the cgroups of the current process, rather<br>than hard-coding any particular path).  Are you sure you had cpuacct<br>
mounted?<br>
<div class="im"><br>> # cat /proc/cgroups<br>> #subsys_name    hierarchy       num_cgroups     enabled<br>> cpuset  0       1       1<br>> ns      0       1       1<br>> cpu     1       3       1<br>> cpuacct 0       1       1<br>
> memory  2       1       1<br>> freezer 0       1       1<br>> net_cls 0       1       1<br>> blkio   0       1       1<br>><br>> # cat /proc/mounts<br>> cpu /dev/cgroup_cpu cgroup rw,relatime,cpu 0 0<br>
> memory /dev/cgroup_mem cgroup rw,relatime,memory 0 0<br><br></div>That makes it sound like you haven't mounted quite enough cgroup<br>controllers.<br><span class="HOEnZb"><font color="#888888"><br>--<br>Eric Blake   eblake redhat com    +1-919-301-3266<br>
Libvirt virtualization library <a href="http://libvirt.org/" target="_blank">http://libvirt.org</a><br><br></font></span></blockquote></div><br>