<div dir="ltr"><div><div><div>Hi kinglong,<br><br>I will do this test and get back to u tomorrow.<br></div></div>Regards,<br></div>Sanoj<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 28, 2017 at 6:23 PM, Kinglong Mee <span dir="ltr"><<a href="mailto:kinglongmee@gmail.com" target="_blank">kinglongmee@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I use glusterfs quota on Centos7 with glusterfs-3.10.2-1.el7.x86_64, system memory is 2GB.<br>
My test environment is two glustefs nodes, with one 10GB disk (ext4) each.<br>
<br>
When enable quota with many files in the glusterfs, the glusterfsd in one node<br>
costs high memory towards 40%+ of 2GB, or both nodes costs high memory sometimes.<br>
<br>
Node one,<br>
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND<br>
30017 root 20 0 1487412 115528 4648 S 0.0 6.2 3:11.81 glusterfsd<br>
<br>
The other node,<br>
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND<br>
102510 root 20 0 1439044 700264 4668 S 0.0 37.5 2:31.37 glusterfsd<br>
<br>
The reproduce is,<br>
# gluster volume start fsname<br>
# mount -t glusterfs nodename:fsname /mnt/test/<br>
# cp -rf linux-source /mnt/test/ <---- it's important adds many files before enable quota.<br>
# gluster volume quota fsname enable<br>
<br>
Sometime, needs disable quota and re-enable again, the high memory cost will appear.<br>
<br>
But, I can't find the high memory cost when debugging by valgrind,<br>
the memory cost will increase slowly to 10%.<br>
<br>
Any comments are welcome.<br>
<br>
thanks,<br>
Kinglong Mee<br>
<br>
<br>
______________________________<wbr>_________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-devel</a><br>
</blockquote></div><br></div>