Bug 1428368 - Smb.conf options for performance improvements [RHEL7]
Summary: Smb.conf options for performance improvements [RHEL7]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: samba
Version: rhgs-3.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHGS 3.3.0
Assignee: Michael Adam
QA Contact: surabhi
URL:
Whiteboard:
Depends On:
Blocks: 1417147 1436265
TreeView+ depends on / blocked
 
Reported: 2017-03-02 12:22 UTC by Poornima G
Modified: 2017-09-21 04:47 UTC (History)
9 users (show)

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.
Clone Of:
: 1436265 (view as bug list)
Environment:
Last Closed: 2017-09-21 04:47:10 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2780 0 normal SHIPPED_LIVE Red Hat Gluster Storage 3.3.0 samba bug fixes and enhancement update 2017-09-21 08:17:05 UTC

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


Note You need to log in before you can comment on or make changes to this bug.