FreeBSD is Very slow to load some sites

cpghost cpghost at cordula.ws
Mon Jul 25 17:53:16 GMT 2005


On Mon, Jul 25, 2005 at 08:27:37AM +0930, Galdes, Andrew (ERHS) wrote:
> Freebsd seems to take a long time (up to ten minutes) to load some web
> sites. When i use Linux or Windows it seems to load at normal speed. I have
> installed Freebsd (same version) on another computer and it has the same
> trouble. I have tried both firefox and konqueror. 
> 
> The website is www.anz.com.au. I suspect the security of the site is the
> problem but cannot be sure.

A bit sluggish here with Firefox 1.0.5 (from ports). Page loads in
approx 30 seconds. Once the page is loaded, other pages are served
almost instantly. Stopping firefox and restarting it, results in the
same initial delay.

With w3m, every page access results in that approx 30 secs delay;
perhaps because w3m doesn't keep the connection open?

> Another thread on this list "[kde-freebsd] Konqueror very slow displaying
> some sites" puts it down to DNS. Any ideas?

It could be DNS related. I've run
$ truss w3m http://www.anz.com.au/

after mounting /proc, and most of the waiting time is spent querying
the local DNS server. After getting a reply from the DNS server,
everything starts running smoothing and fast again:

[... here, things start slowing down considerably ...]
socket(0x2,0x2,0x0)                              = 5 (0x5)
connect(0x5,{ AF_INET 192.168.254.1:53 },16)     = 0 (0x0)
sendto(0x5,0x8148000,0,0x0,NULL,0x0)             = 32 (0x20)
gettimeofday({1122313919 295525},0x0)            = 0 (0x0)
kevent(0x4,0xbfbfd4b0,0x1,0xbfbfd4b0,0x1,0xbfbfd490) = 0 (0x0)
close(5)                                         = 0 (0x0)
socket(0x2,0x2,0x0)                              = 5 (0x5)
connect(0x5,{ AF_INET 192.168.254.1:53 },16)     = 0 (0x0)
sendto(0x5,0x8148000,0,0x0,NULL,0x0)             = 32 (0x20)
gettimeofday({1122313924 303323},0x0)            = 0 (0x0)
kevent(0x4,0xbfbfd4b0,0x1,0xbfbfd4b0,0x1,0xbfbfd490) = 0 (0x0)
close(5)                                         = 0 (0x0)
socket(0x2,0x2,0x0)                              = 5 (0x5)
connect(0x5,{ AF_INET 192.168.254.1:53 },16)     = 0 (0x0)
sendto(0x5,0x8148000,0,0x0,NULL,0x0)             = 32 (0x20)
gettimeofday({1122313934 313571},0x0)            = 0 (0x0)
kevent(0x4,0xbfbfd4b0,0x1,0xbfbfd4b0,0x1,0xbfbfd490) = 1 (0x1)
recvfrom(0x5,0x8138000,0,0x0,{ AF_INET 192.168.254.1:53 },0xbfbfd484) = 32 (0x20
)
close(5)                                         = 0 (0x0)
close(4)                                         = 0 (0x0)
[... from here, everything runs very fast again ...]

> -Andrew

Regards,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/


More information about the freebsd-questions mailing list