[Samba] Performance of samba in linux vs windows

Tim Harvey tharvey at alumni.calpoly.edu
Fri Oct 1 09:13:06 GMT 2004


> -----Original Message-----
> From: Holger Krull [mailto:holger.krull at gmx.de]
> Sent: Thursday, September 30, 2004 11:56 PM
> To: Tim Harvey
> Cc: samba at lists.samba.org
> Subject: Re: [Samba] Performance of samba in linux vs windows
> 
> 
> > For windows I'm low-tech: stopwatch plus drag-n-drop of a large file
> (any
> > recommendations on a 'simple' windows program that will tell you how
> long it
> > took to copy a file, or even calc the BW for you?)
> 
> timethis from the windows resource kit

Perfect... exactly what I was looking for.  Thanks!

> 
> 
> >   - why would I be getting half the performance via nfs vs smb?  Is
> there a
> > lot more overhead with smb vs nfs?
> 
> Give your smb.conf for comparison

I didn't include it because it didn't change across my comparisons, but here
it is:

--/etc/samba/smb.conf--
#Global parameters
[global]
        workgroup = MSHOME
        netbios name = NAS3
        security = SHARE
        server string = Samba Server
        log file = /var/log/samba/%m.log
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        encrypt passwords = yes

[data]
        comment = RAID5 Share
        browseable = yes
        path = /data
        force user = nobody
        force group = nobody
        read only = No
        guest ok = Yes
--

I haven't tried playing with the socket_options.  Tweaking those would
perhaps change my performance of the smb tests, however it still wouldn't
explain why smb over linux is much slower than smb over windows.

Tim



More information about the samba mailing list