Samba writing problem

Ulrich Schieborr schieborr at nmr.uni-frankfurt.de
Thu Mar 24 17:12:06 GMT 2005


Hi!
I have a performance problem with samba!
I have a SCSI disc in my linux box running samba (samba-2.2.8a-234)
with Suse 8.2 and standard kernel.
This computer exports the disk to the other linux machines via NFS, 
which works fine.
Smbmount is also working on the linux machines.
But the windows clients can only read with a good performance.
Writing is incredible slow. It begins pretty fast for a second or so
but then the network performance goes to about 1.5% or even less.
In principle it works, but it is incredible slow.
I have tried "thousands" of configurations of the smb.conf (but may be
I still did not find the right parameter to change)
When I start the samba server (with the same smb.conf-file) on a machine 
which has mounted the disk
via NFS, it works quite good. The performance when writing from the
disk to the disk using any windows client,is much better. (Not really 
good but about a factor of 10 better)
The problem semms to be independent of the windows operating system.
I did not find this problem anywhere in the internet....
I have no idea, what the reason could be for this behaviour....????!!!!
Can anybody help me?
Thank you in advance
Uli


Here my current smb.conf-file (I have changed a lot but nothing happened):


# Samba config file created using SWAT
# from bug.org.chemie.uni-frankfurt.de (192.168.100.19)
# Date: 2003/11/10 14:13:21

# Global parameters
[global]
         workgroup = FLY
         interfaces = 127.0.0.1/8 192.168.100.1/24
         encrypt passwords = Yes
         password server = 192.168.100.1
         username map = /etc/samba/smbusers
         unix password sync = No
         log level = 2
         syslog = 0
         log file = /var/log/samba/%m
         time server = Yes
         unix extensions = Yes
         socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 
IPTOS_LOWDELAY
         add user script = /usr/sbin/useradd -g nogroup -c "NT Machine 
Account" -d /dev/null -s /bin
/false %m$
         os level = 0
         veto files = /*.eml/*.nws/riched20.dll/*.{*}/
         read raw = yes
         dead time = 15
         getwd cache = yes
         lpd cache = 30
         max xmit = 65535
         sync always = no
         write cache size = 262144
         write raw = yes
         write list = floezen
[homes]
         comment = Home Directories
         valid users = %S
         browseable = yes
         read only = No
         create mask = 0640
         directory mask = 0750

here the log of one copy-operation:
[2005/03/24 17:50:23, 1] smbd/service.c:make_connection(636)
   fish (192.168.100.20) connect to service us as user us (uid=511, 
gid=1000) (pid 1881)
[2005/03/24 17:51:01, 2] smbd/open.c:open_file(247)
   us opened file bilder/rasselbande3.tif read=Yes write=No (numopen=1)
[2005/03/24 17:51:01, 2] smbd/close.c:close_normal_file(229)
   us closed file bilder/rasselbande3.tif (numopen=0)
[2005/03/24 17:51:01, 2] smbd/open.c:open_file(247)
   us opened file bilder/rasselbande3.tif read=Yes write=No (numopen=1)
[2005/03/24 17:51:01, 2] smbd/open.c:open_file(247)
   us opened file temp/rasselbande3.tif read=Yes write=Yes (numopen=2)
[2005/03/24 17:53:04, 2] smbd/open.c:open_file(247)
   us opened file bilder/rasselbande3.tif read=Yes write=No (numopen=3)
[2005/03/24 17:53:04, 2] smbd/close.c:close_normal_file(229)
   us closed file bilder/rasselbande3.tif (numopen=2)
[2005/03/24 17:53:34, 2] smbd/close.c:close_normal_file(229)
   us closed file temp/rasselbande3.tif (numopen=1)
[2005/03/24 17:53:34, 2] smbd/close.c:close_normal_file(229)
   us closed file bilder/rasselbande3.tif (numopen=0)
[2005/03/24 17:53:34, 2] smbd/open.c:open_file(247)
   us opened file temp/rasselbande3.tif read=Yes write=No (numopen=1)
[2005/03/24 17:53:34, 2] smbd/close.c:close_normal_file(229)
   us closed file temp/rasselbande3.tif (numopen=0)


The smbd-logfile:
[2005/03/24 17:50:13, 2] smbd/server.c:exit_server(511)
   Closing connections
[2005/03/24 17:50:16, 2] lib/interface.c:add_interface(81)
   added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
[2005/03/24 17:50:16, 2] lib/interface.c:add_interface(81)
   added interface ip=192.168.100.1 bcast=192.168.100.255 
nmask=255.255.255.0
[2005/03/24 17:50:16, 2] smbd/server.c:open_sockets(249)
   waiting for a connection
[2005/03/24 17:50:23, 2] smbd/reply.c:reply_special(92)
   netbios connect: name1=LION             name2=FISH
[2005/03/24 17:50:23, 2] smbd/reply.c:reply_special(111)
   netbios connect: local=lion remote=fish





More information about the smb-clients mailing list