[Samba] Intermittent long (~20-second) delays getting to files in a
share
Per Reedtz Thomsen
pthomsen at reedtz.com
Tue May 24 16:56:28 GMT 2005
Hi,
I'm a newbie to the list, so bear with my ignorance.
I have installed 3.0.14a on FC3, and am using it on a network of 5 XP boxes.
The symptoms are as follows:
When I initially start using the server, there is a significant delay (~
20 seconds) to accessing the share (home directory or a regular file
share). After that I can open files with no problems (near-instant
response) for about 2 minutes. Then I get the same problem again: about a
20-second delay before a file is loaded into notepad/Excel/Etc, then
snappy again for 2 minutes.
I'm told that I should be tweaking the Registry on my XP boxes, but I
can't find out how to do that.
The log entries in log.smbd look like this:
[2005/05/24 08:35:12, 9] smbd/trans2.c:send_trans2_replies(556)
t2_rep: params_sent_thistime = 2, data_sent_thistime = 40, useable_space
= 131010
[2005/05/24 08:35:12, 9] smbd/trans2.c:send_trans2_replies(558)
t2_rep: params_to_send = 2, data_to_send = 40, paramsize = 2, datasize = 40
[2005/05/24 08:35:12, 6] lib/util_sock.c:write_socket(449)
write_socket(24,104)
[2005/05/24 08:35:12, 6] lib/util_sock.c:write_socket(452)
write_socket(24,104) wrote 104
[2005/05/24 08:35:23, 10]
lib/util_sock.c:read_smb_length_return_keepalive(505)
got smb length of 41
[2005/05/24 08:35:23, 6] smbd/process.c:process_smb(1090)
got message type 0x0 of len 0x29
[2005/05/24 08:35:23, 3] smbd/process.c:process_smb(1091)
Transaction 404 of length 45
Notice the 11 second gap between write_socket(452) and
....return_keepalive(505). Don't know how that turns into a 20-second
delay, but it does.
My smb.conf looks like this:
[global]
workgroup = CALNUT
netbios name = Server
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# os level = 255
hosts allow = 10.1.33. 192.168.106. 127.0.0.
# log level = 10
# oplocks = no
create mask = 774
directory mask = 774
interfaces = eth0 lo
# local master = yes
# domain master = yes
# preferred master = yes
wins support = yes
name resolve order = wins lmhosts bcast hosts
security = user
username map = /etc/samba/usernamemap.txt
invalid users = bin daemon adm lp sync shutdown halt mail \
news uucp operator games gopher ftp nobody dbus \
vcsa nscd rpm haldaemon netdump sshd rpc rpcuser \
nfsnobody mailnull smmsp pcap apache squid \
webalizer xfs ntp gdm
[CalnutShared]
comment = Shared Documents, accessible to all
path = /home/calnut
veto oplock files = /*.QBW/
read only = no
guest ok = no
valid users = pthomsen +users
[homes]
browsable = no
writable = yes
Any ideas?
Thanks,
Per Thomsen
More information about the samba
mailing list