[Samba] performance on small files transfers

kxsq tony at pogolinux.com.cn
Mon May 30 11:12:51 GMT 2005


Hi John,
  Thanks for your suggestion. I modified my smb.conf accroding 
to those pdf docs, but the samba speed is still poor.

  I try to build a proftpd server from source code and transfer these 
small files through ftp and the speed hit 2.5Mbyte/s. But when 
I copy large files through smbfs,the speed is normal.So I wonder 
if it's all rely on the configuration of samba.Is there any
specific principles on performance tuning about small files transfers?

Any suggestion would be appreciated.

On Fri, May 27, 2005 at 11:56:42AM -0600, John H Terpstra wrote:
> On Friday 27 May 2005 11:41, kxsq wrote:
> > Hi all,
> >   I'm confused of small files (no bigger than 50k )
> > transfers speed through samba,which is very slow on
> > my machine. Bellow is a real case,
> >
> > -- SuSE professional 9.2, kernel 2.6.11,Samba 3.0.14a,reiserfs
> > -- Dual AMD Opteron,4G mem,Giga byte LAN
> > -- 2 raid 5 make up of 16 SATA hard disks
> > -- set readhead to 1024
> >
> > I tested raids speed using bonnie++ and get 450 Mbytes/s
> > at 16GB files measure.So I believe the raid is not the
> > bottleneck.I wrote a script to get 200,000 small files no
> > more than 50K,totally size 8G.When I wrote these small
> > files to SAMBA server and get a speed about 1.5 Mbyte/s.
> > And the speed hit 8 Mbytes/s when these small files
> > copied from one raid to another locally.
> >
> > There must be misconfigured somewhere,but I don't where.
> > Can anybody give me some tips?
> 
> Please refer to chapter 32 of the book, "The Official Samba-3 HOWTO and 
> Reference Guide" (aka. Samba-HOWTO-Collection). You can obtain a PDF of this 
> book from:
> 
> http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
> 
> 
> - John T.
> -- 
> John H Terpstra
> Samba-Team Member
> Phone: +1 (650) 580-8668
> 
> Author:
> The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
> Samba-3 by Example, ISBN: 0131472216
> Hardening Linux, ISBN: 0072254971
> Other books in production.
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba
> 

-- 
Kxsq Yang (tony)
Pogo Linux (Shanghai)



More information about the samba mailing list