[Gluster-devel] High memory cost of glusterfsd when enable quota
Kinglong Mee
kinglongmee at gmail.com
Wed Jun 28 12:53:03 UTC 2017
I use glusterfs quota on Centos7 with glusterfs-3.10.2-1.el7.x86_64, system memory is 2GB.
My test environment is two glustefs nodes, with one 10GB disk (ext4) each.
When enable quota with many files in the glusterfs, the glusterfsd in one node
costs high memory towards 40%+ of 2GB, or both nodes costs high memory sometimes.
Node one,
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30017 root 20 0 1487412 115528 4648 S 0.0 6.2 3:11.81 glusterfsd
The other node,
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
102510 root 20 0 1439044 700264 4668 S 0.0 37.5 2:31.37 glusterfsd
The reproduce is,
# gluster volume start fsname
# mount -t glusterfs nodename:fsname /mnt/test/
# cp -rf linux-source /mnt/test/ <---- it's important adds many files before enable quota.
# gluster volume quota fsname enable
Sometime, needs disable quota and re-enable again, the high memory cost will appear.
But, I can't find the high memory cost when debugging by valgrind,
the memory cost will increase slowly to 10%.
Any comments are welcome.
thanks,
Kinglong Mee
More information about the Gluster-devel
mailing list