Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2002 22:38:40 -0500 (EST)
From:      Ben Sigelman <Benjamin_Sigelman@brown.edu>
To:        <freebsd-questions@freeBSD.org>
Subject:   Problem with connect() after going back to 4.5 from 5-CURR
Message-ID:  <20020227223817.N306-100000@andrewswest-242.resnet.brown.edu>

next in thread | raw e-mail | index | archive | help
Hi, I'll try to keep this succinct:

I was running 4.4-STABLE.  I then went to 5.0-CURRENT for the hell of it.
Finally I return to 4.5-STABLE after having my fill of problems, and after
the vanilla upgrade process there are a few serious problems.  One is that
PAM is seemingly decimated, much to my dismay.  I can no longer login via
ssh, which is a shame indeed... ports tree is messed up (Makefile doesn't
work, so it's hard to be more specific).

BUT, here's the biggest problem:

calls to connect() block for 3-5 seconds on average.  here's some output
from "truss telnet webpub.brown.edu" that illustrates some of my trouble.

---------------- truss output in case you're interested: ----------------
read(0x3,0x806a000,0x2000)                       = 0 (0x0)
close(3)                                         = 0 (0x0)
gettimeofday(0xbfbfe63c,0x0)                     = 0 (0x0)
getpid()                                         = 755 (0x2f3)
issetugid()                                      = 0 (0x0)
open("/etc/resolv.conf",0x0,0666)                = 3 (0x3)
fstat(3,0xbfbfe534)                              = 0 (0x0)
read(0x3,0x806a000,0x2000)                       = 93 (0x5d)
read(0x3,0x806a000,0x2000)                       = 0 (0x0)
close(3)                                         = 0 (0x0)
issetugid()                                      = 0 (0x0)
kqueue()                                         = 3 (0x3)
socket(0x2,0x2,0x0)                              = 4 (0x4)
connect(0x4,{ AF_INET 128.148.228.7:53 },16)     = 0 (0x0)
sendto(0x4,0xbfbfe2a4,0x22,0x0,0x0,0x0)          = 34 (0x22)
gettimeofday(0xbfbfe030,0x0)                     = 0 (0x0)
------------------------ end of truss output ---------------------------

not very interesting, I know... anyway, there's this big gap right there
after the gettimeofday.

gettimeofday() is not blocking, as "date" runs smoothly and makes the same
syscall.  after using the system for 30 minutes, it is obvious that
there's a noticeable lag after each call to connect(). [pine, slrn,
mozilla, opera, etc all suffer very obviously from this]

the TCP connections are actually quite responsive once they have been
initialized.

any thoughts?  I'm probably going to have to reinstall everything (groan)
from scratch if noone has a clue about this...  I'm running a GENERIC
kernel + "device pcm", so nothing special there.

T.I.A.,
- Ben



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020227223817.N306-100000>