[Samba] Explorer freezes browsing certain samba folders

2005-06-06 Thread Stewart Baillie

Greetings,

I'm running into some curious and undesirable behaviour from windows 
explorer when I browse certain folders in my samba share - explorer 
freezes for some considerable time before displaying the contents with 
their little icons.  This happens from both W2K SP4 and XP SP1 clients.


For example, explorer routinely freezes for 20 seconds or longer when I 
open the innocuous directory listed below via samba:


# ls -la downloads/Mozilla
total 27116
drwxr-sr-x   4 root NGHEALTH+Web Admins 4096 May 19 15:08 .
drwxrwsr-x  43 root NGHEALTH+Web Admins 4096 May 31 11:22 ..
drwxr-sr-x   2 root NGHEALTH+Web Admins 4096 May 19 11:53 extensions 
- firefox
-rwxr--r--   1 root NGHEALTH+Web Admins  4827008 May  5 11:03 Firefox 
Setup 1.0.3.exe
-rwxr--r--   1 root NGHEALTH+Web Admins  4827968 May 19 11:21 Firefox 
Setup 1.0.4.exe
-rwxr--r--   1 root NGHEALTH+Web Admins 12009680 Dec 22 10:58 
mozilla-win32-1.7.5-installer.exe
drwxr-sr-x   3 root NGHEALTH+Web Admins 4096 Jan 28 11:31 
Sunbird-0.2rc2-win32
-rwxr--r--   1 root NGHEALTH+Web Admins  6017334 Mar 31 11:06 
Thunderbird Setup1.0.exe

-rwxr--r--   1 root NGHEALTH+Web Admins 1248 May 19 09:36 user.js

An ethereal trace shows an incredible amount of traffic during this 
freeze period, as if the each file in the directory is being read in 
it's entirety in 512 byte blocks.  During this time the file icons 
slowly change from their generic look to their customised look.  This 
freeze doesn't happen if I share the same folder from a W2K server.


I'm running FC2 with all updates applied as of early May 2005 including:
   smp kernel 2.6.10-1.771
   samba 3.0.10

Any ideas on this and how to stop the client freezing?

Regards,
Stewart.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

[Samba] Long Delays Displaying Small Folders in Windows Explorer (samba-3.0.10-1 FC2)

2005-05-30 Thread Stewart Baillie

Hi,

I'm trying to replace a windows fileserver server with a Fedora Core 2
samba server in our Windows 2000 ADS domain.

A performance problem occurs when accessing certain samba shares from
Windows Explorer on either an Windows XP or a W2K client machine.  It
can take up to a minute for explorer to list files in a share folder
containing only a few files!  It eventually does, but but reports as non
responding for a long period beforehand.

I've gone about as far as I can in attempting to resolve this issue
myserlf and would appreciate any suggestions from the samba list!

Server Hardware:
  HP Proliant ML 350 Xeon 1G mem
  NetXtreme BCM5705_2 Gigabit Ethernet

Server Software
  All FC2 packages updates applied as of early May 2005 including:
smp kernel 2.6.10-1.771
samba 3.0.10

Network Hardware
  Linksys and 3com Switches (circa 2004)

Client hardware:
  Windows 2000 SP4 and Windows XP Pro machines

In setting up the samba server, I followed the approach outlined in
Samba-3 By Example chapter 9.3.3 Active Directory Domain with samba
Domain Member Server.  I also applied recommended tuning steps.  The
setup all seemed to go impressively smoothly.

I suspect the problem is related to networking.  Analysis in ethereal
shows a huge amount of traffic during the non responsive period.  It
looks like every file is read in it's entirity in 512 byte increments?
Also, a lot of checksum messages come up.

Two highly abreviated text extracts from the ethereal logs are attached 
(which are repeatable):


The first shows the (61 entries) activity involved in displaying
share //nghfs/downloads - which occurs quickly.

The second shows a sample of the excessive activity (57000 log entries!)
involved in displaying a sub folder share //nghfs/downloads/Mozilla -
which takes quite a few seconds although only contains 5 files and 2
folders.

The smb.conf file is also attached.

Any help is most welcome,
Stewart.



#Global parameters
[global]
unix charset = LOCALE
workgroup = NGHEALTH
realm = NGHEALTH.ORG
server string = NGHFS Samba
security = ADS
username map = /etc/samba/smbusers
log level = 3
syslog = 1
log file = /var/log/samba/%m
max log size = 50
printcap name = CUPS
ldap ssl = no
idmap uid = 1-2
idmap gid = 1-2
template primary group = Domain Users
template shell = /bin/bash
winbind separator = +
printing = cups

socket options = IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=8192 
SO_SNDBUF=8192
dead time = 10
getwd cache = yes
oplocks = no
level2 oplocks = no

#[homes]
#   comment = Home Directories
#   valid users = %S
#   read only = No
#   browseable = No

[printers]
comment = SMB Print Spool
path = /var/spool/samba
guest ok = Yes
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
admin users = root NGHEALTH+Administrator @NGHEALTH+Domain Admins
write list = root

[ghost]
comment = Ghost Image Store
path = /mnt/images/images
admin users = root NGHEALTH+Administrator @NGHEALTH+Domain Admins
valid users = @NGHEALTH+Domain Admins
browseable = Yes
writable = Yes
oplocks = false
level2 oplocks = false

[software]
comment = Licensed Software [Restricted]
path = /home/software
admin users = root NGHEALTH+Administrator @NGHEALTH+Domain Admins
valid users = @NGHEALTH+Domain Admins
available = Yes
browseable = Yes
writable = Yes
create mask = 775
inherit permissions = yes
oplocks = false
level2 oplocks = false

[downloads]
comment = Downloads Directory [Public]
path = /home/downloads
admin users = root NGHEALTH+Administrator @NGHEALTH+Web Admins
valid users = @NGHEALTH+Domain Users
available = Yes
browseable = Yes
writable = Yes
create mask = 775
inherit permissions = yes
oplocks = false
level2 oplocks = false

[users]
comment = Offline users store
path = /home/users
admin users = root NGHEALTH+Administrator @NGHEALTH+Web Admins
valid users = @NGHEALTH+Domain Users
available = Yes
browseable = Yes
writable = No
oplocks = false
level2 oplocks = false

Open //NGHFS/downloads mapped drive share in Windows Exporer


No. TimeSourceDestination   Protocol Info
 55 157.836971  192.168.4.210 192.168.4.230 SMB  Trans2 
Request, QUERY_PATH_INFO, Query File Basic Info, Path: \Desktop.ini


No. TimeSourceDestination   Protocol Info
 56