[Samba] Extremely slow file serving

Gary Dale garydale at torfree.net
Tue Aug 21 03:33:36 GMT 2007


Try setting loglevel to something like 10 (restart Samba) and run your 
tests again. Perhaps you can find something in the logs to explain the 
problem.


Shane wrote:
> Hello,
>
> I have a Samba file server on a lan serving a number of
> clients.  I'm getting read speeds, that is client reading
> from samba server of 20-30kbps and write speeds of 4-5mbps. 
> Reading from the file server via ftp or NFS are up in the
> 5-8mb level.  For the sake of testing, I have the file
> server connected to a Linux client using a mounted file
> share.  Both nics negotiate at 100mbps full-duplex.  I did
> try switching to half-duplex with no effect.  I also tried
> changing the network switch, again no effect.
>
> >From samba client:
> # dd if=test.dat of=/dev/null bs=1k count=10k
> 1905+0 records in
> 1904+0 records out
> 1949696 bytes (1.9 MB) copied, 63.2419 seconds, 30.8 kB/s
>
> Cut the transfer with break which is why it's short.
>
> >From client via nfs
> $ dd if=test.dat of=/dev/null bs=1k
> 218776+1 records in
> 218776+1 records out
> 224026883 bytes (224 MB) copied, 19.3038 seconds, 11.6 MB/s
>
> And from client to samba server:
> # dd if=/dev/zero of=test2.dat bs=1k count=100k oflag=sync
> 102400+0 records in
> 102400+0 records out
> 104857600 bytes (105 MB) copied, 43.1757 seconds, 2.4 MB/s
>
> So write isn't great either but the file server is raid-5
> so that's probably more the cause.  During reads from the
> samba server, the load never exceeds 0.2 and there are no
> colisions or errors in ifconfig output.
>
> Any help with this greatly appreciated.
>
> System info:
> Linux 2.6.23-rc3
> Intel quad core q6600 1gb ram
> disks 6x sata 320gb in raid5 all ncq enabled
>
> smb.conf, nearly stock
> # Samba config file created using SWAT
> # from 127.0.0.1 (127.0.0.1)
> # Date: 2007/08/20 16:36:47
>
> [global]
> 	workgroup = CM
> 	interfaces = eth0
> 	preferred master = Yes
> 	ldap ssl = no
>
> [world]
> 	path = /data/world
> 	force group = world
> 	read only = No
> 	create mask = 0770
> 	directory mask = 0770
>
>   



More information about the samba mailing list