From owner-freebsd-questions Wed Feb 27 19:39:58 2002 Delivered-To: freebsd-questions@freebsd.org Received: from vega.brown.edu (vega.services.brown.edu [128.148.19.202]) by hub.freebsd.org (Postfix) with ESMTP id 0DDFF37B405 for ; Wed, 27 Feb 2002 19:39:53 -0800 (PST) Received: from AndrewsWest-242.resnet.brown.edu (AndrewsWest-242.resnet.brown.edu [128.148.189.242]) by vega.brown.edu (8.9.3/8.9.3) with ESMTP id WAA04260 for ; Wed, 27 Feb 2002 22:39:52 -0500 (EST) Date: Wed, 27 Feb 2002 22:38:40 -0500 (EST) From: Ben Sigelman X-X-Sender: To: Subject: Problem with connect() after going back to 4.5 from 5-CURR Message-ID: <20020227223817.N306-100000@andrewswest-242.resnet.brown.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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