Bug 1428368

Summary: Smb.conf options for performance improvements [RHEL7]
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Poornima G <pgurusid>
Component: sambaAssignee: Michael Adam <madam>
Status: CLOSED ERRATA QA Contact: surabhi <sbhaloth>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.3CC: amukherj, anoopcs, bmohanra, gdeschner, pgurusid, rcyriac, rhinduja, rhs-smb, ssaha
Target Milestone: ---   
Target Release: RHGS 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: samba-4.6.0-0 Doc Type: Bug Fix
Doc Text:
In the samba configuration, by default, the 'posix locking' is enabled and 'stat cache' is disabled. Enabling 'posix locking' sends the file lock request to the bricks too, and disabling 'stat cache' blocks samba to cache certain information at the samba layer. This led to decrease in performance of SMB access of Red Hat Gluster Storage volumes As a fix, the following two options are included in the samba configuration file: posix locking = No stat cache = Yes Due to this, a slight improvement in the performance is observed.
Story Points: ---
Clone Of:
: 1436265 (view as bug list) Environment:
Last Closed: 2017-09-21 04:47:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1417147, 1436265    

Description Poornima G 2017-03-02 12:22:15 UTC
Description of problem:
There are certain smb.conf options like:
stat cache = yes
posix locking = no

and others that needs to be set by default so that the performance is better.

The testing effort would be regression, as these options are already present in upstream for quite long.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Michael Adam 2017-03-07 15:45:46 UTC
more complete set of options:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stat cache = yes
posix locking = no
kernel share modes = no
kernel oplocks = no
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Note: The last three have been communicated a few times in the past.
The 'stat cache' option is the newer proposal to be evaluated specifically.

Comment 4 surabhi 2017-04-19 14:01:31 UTC
In the latest samba packages following smb.conf options are updated:

Press enter to see a dump of your service definitions

        posix locking = No


Press enter to see a dump of your service definitions

        kernel change notify = No
        kernel oplocks = No
        kernel share modes = No


Press enter to see a dump of your service definitions

        stat cache = Yes

Samba build version :
samba-4.6.2-0.el7rhgs.x86_64

Marking the BZ verified.

Comment 6 Poornima G 2017-09-07 09:21:41 UTC
Doc text looks fine

Comment 8 errata-xmlrpc 2017-09-21 04:47:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2780