Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Apr 2005 20:06:38 +0100 (BST)
From:      Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
To:        Oliver Brandmueller <ob@e-Gitt.NET>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: nss_ldap / top startup
Message-ID:  <20050427200324.X47179@ury.york.ac.uk>
In-Reply-To: <1114625632.21968.34.camel@buffy.york.ac.uk>
References:  <20050425105919.GA95908@e-Gitt.NET> <1114625632.21968.34.camel@buffy.york.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 27 Apr 2005, Gavin Atkinson wrote:
> On Mon, 2005-04-25 at 12:59 +0200, Oliver Brandmueller wrote:
> > The more accounts there are in the LDAP directory, the longer the
> > startup of "top" takes. With the current userbase top takes about 3-4
> > seconds to start (on a mostly idle Dual Xeon 2.8GHz with fast disks and
> > local slapd).
>
> The problem is in machine.c - it iterates over every user in the passwd
> file to figure out what how many characters longest username may be.
> It's nasty and to be honest I think it can/should just be removed.
>
> Try the attached patch just to prove that this is the cause in your case
> too.

Sorry - even with that patch, I suspect you'll have to either run top with
the -u option, or define RANDOM_PW before recompiling it.  If you can, try
both individually, I'd be interested in your finding.

Gavin



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