Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Aug 2000 12:39:00 +0100
From:      "Jonathan Defries" <jonathan@corpex.com>
To:        "Freebsd-Questions@Freebsd. Org" <freebsd-questions@freebsd.org>
Subject:   Slow passwd command
Message-ID:  <NEBBJLAOAKHHJLPLDLPIKELPDBAA.jonathan@corpex.com>

next in thread | raw e-mail | index | archive | help
Hi all,

I have a problem that has been with me for several months now.

When I type "passwd <user>" 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




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