[Samba] samba-2.2.2 slower than samba-2.0.7 on Solaris

Thomas Schulz schulz at adi.com
Thu Feb 7 11:45:04 GMT 2002


I just tried to upgrade from Version 2.0.7 to Version 2.2.2 and received
complaints from several users that file access was much slower.  I made
no changes to the configuration file.  The configuration file is mostly
unchanged from the sample provided, changing only the location of the
logs and specifying some shares.  We are running Samba on a Sun
Sparc 10 (a slow machine I admit) running Solaris 8.  I had preveiously
tried both 2.2.1a and 2.2.2 under Solaris 2.6 with the same complaints.

The PCs are running Windows 2000.  One user that complained loudly is
running ISP Design Expert from Lattice Semiconductor.

In trying to see the problem myself, I tried copying a large file from
my home directory to a sub directory.  With Samba 2.2.2 running, I see
that the progress box does not show up until 3 to 4 seconds after I
click on paste.  With Samba 2.0.7, the progress box shows up instantly.
In either case, the file takes 10 to 11 seconds to copy once the
copy actually starts.  As an experiment, I have tried the following
settings with no effect: oplocks = no, fake oplocks = yes, locking = no.
Following is a section of the log file with log level = 2.  I also tried
this with log level = 3, but that is too long to send without your asking
for it.  I clicked on paste at 13:12:00.

[2002/02/07 13:12:00, 2] smbd/open.c:(217)
  schulz opened file smit.log read=Yes write=No (numopen=3)
[2002/02/07 13:12:01, 2] smbd/close.c:(208)
  schulz closed file smit.log (numopen=2)
[2002/02/07 13:12:01, 2] smbd/open.c:(217)
  schulz opened file smit.log read=Yes write=No (numopen=3)
[2002/02/07 13:12:01, 2] smbd/close.c:(208)
  schulz closed file smit.log (numopen=2)
[2002/02/07 13:12:01, 2] smbd/open.c:(217)
  schulz opened file smit.log read=Yes write=No (numopen=3)
[2002/02/07 13:12:02, 2] smbd/close.c:(208)
  schulz closed file smit.log (numopen=2)
[2002/02/07 13:12:02, 2] smbd/open.c:(217)
  schulz opened file smit.log read=Yes write=No (numopen=3)
[2002/02/07 13:12:02, 2] smbd/open.c:(217)
  schulz opened file tmp/smit.log read=No write=Yes (numopen=4)
[2002/02/07 13:12:14, 2] smbd/open.c:(427)
  Share violation on file (4,1,1,15356,tmp/smit.log,fcbopen = 0, flags = 0) = 0
[2002/02/07 13:12:14, 2] smbd/open.c:(217)
  schulz opened file tmp/smit.log read=Yes write=No (numopen=5)
[2002/02/07 13:12:15, 2] smbd/close.c:(208)
  schulz closed file tmp/smit.log (numopen=3)
[2002/02/07 13:12:55, 2] smbd/close.c:(208)
  schulz closed file smit.log (numopen=2)

In the log.smb, I see the following (error?) messages

[2002/02/07 11:56:53, 2] tdb/tdbutil.c:(342)
  tdb(/opt/local/samba/var/locks/angler/connections.tdb): tdb_mmap failed
for size 8192 (Resource temporarily unavailable)
[2002/02/07 11:56:53, 2] tdb/tdbutil.c:(342)
  tdb(/opt/local/samba/var/locks/angler/messages.tdb): tdb_mmap failed for
size 696 (Resource temporarily unavailable)
[2002/02/07 11:56:53, 0] tdb/tdbutil.c:(342)
  tdb(/opt/local/samba/private/secrets.tdb): tdb_reopen: failed to obtain
active lock

No messages there at the time of the file copy.



Tom schulz
Applied Dynamics Intl.
schulz at adi.com




More information about the samba mailing list