<div dir="ltr">+Gaurav<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 26, 2018 at 2:02 PM, Raghavendra Gowdappa <span dir="ltr"><<a href="mailto:rgowdapp@redhat.com" target="_blank">rgowdapp@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">+glusterd devs<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 26, 2018 at 1:41 PM, Storage, Dev (Nokia - Global) <span dir="ltr"><<a href="mailto:dev.storage@nokia.com" target="_blank">dev.storage@nokia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="#0563C1" vlink="#954F72" lang="ZH-CN">
<div class="m_6585033272108786365m_-3400543437059354645WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi glusterfs experts,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> Good day!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> During our recent test we found that after execute some glusterfs command, there are obvious memory leak found for glusterd process, when we compare statedump of glusterd process before and after command executions.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<p class="m_6585033272108786365m_-3400543437059354645MsoListParagraph" style="margin-left:33.6pt">
<u></u><span lang="EN-US"><span>1><span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-US">Each time of command “gluster volume list” command there are some memory lost from section [mgmt/glusterd.management - usage-type gf_common_mt_char memusage] in glusterd statedump, after investigation, we found
that <u></u><u></u></span></p>
<p class="m_6585033272108786365m_-3400543437059354645MsoListParagraph" style="margin-left:33.6pt;text-indent:0cm"><span lang="EN-US">For __glusterd_handle_cli_list_vol<wbr>ume , after glusterd_submit_reply, should free rsp.dict.dict_val.</span></p></div></div></blockquote></div></div></blockquote><div> This needs to be looked at.<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="#0563C1" vlink="#954F72" lang="ZH-CN"><div class="m_6585033272108786365m_-3400543437059354645WordSection1"><p class="m_6585033272108786365m_-3400543437059354645MsoListParagraph" style="margin-left:33.6pt;text-indent:0cm"><span lang="EN-US"><u></u><u></u></span></p>
<p class="m_6585033272108786365m_-3400543437059354645MsoListParagraph" style="margin-left:33.6pt">
<u></u><span lang="EN-US"><span>2><span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-US">Each time of command “gluster volume status <volume name>” command there are some memory lost from section mgmt/glusterd.management - usage-type gf_common_mt_strdup memusage in glusterd statedump, after investigation,
we found that<u></u><u></u></span></p>
<p class="m_6585033272108786365m_-3400543437059354645MsoListParagraph" style="margin-left:33.6pt;text-indent:0cm"><span lang="EN-US">For glusterd_mgmt_v3_unlock, before gf_timer_call_cancel, should free pointer “data” in mgmt_lock_timer->timer.</span></p></div></div></blockquote></div></div></blockquote><div><br></div><div>Gaurav is working on a patch where this has been already identified. So the analysis on point 2 seems to be correct.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="#0563C1" vlink="#954F72" lang="ZH-CN"><div class="m_6585033272108786365m_-3400543437059354645WordSection1"><p class="m_6585033272108786365m_-3400543437059354645MsoListParagraph" style="margin-left:33.6pt;text-indent:0cm"><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:21.0pt"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-indent:21.0pt"><span lang="EN-US">Could you help to comment on the above two findings? Thanks!<u></u><u></u></span></p>
</div>
</div>
</blockquote></div><br></div>
</blockquote></div><br></div></div></div>