<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Sorry,</p>
<p>How you trigger the problem ?</p>
<p>B.<br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> centos-virt-bounces@centos.org &lt;centos-virt-bounces@centos.org&gt; on behalf of Laurentiu Soica &lt;laurentiu@soica.ro&gt;<br>
<b>Sent:</b> Tuesday, August 16, 2016 3:28 AM<br>
<b>To:</b> Discussion about the virtualization on CentOS<br>
<b>Subject:</b> Re: [CentOS-virt] Nested KVM issue</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">
<div><font face="monospace">Hello,</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">The issue reproduced again and it doesn't look like a swap problem. Some details:</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">on the baremetal, from top:<br>
</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">top - 08:08:52 up 5 days, 16:43, &nbsp;3 users, &nbsp;load average: 36.19, 36.05, 36.05</font></div>
<div><font face="monospace">Tasks: 493 total, &nbsp; 1 running, 492 sleeping, &nbsp; 0 stopped, &nbsp; 0 zombie</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">%Cpu(s): &nbsp;3.5 us, 87.9 sy, &nbsp;0.0 ni, &nbsp;8.6 id, &nbsp;0.0 wa, &nbsp;0.0 hi, &nbsp;0.0 si, &nbsp;0.0 st</font></div>
<div><font face="monospace">KiB Mem : 12357451&#43;total, 14296000 free, 65634428 used, 43644088 buff/cache</font></div>
<div><font face="monospace">KiB Swap: &nbsp;4194300 total, &nbsp;4073868 free, &nbsp; 120432 used. 56953888 avail Mem</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">19158 qemu &nbsp; &nbsp; &nbsp;20 &nbsp; 0 &nbsp;0.098t 0.041t &nbsp;10476 S &nbsp;3650 35.6 &nbsp;13048:24 qemu-kvm</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">The compute node has 36 CPUs and the usage is now 100%. There are more than 50 GB of memory still available on the baremetal. The swap is barely used, 120 MB.</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">On compute node, from top:</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">top - 05:11:58 up 1 day, 15:08, &nbsp;2 users, &nbsp;load average: 40.46, 40.49, 40.74</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">%Cpu(s): 99.1 us, &nbsp;0.7 sy, &nbsp;0.0 ni, &nbsp;0.0 id, &nbsp;0.0 wa, &nbsp;0.0 hi, &nbsp;0.1 si, &nbsp;0.1 st</font></div>
<div><font face="monospace">KiB Mem : 10296246&#43;total, 78079936 free, 23671360 used, &nbsp;1211160 buff/cache</font></div>
<div><font face="monospace">KiB Swap: &nbsp; &nbsp; &nbsp; &nbsp;0 total, &nbsp; &nbsp; &nbsp; &nbsp;0 free, &nbsp; &nbsp; &nbsp; &nbsp;0 used. 78939968 avail Mem</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">&nbsp; PID USER &nbsp; &nbsp; &nbsp;PR &nbsp;NI &nbsp; &nbsp;VIRT &nbsp; &nbsp;RES &nbsp; &nbsp;SHR S &nbsp;%CPU %MEM &nbsp; &nbsp; TIME&#43; COMMAND</font></div>
<div><font face="monospace">&nbsp;6032 qemu &nbsp; &nbsp; &nbsp;20 &nbsp; 0 10.601g 1.272g &nbsp;12964 S 400.0 &nbsp;1.3 588:40.39 qemu-kvm</font></div>
<div><font face="monospace">&nbsp;5673 qemu &nbsp; &nbsp; &nbsp;20 &nbsp; 0 10.602g 1.006g &nbsp;13020 S 399.7 &nbsp;1.0 &nbsp; 1161:47 qemu-kvm</font></div>
<div><font face="monospace">&nbsp;5998 qemu &nbsp; &nbsp; &nbsp;20 &nbsp; 0 10.601g 1.192g &nbsp;13028 S 367.9 &nbsp;1.2 &nbsp; 1544:30 qemu-kvm</font></div>
<div><font face="monospace">&nbsp;5951 qemu &nbsp; &nbsp; &nbsp;20 &nbsp; 0 10.601g 1.246g &nbsp;13020 S 348.3 &nbsp;1.3 &nbsp; 1547:38 qemu-kvm</font></div>
<div><font face="monospace">&nbsp;5750 qemu &nbsp; &nbsp; &nbsp;20 &nbsp; 0 10.599g 990136 &nbsp;13060 S 339.1 &nbsp;1.0 &nbsp; 1152:25 qemu-kvm</font></div>
<div><font face="monospace">&nbsp;5752 qemu &nbsp; &nbsp; &nbsp;20 &nbsp; 0 10.598g 1.426g &nbsp;13040 S 313.9 &nbsp;1.5 663:13.65 qemu-kvm</font></div>
<div><font face="monospace"><span style="line-height:18px">....</span></font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">There are more than 70 GB of memory available on the compute node. All VMs are using 100% their CPUs and they are not accessible anymore.</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">Laurentiu&nbsp;</font></div>
<font face="monospace"><br>
</font>
<div class="gmail_quote">
<div dir="ltr"><font face="monospace">Īn dum., 14 aug. 2016 la 21:44, Boris Derzhavets &lt;<a href="mailto:bderzhavets@hotmail.com">bderzhavets@hotmail.com</a>&gt; a scris:<br>
</font></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<p><font face="monospace"><br>
</font></p>
<font face="monospace"><br>
<br>
</font>
<div style="color:rgb(0,0,0)"><font face="monospace">
<hr style="display:inline-block; width:98%">
</font>
<div dir="ltr"><font face="monospace"><font style="font-size:11pt" color="#000000"><b>From:</b>
<a href="mailto:centos-virt-bounces@centos.org" target="_blank">centos-virt-bounces@centos.org</a> &lt;<a href="mailto:centos-virt-bounces@centos.org" target="_blank">centos-virt-bounces@centos.org</a>&gt; on behalf of Laurentiu Soica &lt;<a href="mailto:laurentiu@soica.ro" target="_blank">laurentiu@soica.ro</a>&gt;<br>
<b>Sent:</b> Sunday, August 14, 2016 10:17 AM<br>
<b>To:</b> Discussion about the virtualization on CentOS<br>
<b>Subject:</b> Re: [CentOS-virt] Nested KVM issue</font> </font>
<div><font face="monospace">&nbsp;</font></div>
</div>
<div>
<div dir="ltr"></div>
</div>
</div>
</div>
</div>
<div dir="ltr">
<div style="font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<div style="color:rgb(0,0,0)">
<div>
<div dir="ltr"><font face="monospace">More details on the subject: </font>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">I suppose it is a nested KVM issue because it raised after I enabled the nested KVM feature. Without it, anyway, the second level VMs are unusable in terms of performance.</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">I am using CentOS 7 with:</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">kernel:&nbsp;3.10.0-327.22.2.el7.x86_64</font></div>
<div><font face="monospace">qemu-kvm:1.5.3-105.el7_2.4</font></div>
<div><font face="monospace">libvirt:1.2.17-13.el7_2.5</font></div>
<div><font face="monospace"><br>
</font></div>
</div>
</div>
</div>
</div>
</div>
<div dir="ltr">
<div style="font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<div style="color:rgb(0,0,0)">
<div>
<div dir="ltr">
<div><font face="monospace">on both the baremetal and the compute VM.<br>
<br>
</font></div>
</div>
</div>
</div>
</div>
</div>
<div dir="ltr">
<div style="font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<div style="color:rgb(0,0,0)">
<div>
<div dir="ltr">
<div><font face="monospace"><b>Please, post</b><br>
<br>
1) # virsh dumpxml&nbsp; VM-L1&nbsp; ( where on L1 level you expect nested KVM to appear)<br>
2) Login into VM-L1 and run :-<br>
&nbsp;&nbsp;&nbsp; # lsmod | grep kvm<br>
3) I need outputs from VM-L1 ( in case it is Compute Node )<br>
<br>
# cat /etc/nova/nova.conf | grep virt_type<br>
# <span>cat /etc/nova/nova.conf | grep&nbsp; cpu_mode</span><br>
<br>
Boris.<br>
<br>
<br>
&nbsp;&nbsp; <br>
<br>
</font></div>
</div>
</div>
</div>
</div>
</div>
<div dir="ltr">
<div style="font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<div style="color:rgb(0,0,0)">
<div>
<div dir="ltr">
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">The only workaround now is to shutdown the compute VM and start it back from baremetal with virsh start.</font></div>
<div><font face="monospace">A simple restart of the compute node doesn't help. It looks like the qemu-kvm process corresponding to the compute VM is the problem.</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">Laurentiu</font></div>
</div>
</div>
</div>
</div>
</div>
<div dir="ltr">
<div style="font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<div style="color:rgb(0,0,0)">
<div><font face="monospace"><br>
</font>
<div class="gmail_quote">
<div dir="ltr"><font face="monospace">Īn dum., 14 aug. 2016 la 00:19, Laurentiu Soica &lt;<a href="mailto:laurentiu@soica.ro" target="_blank">laurentiu@soica.ro</a>&gt; a scris:<br>
</font></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr"><font face="monospace">Hello, </font>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">I have an OpenStack setup in virtual environment on CentOS 7.</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">The baremetal has&nbsp;<b>nested KVM</b> enabled and 1 compute node as a VM.</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">Inside the compute node I have multiple VMs running.</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">After about every 3 days the VMs get inaccessible and the compute node reports high CPU usage. The qemu-kvm process for each VM inside the compute node reports full CPU usage.</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">Please help me with some hints to debug this issue.</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">Thanks,</font></div>
<div><font face="monospace">Laurentiu</font></div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
<div dir="ltr">
<div style="font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<div style="color:rgb(0,0,0)">
<div></div>
</div>
</div>
</div>
<font face="monospace">_______________________________________________<br>
CentOS-virt mailing list<br>
<a href="mailto:CentOS-virt@centos.org" target="_blank">CentOS-virt@centos.org</a><br>
<a href="https://lists.centos.org/mailman/listinfo/centos-virt" rel="noreferrer" target="_blank">https://lists.centos.org/mailman/listinfo/centos-virt</a></font><br>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</body>
</html>