[Samba] Slow access when opening shares

josh dickens josh at designisrelative.com
Fri Sep 3 03:58:14 GMT 2004


Hey,
 
I have slow access when I first open shares. If I reboot my XP box and then
go to access a share, it takes a good 10 seconds for files to come up, even
after I've typed in my username and password. Once accessed it runs fine and
is fast. But, if I don't access it for 30 minutes, when I access it again it
sits for like 10 good seconds before it does anything. This is very
annoying.
 
I also have a Mac running OSX 10.3.5, when accessing the samba shares from
the Mac it's fine, there's no slowdown whatsoever. It asks me for username
and password, then just speeds right along.
 
Samba is the only software installed on this BSD system. It has a static ip
of 10.0.0.100. 
 
System: Freebsd 4.10, Duron 900mhz, 512 RAM, 120 gig hd
Version: samba-2.2.8a_2 (Installed via FreeBSD Ports)
 
smb.conf:
 
[global]
 
workgroup = WORKGROUP
server string = Server
netbios name = Server
#hosts allow = 10.0.0. 127.
load printers = no
guest account = me
log file = /var/log/samba/log.%m
max log size = 1000
security = share
encrypt passwords = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
#local master = yes
#os level = 255
#domain master = yes
#preferred master = yes
#wins support = yes
dns proxy = no
 
[share]
comment = my files
path = /my path
writeable = Yes
guest ok = yes

tcpdump when first accessing the share from XP after rebooting the machine,
this is where it takes a good 10 to 15 seconds for the shares to come up:
 
22:39:51.970463 10.0.0.100.2760 > ns.speedfactory.net.domain: 12076+ PTR?
100.0.0.10.in-addr.arpa. (41)

22:39:52.037703 ns.speedfactory.net.domain > 10.0.0.100.2760: 12076
NXDomain* 0/0/0 (41)

22:39:52.038135 10.0.0.100.3434 > ns.speedfactory.net.domain: 12077+ PTR?
40.0.0.10.in-addr.arpa. (40)

22:39:52.083767 ns.speedfactory.net.domain > 10.0.0.100.3434: 12077
NXDomain* 0/0/0 (40)

22:39:53.079804 10.0.0.100.1879 > ns.speedfactory.net.domain: 12078+ PTR?
138.208.23.66.in-addr.arpa. (44)

22:39:53.108466 ns.speedfactory.net.domain > 10.0.0.100.1879: 12078* 1/0/0
(77)

22:39:53.309215 10.0.0.50.1028 > 10.0.0.100.netbios-ssn: P
3444221629:3444221792(163) ack 300534793 win 64162 NBT Packet (DF)

22:39:53.310604 10.0.0.100.netbios-ssn > 10.0.0.50.1028: P 1:94(93) ack 163
win 58400 NBT Packet (DF) [tos 0x10] 

22:39:53.310839 10.0.0.50.1028 > 10.0.0.100.netbios-ssn: P 163:258(95) ack
94 win 64069 NBT Packet (DF)

22:39:53.311021 10.0.0.100.netbios-ssn > 10.0.0.50.1028: P 94:201(107) ack
258 win 58400 NBT Packet (DF) [tos 0x10] 

22:39:53.311304 10.0.0.50.1028 > 10.0.0.100.netbios-ssn: P 258:398(140) ack
201 win 63962 NBT Packet (DF)

22:39:53.311434 10.0.0.100.netbios-ssn > 10.0.0.50.1028: P 201:252(51) ack
398 win 58400 NBT Packet (DF) [tos 0x10] 

22:39:53.311646 10.0.0.50.1028 > 10.0.0.100.netbios-ssn: P 398:461(63) ack
252 win 63911 NBT Packet (DF)

22:39:53.311689 10.0.0.100.netbios-ssn > 10.0.0.50.1028: P 252:383(131) ack
461 win 58400 NBT Packet (DF) [tos 0x10] 

22:39:53.311933 10.0.0.50.1028 > 10.0.0.100.netbios-ssn: P 461:629(168) ack
383 win 63780 NBT Packet (DF)

