Bug 1292624

Summary: (RHEL6) Poor performance of sequential/streaming I/O over SMB
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Michael Adam <madam>
Component: sambaAssignee: rhs-smb <rhs-smb>
Status: CLOSED ERRATA QA Contact: Ben Turner <bturner>
Severity: unspecified Docs Contact:
Priority: high    
Version: rhgs-3.1CC: asriram, asrivast, byarlaga, gdeschner, ira, madam, nlevinki, rcyriac, rhs-smb, sankarshan, sbhaloth, storage-qa-internal
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: samba-4.2.4-10.el6rhs Doc Type: Bug Fix
Doc Text:
With this release, asynchronous I/O from Samba to Red Hat Gluster Storage is supported. The 'aio read size' option is now set to 4096, which enables asynchronous I/0 for reads by default. This increases the throughput when the client is multithreaded or there are multiple programs accessing the same share.
Story Points: ---
Clone Of: 1284870 Environment:
Last Closed: 2016-03-01 06:13:31 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: 1284870    
Bug Blocks: 1260783    

Comment 6 Anjana Suparna Sriram 2016-02-05 10:14:08 UTC
Please review the doc text and sign off to be included in 3.1.2 errata.

Comment 7 Michael Adam 2016-02-05 11:15:37 UTC
The text looks good to me.
I'd like Ira to verify it as well.

Comment 8 Ira Cooper 2016-02-05 14:09:38 UTC
My suggestion:

With this release, asynchronous IO from Samba to Gluster is supported and the AIO read option is enabled by default in smb.conf. This increases the throughput when the client is multithreaded or there are multiple programs accessing the same share.

----

It doesn't really impact us in the multiple client case.

Comment 9 Ben Turner 2016-02-09 21:16:00 UTC
71% perf improvement on writes and 100% improvement on reads, verified.

Comment 10 Ben Turner 2016-02-09 21:17:48 UTC
Note that with Linux clients we SHOULD NOT be using AIO, there are issues with the cifs kernel module that need to be addressed before we recommend AIO with linux cifs.  AIO is recommended for Windows and is enabled by default.

Comment 13 Ira Cooper 2016-02-19 06:45:19 UTC
1. By default in Samba it is set to 0.

We've changed our smb.conf in RHGS to set it to 4096.

2. Same value, we don't know what the client type is.

If you have Linux clients using SMB2+ you need to disable AIO, at current.

-Ira

Comment 18 Michael Adam 2016-02-24 11:13:15 UTC
Looks good. Thanks.

Comment 20 errata-xmlrpc 2016-03-01 06:13:31 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://rhn.redhat.com/errata/RHBA-2016-0324.html