<div dir="ltr"><div><div>Hi Eric,<br><br></div><div>Sorry to hijack this thread.<br></div><div><br>Have you used vcpu_quota in production? I have come across a CPU stall problem when vcpu_quota is effective not long ago and I'm still looking for an answer.<br>
<br>For example, when I set<br>virsh schedinfo <id> --set vcpu_quota=5000<br><br></div>Then no matter the vm is loaded or idle, in about two weeks, sometimes sooner, the vm will have CPU stall in dmesg log. The CPU stall problem makes system not responsible and results in network failure, i.e. ping and ssh will fail. I have tried a few guest distro (ubuntu, CentOS, debian) with different kernel version (3.2, 3.8) and they all have this problem.<br>
<br></div><div>Do you have any idea what's behind the scenes?<br><br>The software I am running:<br><div>hypervisor os: ubuntu 12.04.3<br>hypervisor kernel: 3.8.0-35-generic<br></div><div>vm os: ubuntu 12.04  // I have tried other OSes.<br>
</div><div>vm kernel: 3.2.0-56-virtual<br></div>libvirt: 1.1.1-0ubuntu8~cloud2<br></div><div><div><br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><i><br>YY Inc. is hiring openstack and python developers. Interested? Check <a href="http://www.nsbeta.info/jobs" target="_blank">http://www.nsbeta.info/jobs</a></i><br>
</div><div><br>--<br>Thanks,<br></div>Yuanle<br></div></div>
<br><br><div class="gmail_quote">On Thu, Mar 6, 2014 at 7:42 AM, Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="">On 03/05/2014 04:32 PM, Martin Pavlásek wrote:<br>
> Hi<br>
><br>
> I tried to restrict usage of some running VM by cpu.shares (i.e. set to<br>
> 10 from original 1024) on loaded system and it seem doesn't work as I<br>
> expected... all running processes has same CPU usage (by htop) :-/<br>
<br>
</div>How exactly are you changing the cgroup settings?  Are you trying to<br>
directly modify cgroup files (unsupported), or using the libvirt API<br>
(such as via virsh schedinfo)?<br>
<span class=""><font color="#888888"><br>
--<br>
Eric Blake   eblake redhat com    <a href="tel:%2B1-919-301-3266" value="+19193013266">+1-919-301-3266</a><br>
Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
<br>
</font></span><br>_______________________________________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br></blockquote></div><br></div></div></div>