[Bugs] [Bug 1663519] Memory leak when smb.conf has "store dos attributes = yes"

bugzilla at redhat.com bugzilla at redhat.com
Tue Apr 16 06:41:24 UTC 2019


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

Anoop C S <anoopcs at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |needinfo?(ryan at magenta.tv)



--- Comment #4 from Anoop C S <anoopcs at redhat.com> ---
(In reply to ryan from comment #0)
> Created attachment 1518442 [details]
> Python 3 script to replicate issue
> 
> ---------------------------------------------------------------------------
> Description of problem:
> If glusterfs VFS is used with Samba, and the global option "store dos
> attributes = yes" is set, the SMBD rss memory usage balloons.
> 
> If a FUSE mount is used with Samba, and the global option "store dos
> attributes = yes" is set, the Gluster FUSE mount process rss memory usage
> balloons.

How did you manage to find out its because of "store dos attributes" parameter
that RSS memory is shooting up to GBs?

Following is the GlusterFS volume configuration on which I tried running the
attached script to reproduce the issue which I couldn't as RSS value went till
~110 MB only.

Volume Name: vol
Type: Distributed-Replicate
Status: Started
Snapshot Count: 0
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Options Reconfigured:
performance.readdir-ahead: on
performance.parallel-readdir: on
performance.nl-cache-timeout: 600
performance.nl-cache: on
performance.cache-samba-metadata: on
network.inode-lru-limit: 200000
performance.md-cache-timeout: 600
performance.cache-invalidation: on
features.cache-invalidation-timeout: 600
features.cache-invalidation: on
user.smb: enable
diagnostics.brick-log-level: INFO
performance.stat-prefetch: on
transport.address-family: inet
nfs.disable: on
user.cifs: enable
cluster.enable-shared-storage: disable

smb.conf global parameters
--------------------------
# Global parameters
[global]
        clustering = Yes
        dns proxy = No
        kernel change notify = No
        log file = /usr/local/var/log/samba/log.%m
        security = USER
        server string = Samba Server
        fruit:aapl = yes
        idmap config * : backend = tdb
        include = /usr/local/etc/samba/smb-ext.conf
        kernel share modes = No
        posix locking = No

Versions used
-------------
Fairly recent mainline source for Samba and GlusterFS

I could see couple of more volume set options from bug description which leaves
us with more configurations to be tried on unless we are sure about "store dos
attribute" parameter causing the high memory consumption.

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