[Samba] once again: horrible speed!

Joel Hammer Joel at HammersHome.com
Fri Jul 19 04:11:02 GMT 2002


Knowing nothing about this, I would ask:
1. What is the association between size of file and tranfer time? Linear,
step function, curivlinear, etc? It might be informative to transfer
different file sizes and plot the transfer times against the file
size. This might suggest resource depletion (memory, cpu cycles) if it were a step
function, for example.

2. Are all file types affected?

3. You are sure the w2k client is not wasting time on the upload, perhaps
doing some extra security checking? A tcpdump on the server during a
w2k upload might be interesting. Compare it to a dump while transferring
files from the win_me client. sort, uniq, and diff might help to sniff
through the tcpdump files.  Just a difference in the size of the files
would be interesting. For example, is there a lot more traffic when w2k
is uploading then when win_me is uploading or when samba is downloading
to w2k?

4. Do you have all the latest patches for w2k?

I would run top during the transfer to see what is happening to your
server's resources during transfer.  You can run top with options for update
intervals and can save the output to a file.

Joel 

2. On Fri, Jul 19, 2002 at 12:34:59PM +0200, NSC - NetworkServiceCenter wrote:
> hello,
> 
> sorry, but the problem stays! if i want to copy a file with 4 mb from a
> w2k-ws to my samba pdc it takes near 25 seconds. if i copy the file from the
> server to the ws it takes only 2 seconds!
> another test was to mount a win_me-share with smbmount on the server: the
> copy also takes 2 second (in both directions).
> via ftp i can copy the file from the client to the server in 0,59 seconds
> (!!!) - so, the network isn't the problem!
> 
> i configured samba 225 with the following options:
> 
> ./configure --with-pam --with-pam_smbpass --with-ldapsam --with-ssl
> --with-smbmount --with-quotas --with-acl-support
> 
> my smb conf looks like following:
> 
> #======================= Global Settings
> =====================================
> [global]
> 
> #### Grundeinstellungen
>     workgroup = WORKGROUP
>     netbios name = SRV
>     server string = PDC LDAP Server
>     os level = 255
>     character set = iso8859-1
>     security = user
>     encrypt passwords = yes
>     socket options = IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
> TCP_NODELAY
>     preferred master = yes
>     domain master = yes
>     local master =yes
>     wins support =yes
>     domain logons = yes
>     dns proxy = no
>     debug level = 100
>     load printers = no
>     log file = /usr/local/samba/var/log.%m
>     max log size = 50
> 
> #### Eintraege fuer die Zuweisung zur AdminGruppe
>     domain admin group = @root @domadm
> 
> #### Eintraege fuer die Benutzung von LDAP
>     ldap server = 127.0.0.1
>     ldap port = 389
>     ldap suffix = dc=testdit,dc=at
>     ldap admin dn = uid=root,dc=testdit,dc=at
>     ldap filter = (&(objectClass=sambaAccount)(uid=%u))
>     ldap ssl = no
> 
> #### Passwortabgleich mit Unix
>     unix password sync = yes
>     log level = 101
>     passwd chat debug = yes
>     passwd chat = "New*password:* %n\n \nRe*enter*new*password:* %n\n
> \nResult:*Success*(0)\n* %n\n "
>     passwd program = /usr/local/bin/ldappwdsmb %u
> 
> #### Logon Einstellungen
>     logon drive = H:
>     logon home = \\10.61.1.1\homes
>     logon script = %G.cmd
> 
> #### Automatisches erstellen des WS-Account beim DomainInclude
>     add user script = /var/configfiles/CreateLDAPws %u
> 
> #============================ Share Definitions==========================
> [homes]
>     comment = Heimverzeichnis
>     path = /home/%U
>     writeable = yes
>     guest ok = no
>     guest only = no
>     create mask = 0600
>     security mask = 0000
>     directory mask = 0700
>     force directory mode = 0700
>     directory security mask = 0000
>     follow symlinks = no
>     wide links = no
>     hide dot files = yes
>     hide files = /.*/bin/dev/etc/lib/msgs/usr/
> 
> [netlogon]
>     comment = Domain Logon Service
>     path = /usr/local/samba/ntdirs/netlogon
>     writable = no
>     locking = no
>     write list = @domainadmins
> 
> [Profiles]
>     comment = Benutzerprofile
>     path = /usr/local/samba/ntdirs/profiles
>     writeable = yes
>     create mask = 0600
>     directory mask = 0700
>     nt acl support = no
>     csc policy =disable
> 
> [exchange]
>     path = /exchange
>     comment = Datenaustasch
>     browseable = yes
>     writeable = yes
>     create mask = 0640
>     security mask = 0700
>     directory mask = 0700
>     force directory mode = 0700
>     directory security mask = 0700
>     follow symlinks = no
>     wide links = no
>     valid users = @nsc
>     write list = @nsc
>     hide dot files = yes
>     hide files = /.*/bin/dev/etc/lib/msgs/usr/
> 
> 
> please help me
> i'm happy about any little suggestions
> thanks in advance
> regards
> thomas reisenbichler
> 
> 
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list