[Samba] Samba performance

Juan Pablo jhurcad at yahoo.com
Thu May 26 11:14:31 MDT 2011


Hi Jeremy,

Thanks for your reply!

The tests we did with the Windows 7 terminals was using smb2. 

When we enabled smb2 in samba we saw in samba logs that it was not being  used. 
We modified Windows 7 registry as described in 
http://www.techemperor.com/2009/09/21/manual-patch-for-windows-vistaserver-2008-smb2-flaw/
 to enable smb2 to start using smb2. Once this was done smb2 was  negotiated but 
there was no speed difference.

The OS read test is done iterating from 0 to 999 a dd if=testFile-xxx  
of=/dev/null bs=1k. The samba local access test is done with smbclient  from the 
same machine sending the output to /dev/null. Is the speed  decrease  (from 158 
MB/s to 71 MB/s) from what I get when I test from  the OS to what I get with 
samba normal? 


Juan Pablo



________________________________
From: Jeremy Allison <jra at samba.org>
To: Juan Pablo <jhurcad at yahoo.com>
Cc: samba at lists.samba.org
Sent: Thu, May 26, 2011 1:16:02 PM
Subject: Re: [Samba] Samba performance

On Wed, May 25, 2011 at 08:02:56PM -0700, Juan Pablo wrote:
> Hi everyone,
> 
> I'm trying to use samba in a small video post production house but we are not 
> getting the performance we expected.
> 
> Our setup:
> 
> - CenOS 5.6 x86-64
> - samba.x86_64 (3.0.33-3.29.el5_6.2 and 3.6.0rc1)
> - Intel based server (One 4 core Xeon E5620  @ 2.40GHz, 8 GB RAM)
> - 4 Intel Gigagit ethernet NIC ports with 802.3ad bonding connected to a switch 
>
> configured tu use 802.3ad
> - 8 2TB 7.2 krpm SATA disks with hardware RAID5 (RAID stripe size 1024 bytes, 
> controller and disk cache enabled, readahead enabled)
> - XFS filesystem (created with the following parameters: size=64k -d 
> su=1024k,sw=7)
> - Average file size in the share: 8 MByte
> - Gigabit network composed by Cat5E certified cabling and DLink DGS-3427 
>gigabit 
>
> switch.
> - Intel I7 based terminals with Intel gigabit NIC, running Windows 7
> 
> 
> Test results:
> 
> OS access: 
> 
> Sequential write (1 x 31 GByte file): 500 MByte/s
> Sequential read (1 x 31 GByte file): 780 MByte/s
> Write (1000 files 8 MByte each): 249 MByte/s average
> Read (1000 files 8 MByte each): 158 MByte/s average
> Simultaneous write (4 processes each writing 1000 files of 8 MByte each ): 188 

> MByte/s average
> Simultaneous read (4 processes each reading 1000 files of 8 MByte each): 118 
> MByte/s average
> 
> Samba local access (stock CentOS samba 3.0.33 connecting from the same server 
> with smbclient):
> 
> Sequential read (1 x 31 GByte file):  267 MByte/s
> Read (1000 files 8 MByte each): 71 MByte/s average
> Simultaneous read (4 processes each reading 1000 files of 8 MByte each): 102 
> MByte/s average
> 
> Samba local access (Samba 3.6.0rc1 compiled from GIT repo. Connecting from the 

> same server with smbclient):
> 
> Read (1000 files 8 MByte each): 95 MByte/s average
> Simultaneous read (4 processes each reading 1000 files of 8 MByte each): 103 
> MByte/s average
> 
> Samba server accessed from Windows 7 terminals (samba 3.6.0rc1):
> 
> Read (1 terminal copying from samba fileserver to local disk 1000 files 8 MByte 
>
> each): 60 MByte/s average
> Simultaneous read (4 terminals each copying from samba fileserver to local disk 
>
> 1000 files of 8 MByte each): 70 MByte/s average
> 
> Note: Simultaneos read speed is measured adding the size of all transfered 
>files 
>
> and dividing it by the time taken to transfer these files.
> 
> I will appreciate any feedback about the results we are getting and advice on 
> how to improve this.

If you're using 3.6.0 and Windows 7 clients try turning on SMB2 support
by setting "max protocol = smb2" in the [global] section of your smb.conf.

Jeremy.


More information about the samba mailing list