22:39:53.312142 10.0.0.100.netbios-ssn > 10.0.0.50.1028: P 383:835(452) ack
629 win 58400 NBT Packet (DF) [tos 0x10] 

22:39:53.312461 10.0.0.50.1028 > 10.0.0.100.netbios-ssn: P 629:674(45) ack
835 win 63328 NBT Packet (DF)

22:39:53.312538 10.0.0.100.netbios-ssn > 10.0.0.50.1028: P 835:874(39) ack
674 win 58400 NBT Packet (DF) [tos 0x10] 

22:39:53.493916 10.0.0.50.1028 > 10.0.0.100.netbios-ssn: . ack 874 win 63289
(DF)

704094> (DF)

22:39:57.858192 10.0.0.50.1028 > 10.0.0.100.netbios-ssn: P 674:769(95) ack
874 win 63289 NBT Packet (DF)

22:39:57.858471 10.0.0.100.netbios-ssn > 10.0.0.50.1028: P 874:981(107) ack
769 win 58400 NBT Packet (DF) [tos 0x10] 

22:39:57.858728 10.0.0.50.1028 > 10.0.0.100.netbios-ssn: P 769:814(45) ack
981 win 63182 NBT Packet (DF)

22:39:57.858805 10.0.0.100.netbios-ssn > 10.0.0.50.1028: P 981:1020(39) ack
814 win 58400 NBT Packet (DF) [tos 0x10] 

22:39:57.859007 10.0.0.50.1028 > 10.0.0.100.netbios-ssn: P 814:909(95) ack
1020 win 63143 NBT Packet (DF)

22:39:57.859051 10.0.0.100.netbios-ssn > 10.0.0.50.1028: P 1020:1127(107)
ack 909 win 58400 NBT Packet (DF) [tos 0x10] 

22:39:57.859310 10.0.0.50.1028 > 10.0.0.100.netbios-ssn: P 909:1049(140) ack
1127 win 63036 NBT Packet (DF)

22:39:57.859431 10.0.0.100.netbios-ssn > 10.0.0.50.1028: P 1127:1178(51) ack
1049 win 58400 NBT Packet (DF) [tos 0x10] 

22:39:57.859651 10.0.0.50.1028 > 10.0.0.100.netbios-ssn: P 1049:1112(63) ack
1178 win 62985 NBT Packet (DF)

22:39:57.859697 10.0.0.100.netbios-ssn > 10.0.0.50.1028: P 1178:1309(131)
ack 1112 win 58400 NBT Packet (DF) [tos 0x10] 

22:39:57.859943 10.0.0.50.1028 > 10.0.0.100.netbios-ssn: P 1112:1280(168)
ack 1309 win 62854 NBT Packet (DF)

22:39:57.860162 10.0.0.100.netbios-ssn > 10.0.0.50.1028: P 1309:1761(452)
ack 1280 win 58400 NBT Packet (DF) [tos 0x10] 

22:39:57.860482 10.0.0.50.1028 > 10.0.0.100.netbios-ssn: P 1280:1325(45) ack
1761 win 64240 NBT Packet (DF)

22:39:57.860559 10.0.0.100.netbios-ssn > 10.0.0.50.1028: P 1761:1800(39) ack
1325 win 58400 NBT Packet (DF) [tos 0x10] 

22:39:57.876721 10.0.0.50.1028 > 10.0.0.100.netbios-ssn: P 1325:1421(96) ack
1800 win 64201 NBT Packet (DF)

22:39:57.876780 10.0.0.100.netbios-ssn > 10.0.0.50.1028: P 1800:1907(107)
ack 1421 win 58400 NBT Packet (DF) [tos 0x10] 

22:39:57.877013 10.0.0.50.1028 > 10.0.0.100.netbios-ssn: P 1421:1466(45) ack
1907 win 64094 NBT Packet (DF)

Also, in XP under my TCP/IP protocol settings, under advanced, WINS, I have
NetBIOS setting to 'Enable NetBIOS over TCP/IP'

Thanks for any help you can throw my way,

Josh

josh at onlycreative.net



More information about the samba mailing list