Per Reedtz Thomsen
2005-May-24 16:57 UTC
[Samba] Intermittent long (~20-second) delays getting to files in a share
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
Per Thomsen
2005-May-24 18:47 UTC
[Samba] Intermittent long (~20-second) delays getting to files in a share
On 5/24/05 9:56 AM, Per Reedtz Thomsen wrote:>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. > >I turned off the webclient service, and that seems to have alleviated the delay problem. However, I'm seeing this in the logs (it was there before, too): [2005/05/24 11:28:28, 0] smbd/service.c:make_connection_snum(577) Can't become connected user! [2005/05/24 11:28:30, 0] smbd/service.c:make_connection_snum(577) Can't become connected user! [2005/05/24 11:36:08, 0] smbd/service.c:make_connection_snum(577) Can't become connected user! [2005/05/24 11:36:11, 0] smbd/service.c:make_connection_snum(577) Can't become connected user! [2005/05/24 11:36:54, 0] smbd/service.c:make_connection_snum(577) Can't become connected user! [2005/05/24 11:36:57, 0] smbd/service.c:make_connection_snum(577) Can't become connected user! [2005/05/24 11:39:15, 0] smbd/service.c:make_connection_snum(577) Can't become connected user! [2005/05/24 11:39:17, 0] smbd/service.c:make_connection_snum(577) Can't become connected user! [2005/05/24 11:40:32, 0] smbd/service.c:make_connection_snum(577) Can't become connected user! [2005/05/24 11:40:35, 0] smbd/service.c:make_connection_snum(577) Can't become connected user! Any ideas about that? It doesn't seem to affect the access to the files on the shares, but it's annoying in the logs, and I wonder if it's relating to a problem that I'm not seeing? Thanks, Per Thomsen -- Per Reedtz Thomsen | Reedtz Consulting, LLC | F: 209 883 4119 V: 209 883 4102 | pthomsen@reedtz.com | C: 209 996 9561 GPG ID: 1209784F | Yahoo! Chat: pthomsen | AIM: pthomsen