[Bugs] [Bug 1369364] Huge memory usage of FUSE client

bugzilla at redhat.com bugzilla at redhat.com
Mon Aug 29 17:46:30 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1369364



--- Comment #11 from Yannick Perret <yannick.perret at liris.cnrs.fr> ---
Some memory data, tests performed on 3.8.1 gluster version (both servers and
client are 64b Debian 8 up-to-date with default kernel options; test volume is
a replica-2 volume without any tuning; mount is performed using "mount -t
glusterfs" without any option):
What I did:
1. mounting the volume, removing all its content, umounting it
2. mounting the volume
3. performing a cp -Rp /usr/* /root/MNT
4. performing a rm -rf /root/MNT/*
5. re-doing 3, 4

VSZ/RSS of gluster client process are respectively:
- 381896 / 35688 just after mount
- 644040 / 309240 after 1st cp -Rp
- 644040 / 310128 after 1st rm -rf
- 709576 / 310128 after 1st kill -USR1 (it was just for testing)
- 840648 / 421964 after 2nd cp -Rp
- 840648 / 422224 after 2nd rm -rf

I created a small script in order to perform these operations in loop:
while /bin/true
do
  cp -Rp /usr/* /root/MNT/
  + get VSZ/RSS of glusterfs process
  rm -rf /root/MNT/*
  + get VSZ/RSS of glusterfs process
done

It gives:
1037256 645500
1037256 645840
1168328 757348
1168328 757620
1299400 869128
1299400 869328
1364936 980712
1364936 980944
1496008 1092384
1496008 1092404
1627080 1203796
1627080 1203996
1692616 1315572
1692616 1315504
1823688 1426812
1823688 1427340
1954760 1538716
1954760 1538772
2085832 1647676
2085832 1647708
2151368 1750392
2151368 1750708
2282440 1853864
2282440 1853764
2413512 1952668
2413512 1952704
2479048 2056500
2479048 2056712

I let it turning and gluster client finished by being killed by OOM-killer:
[1246854.291996] Out of memory: Kill process 931 (glusterfs) score 742 or
sacrifice child
[1246854.292102] Killed process 931 (glusterfs) total-vm:3527624kB,
anon-rss:3100328kB, file-rss:0kB

So on this machine ~3.5Gb of VSZ.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list