[Bugs] [Bug 1319045] New: memory increase of glusterfsd

bugzilla at redhat.com bugzilla at redhat.com
Fri Mar 18 14:26:15 UTC 2016


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

            Bug ID: 1319045
           Summary: memory increase of glusterfsd
           Product: GlusterFS
           Version: 3.6.9
         Component: posix
          Assignee: bugs at gluster.org
          Reporter: vpolakis at gmail.com
                CC: bugs at gluster.org



Description of problem:
memory increase of glusterfsd

Version-Release number of selected component (if applicable):
glusterfs 3.6.9 built on Mar 15 2016 14:28:33

How reproducible:
create file via 
# dd if=/dev/zero of=/mnt/export/1gfile bs=1M count=1024

Steps to Reproduce:
initial RSS 22092
# pidstat -urd -h -p 337 2 | grep glusterfsd
 1458306821     0       337    0.50    0.00    0.00    0.50     1      0.00    
 0.00  608012  22092   0.55      0.00      0.00      0.00       0  glusterfsd

statedump collected (attached as statedump_1_.txt)

execute 
# dd if=/dev/zero of=/mnt/export/1gfile bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 4.55291 s, 236 MB/s

RSS usage increases to 23400
# pidstat -urd -h -p 337 2 | grep glusterfsd
 1458307852     0       337    0.00    0.00    0.00    0.00     0      0.00    
 0.00  673548  22092   0.55      0.00      0.00      0.00       0  glusterfsd
 1458307854     0       337    0.00    0.00    0.00    0.00     0      0.00    
 0.00  673548  22092   0.55      0.00      2.00      0.00       0  glusterfsd
 1458307856     0       337    0.50    0.00    0.00    0.50     0      0.00    
 0.00  673548  22092   0.55      0.00      0.00      0.00       0  glusterfsd
 1458307858     0       337    0.00    0.50    0.00    0.50     1      0.00    
 0.00  673548  22092   0.55      0.00      0.00      0.00       0  glusterfsd
 1458307860     0       337    0.00    0.00    0.00    0.00     1      0.00    
 0.00  673548  22092   0.55      0.00      0.00      0.00       0  glusterfsd
 1458307862     0       337    0.00    0.00    0.00    0.00     0      0.00    
 0.00  673548  22092   0.55      0.00      0.00      0.00       0  glusterfsd
 1458307864     0       337   38.50   28.50    0.00   67.00     1    127.50    
 0.00  873240  23140   0.57      0.00 203328.00      0.00       0  glusterfsd
 1458307866     0       337   74.00   31.00    0.00  105.00     0     42.00    
 0.00 1072932  23400   0.58      0.00 221440.00      0.00       0  glusterfsd
 1458307868     0       337   14.50   15.00    0.00   29.50     0      1.50    
 0.00 1072932  23400   0.58      0.00  99520.00      0.00       0  glusterfsd
 1458307870     0       337    0.00    0.00    0.00    0.00     0      0.00    
 0.00 1072932  23400   0.58      0.00      0.00      0.00       0  glusterfsd
 1458307872     0       337    0.50    0.00    0.00    0.50     0      0.00    
 0.00 1072932  23400   0.58      0.00      0.00      0.00       0  glusterfsd
 1458307874     0       337    0.00    0.50    0.00    0.50     1      1.00    
 0.00 1072932  23400   0.58      0.00      0.00      0.00       0  glusterfsd
 1458307876     0       337    0.00    0.00    0.00    0.00     1      0.00    
 0.00 1072932  23400   0.58      0.00      0.00      0.00       0  glusterfsd
 1458307878     0       337    0.50    0.00    0.00    0.50     1      0.00    
 0.00 1072932  23400   0.58      0.00      0.00      0.00       0  glusterfsd
 1458307880     0       337    0.00    0.00    0.00    0.00     1      0.00    
 0.00 1072932  23400   0.58      0.00      0.00      0.00       0  glusterfsd
 1458307882     0       337    0.00    0.00    0.00    0.00     1      0.00    
 0.00 1072932  23400   0.58      0.00      0.00      0.00       0  glusterfsd
 1458307884     0       337    0.50    0.50    0.00    1.00     1      0.00    
 0.00 1072932  23400   0.58      0.00      2.00      0.00       0  glusterfsd
 1458307886     0       337    0.00    0.00    0.00    0.00     1      0.00    
 0.00 1072932  23400   0.58      0.00      0.00      0.00       0  glusterfsd
 1458307888     0       337    0.00    0.00    0.00    0.00     1      0.00    
 0.00 1072932  23400   0.58      0.00      0.00      0.00       0  glusterfsd
 1458307890     0       337    0.50    0.00    0.00    0.50     1      0.00    
 0.00 1072932  23400   0.58      0.00      0.00      0.00       0  glusterfsd
 1458307892     0       337    0.00    0.00    0.00    0.00     1      0.00    
 0.00 1072932  23400   0.58      0.00      0.00      0.00       0  glusterfsd
 1458307894     0       337    0.00    0.50    0.00    0.50     1      0.00    
 0.00 1072932  23400   0.58      0.00      0.00      0.00       0  glusterfsd

statedump collected (attached as statedump_2_.txt)

then file is deleted but RSS stays the same.
1458308180     0       337    0.50    0.50    0.00    1.00     1      0.00     
0.00 1072932  23400   0.58      0.00      0.00      0.00       0  glusterfsd

attached also statedump_3_.txt after the deletion of the file.

Question:
is this normal? I mean is the glusterfsd memory usage expected to raise when
file system grows too?
should the memory free immediately after deletion or after some time? 
Does this depend on any configuration from the volumes ?

I tried also 
echo 3 > /proc/sys/vm/drop_caches
after the file deletion but with no effect on the RSS usage. 

by the way I tried to re-create the file and memory usage stayed in 23400 but
after I created another 1G file RSS increased to 23652.
mostly my query is related as to which is the expected behavior (gluster
design) in case of memory usage of glusterfsd while files are created/deleted.

-- 
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