<div dir="ltr">Hi Nir -<div><br></div><div>do you have a release target date for 3.5.8? Any estimate would help.</div><div><br></div><div>If its not VDSM, what is it exactly? Sorry, I understood from the ticket it was something inside vdsm, was I mistaken?</div><div><br></div><div>CentOS 6 is the servers. 6.7 to be exact</div><div><br></div><div>I have done all forms of flushing that I can (page cache, inodes, dentry's, etc) and as well moved VM's around to other nodes and nothing changes the memory. How can I find the leak? Where is the leak? RES shows the following of which, the totals dont add up to 20GB</div><div><br></div><div><div> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND </div><div> 19044 qemu 20 0 8876m 4.0g 5680 S 3.6 12.9 1571:44 qemu-kvm </div><div> 26143 qemu 20 0 5094m 1.1g 5624 S 9.2 3.7 6012:12 qemu-kvm </div><div> 5837 root 0 -20 964m 624m 3664 S 0.0 2.0 85:22.09 glusterfs </div><div> 14328 root 0 -20 635m 169m 3384 S 0.0 0.5 43:15.23 glusterfs </div><div> 5134 vdsm 0 -20 4368m 111m 10m S 5.9 0.3 3710:50 vdsm </div><div> 4095 root 15 -5 727m 43m 10m S 0.0 0.1 0:02.00 supervdsmServer </div></div><div><br></div><div>4.0G + 1.1G + 624M + 169 + 111M + 43M = ~7GB</div><div><br></div><div>This was top sorted by RES from highest to lowest</div><div><br></div><div>At that point I wouldnt know where else to look except slab / kernel structures. Of which slab shows:</div><div><br></div><div><div>[compute[root@node1 ~]$ cat /proc/meminfo | grep -i slab</div><div>Slab: 2549748 kB</div></div><div><br></div><div>So roughly 2-3GB. Adding that to the other use of 7GB we have still about 10GB unaccounted for</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 22, 2016 at 4:24 PM, Nir Soffer <span dir="ltr"><<a href="mailto:nsoffer@redhat.com" target="_blank">nsoffer@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Jan 22, 2016 at 11:08 PM, Charles Kozler <<a href="mailto:charles@fixflyer.com">charles@fixflyer.com</a>> wrote:<br>
> Hi Nir -<br>
><br>
> Thanks for getting back to me. Will the patch to 3.6 be backported to 3.5?<br>
<br>
</span>We plan to include them in 3.5.8.<br>
<span class=""><br>
> As you can tell from the images, it takes days and days for it to increase<br>
> over time. I also wasnt sure if that was the right bug because VDSM memory<br>
> shows normal from top ...<br>
><br>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND<br>
> 5134 vdsm 0 -20 4368m 111m 10m S 2.0 0.3 3709:28 vdsm<br>
<br>
</span>As you wrote, this issue is not related to vdsm.<br>
<span class=""><br>
><br>
> Res is only 111M. This is from node1 which is showing currently 20GB of 32GB<br>
> used with only 2 VMs running on it - 1 with 4G and another with ~1 GB of RAM<br>
> configured<br>
><br>
> The images are from nagios and the value here is a direct correlation to<br>
> what you would see in the free command output. See below from an example of<br>
> node 1 and node 2<br>
><br>
> [compute[root@node1 ~]$ free<br>
> total used free shared buffers cached<br>
> Mem: 32765316 20318156 12447160 252 30884 628948<br>
> -/+ buffers/cache: 19658324 <a href="tel:13106992" value="+13106992">13106992</a><br>
> Swap: 19247100 0 19247100<br>
> [compute[root@node1 ~]$ free -m<br>
> total used free shared buffers cached<br>
> Mem: 31997 19843 12153 0 30 614<br>
> -/+ buffers/cache: 19199 12798<br>
> Swap: 18795 0 18795<br>
><br>
> And its correlated image <a href="http://i.imgur.com/PZLEgyx.png" rel="noreferrer" target="_blank">http://i.imgur.com/PZLEgyx.png</a> (~19GB used)<br>
><br>
> And as a control, node 2 that I just restarted today<br>
><br>
> [compute[root@node2 ~]$ free<br>
> total used free shared buffers cached<br>
> Mem: 32765316 1815324 30949992 212 35784 717320<br>
> -/+ buffers/cache: 1062220 31703096<br>
> Swap: 19247100 0 19247100<br>
<br>
</span>Is this rhel/centos 6?<br>
<span class=""><br>
> [compute[root@node2 ~]$ free -m<br>
> total used free shared buffers cached<br>
> Mem: 31997 1772 30225 0 34 700<br>
> -/+ buffers/cache: 1036 30960<br>
> Swap: 18795 0 18795<br>
><br>
> And its correlated image <a href="http://i.imgur.com/8ldPVqY.png" rel="noreferrer" target="_blank">http://i.imgur.com/8ldPVqY.png</a> (~2GB used). Note<br>
> how 1772 in the image is exactly what is registered under 'used' in free<br>
> command<br>
<br>
</span>I guess you should start looking at the processes running on these nodes.<br>
<br>
Maybe try to collect memory usage per process using ps?<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> On Fri, Jan 22, 2016 at 3:59 PM, Nir Soffer <<a href="mailto:nsoffer@redhat.com">nsoffer@redhat.com</a>> wrote:<br>
>><br>
>> On Fri, Jan 22, 2016 at 9:25 PM, Charles Kozler <<a href="mailto:charles@fixflyer.com">charles@fixflyer.com</a>><br>
>> wrote:<br>
>> > Here is a screenshot of my three nodes and their increased memory usage<br>
>> > over<br>
>> > 30 days. Note that node #2 had 1 single VM that had 4GB of RAM assigned<br>
>> > to<br>
>> > it. I had since shut it down and saw no memory reclamation occur.<br>
>> > Further, I<br>
>> > flushed page caches and inodes and ran 'sync'. I tried everything but<br>
>> > nothing brought the memory usage down. vdsm was low too (couple hundred<br>
>> > MB)<br>
>><br>
>> Note that there is an old leak in vdsm, will be fixed in next 3.6 build:<br>
>> <a href="https://bugzilla.redhat.com/1269424" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/1269424</a><br>
>><br>
>> > and there was no qemu-kvm process running so I'm at a loss<br>
>> ><br>
>> > <a href="http://imgur.com/a/aFPcK" rel="noreferrer" target="_blank">http://imgur.com/a/aFPcK</a><br>
>> ><br>
>> > Please advise on what I can do to debug this. Note I have restarted node<br>
>> > 2<br>
>> > (which is why you see the drop) to see if it raises in memory use over<br>
>> > tim<br>
>> > even with no VM's running<br>
>><br>
>> Not sure what is "memory" that you show in the graphs. Theoretically this<br>
>> may be<br>
>> normal memory usage, Linux using free memory for the buffer cache.<br>
>><br>
>> Can you instead show the output of "free", during one day, maybe run once<br>
>> per hour?<br>
>><br>
>> You may also like to install sysstat for collecting and monitoring<br>
>> resources usage.<br>
>><br>
>> ><br>
>> > [compute[root@node2 log]$ rpm -qa | grep -i ovirt<br>
>> > libgovirt-0.3.2-1.el6.x86_64<br>
>> > ovirt-release35-006-1.noarch<br>
>> > ovirt-hosted-engine-ha-1.2.8-1.el6.noarch<br>
>> > ovirt-hosted-engine-setup-1.2.6.1-1.el6.noarch<br>
>> > ovirt-engine-sdk-python-3.5.6.0-1.el6.noarch<br>
>> > ovirt-host-deploy-1.3.2-1.el6.noarch<br>
>> ><br>
>> ><br>
>> > --<br>
>> ><br>
>> > Charles Kozler<br>
>> > Vice President, IT Operations<br>
>> ><br>
>> > FIX Flyer, LLC<br>
>> > 225 Broadway | Suite 1600 | New York, NY 10007<br>
>> > 1-888-349-3593<br>
>> > <a href="http://www.fixflyer.com" rel="noreferrer" target="_blank">http://www.fixflyer.com</a><br>
>> ><br>
>> > NOTICE TO RECIPIENT: THIS E-MAIL IS MEANT ONLY FOR THE INTENDED<br>
>> > RECIPIENT(S)<br>
>> > OF THE TRANSMISSION, AND CONTAINS CONFIDENTIAL INFORMATION WHICH IS<br>
>> > PROPRIETARY TO FIX FLYER LLC. ANY UNAUTHORIZED USE, COPYING,<br>
>> > DISTRIBUTION,<br>
>> > OR DISSEMINATION IS STRICTLY PROHIBITED. ALL RIGHTS TO THIS INFORMATION<br>
>> > IS<br>
>> > RESERVED BY FIX FLYER LLC. IF YOU ARE NOT THE INTENDED RECIPIENT,<br>
>> > PLEASE<br>
>> > CONTACT THE SENDER BY REPLY E-MAIL AND PLEASE DELETE THIS E-MAIL FROM<br>
>> > YOUR<br>
>> > SYSTEM AND DESTROY ANY COPIES.<br>
>> ><br>
>> > _______________________________________________<br>
>> > Users mailing list<br>
>> > <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
>> > <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
>> ><br>
><br>
><br>
><br>
><br>
> --<br>
><br>
> Charles Kozler<br>
> Vice President, IT Operations<br>
><br>
> FIX Flyer, LLC<br>
> 225 Broadway | Suite 1600 | New York, NY 10007<br>
> <a href="tel:1-888-349-3593" value="+18883493593">1-888-349-3593</a><br>
> <a href="http://www.fixflyer.com" rel="noreferrer" target="_blank">http://www.fixflyer.com</a><br>
><br>
> NOTICE TO RECIPIENT: THIS E-MAIL IS MEANT ONLY FOR THE INTENDED RECIPIENT(S)<br>
> OF THE TRANSMISSION, AND CONTAINS CONFIDENTIAL INFORMATION WHICH IS<br>
> PROPRIETARY TO FIX FLYER LLC. ANY UNAUTHORIZED USE, COPYING, DISTRIBUTION,<br>
> OR DISSEMINATION IS STRICTLY PROHIBITED. ALL RIGHTS TO THIS INFORMATION IS<br>
> RESERVED BY FIX FLYER LLC. IF YOU ARE NOT THE INTENDED RECIPIENT, PLEASE<br>
> CONTACT THE SENDER BY REPLY E-MAIL AND PLEASE DELETE THIS E-MAIL FROM YOUR<br>
> SYSTEM AND DESTROY ANY COPIES.<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"><div style="color:rgb(0,0,0);font-family:'Times New Roman'"><strong><span style="font-family:'times new roman',times,serif"><font size="2">Charles Kozler</font></span></strong></div><div style="color:rgb(0,0,0);font-family:'Times New Roman'"><em><span style="font-family:'times new roman',times,serif"><font size="2">Vice President, IT Operations</font></span></em></div><div style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"> </div><div style="color:rgb(0,0,0);font-family:'Times New Roman'"><span style="font-family:'times new roman',times,serif"><font size="2">FIX Flyer, LLC</font></span></div><div style="color:rgb(0,0,0);font-family:'Times New Roman'"><span style="font-family:'times new roman',times,serif"><font size="2">225 Broadway | Suite 1600 | New York, NY 10007</font></span></div><div style="color:rgb(0,0,0);font-family:'Times New Roman'"><span style="font-family:'times new roman',times,serif"><font size="2">1-888-349-3593</font></span></div><div style="color:rgb(0,0,0);font-family:'Times New Roman'"><a href="http://fixflyer.com" target="_blank"><span style="font-family:'times new roman',times,serif"><font size="2">http://www.fixflyer.com</font></span></a></div><div style="color:rgb(0,0,0);font-family:'Times New Roman'"><font size="2"> </font></div><div style="color:rgb(0,0,0);font-family:'Times New Roman'"><font size="1">NOTICE TO RECIPIENT: THIS E-MAIL IS MEANT ONLY FOR THE INTENDED RECIPIENT(S) OF THE TRANSMISSION, AND CONTAINS CONFIDENTIAL INFORMATION WHICH IS PROPRIETARY TO FIX FLYER LLC. ANY UNAUTHORIZED USE, COPYING, DISTRIBUTION, OR DISSEMINATION IS STRICTLY PROHIBITED. ALL RIGHTS TO THIS INFORMATION IS RESERVED BY FIX FLYER LLC. IF YOU ARE NOT THE INTENDED RECIPIENT, PLEASE CONTACT THE SENDER BY REPLY E-MAIL AND PLEASE DELETE THIS E-MAIL FROM YOUR SYSTEM AND DESTROY ANY COPIES.</font></div></div></div></div></div></div></div></div>
</div>