From owner-freebsd-questions Thu Aug 24 4:39:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from qmail.corpex.net (qmail.corpex.net [195.153.247.40]) by hub.freebsd.org (Postfix) with SMTP id 9136C37B422 for ; Thu, 24 Aug 2000 04:39:14 -0700 (PDT) Received: (qmail 31592 invoked from network); 24 Aug 2000 11:42:08 -0000 Received: from perseus.corpex.net (HELO perseus) (195.153.247.226) by qmail.corpex.net with SMTP; 24 Aug 2000 11:42:08 -0000 From: "Jonathan Defries" To: "Freebsd-Questions@Freebsd. Org" Subject: Slow passwd command Date: Thu, 24 Aug 2000 12:39:00 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, I have a problem that has been with me for several months now. When I type "passwd " is takes nearly a minute to be presented with the password prompt. The same happens running passwd as a normal user. This is on a 3.5-STABLE box, which was upgraded through a buildworld from 3.3-RELEASE, the problem was also present on 3.3. Someone suggested I ran truss to see if I could figure out what is happening. Well, I ran truss, but I'm still clueless, the lines that seem to cause the delay are these: syscall select(0x5,0xbfbfd5e0,0x0,0x0,0xbfbfd568) returns 0 (0x0) syscall sendto(0x4,0x80529f0,0x38,0x0,0x8052808,0x10) returns 56 (0x38) syscall gettimeofday(0xbfbfd570,0x0) returns 0 (0x0) syscall select(0x5,0xbfbfd5e0,0x0,0x0,0xbfbfd568) returns 0 (0x0) syscall sendto(0x4,0x80529f0,0x38,0x0,0x8052808,0x10) returns 56 (0x38) syscall gettimeofday(0xbfbfd570,0x0) returns 0 (0x0) syscall select(0x5,0xbfbfd5e0,0x0,0x0,0xbfbfd568) returns 0 (0x0) syscall sendto(0x4,0x80529f0,0x38,0x0,0x8052808,0x10) returns 56 (0x38) syscall gettimeofday(0xbfbfd570,0x0) returns 0 (0x0) syscall select(0x5,0xbfbfd5e0,0x0,0x0,0xbfbfd568) returns 0 (0x0) syscall close(4) returns 0 (0x0) syscall close(4) errno 9 'Bad file descriptor' The gettimeofday loop happens about every 5 seconds, then finally the bad file descriptor comes up and it then seems to progress fairly normally. Any suggestions as what to do next would be appreciated. TIA, Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message