Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Apr 2005 19:39:39 +0200
From:      Oliver Brandmueller <ob@e-Gitt.NET>
To:        freebsd-stable@freebsd.org
Subject:   Re: nss_ldap / top startup
Message-ID:  <20050425173939.GB95908@e-Gitt.NET>
In-Reply-To: <20050425170023.GB53806@dan.emsphone.com>
References:  <20050425105919.GA95908@e-Gitt.NET> <20050425170023.GB53806@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello.

On Mon, Apr 25, 2005 at 12:00:23PM -0500, Dan Nelson wrote:
> You can benchmark top by running "time top -d1", which will print one
> page then immediately exit.

Well, it makes really no difference, if I call top with -u or not.

> > Any ideas, why this is happening? Will I need 10 seconds, when there
> > are 60000 accounts in LDAP? :-)
> 
> Try editing /usr/src/usr.bin/top/Makefile, add -DRANDOM_PW, and
> rebuild.  That should probably be the default on FreeBSD anyway.

I tried RANDOM_PW and I tried a bigger TOP_TABLE_SIZE, gives me no 
difference. It really seems to be the case, that the machine reads a lot 
of stuff from the slapd, when top starts you top and slapd being busy 
(both are going back to nearly 0 very soon).

Well; what information is needed from LDAP, if I call top -u ? It makes 
no username mapping. "ps -aux" is by far faster, so I guess it's reading 
all the information and building it's table, althoug it's later not 
really used?

- Oliver

-- 
| Oliver Brandmueller | Offenbacher Str. 1  | Germany       D-14197 Berlin |
| Fon +49-172-3130856 | Fax +49-172-3145027 | WWW:   http://the.addict.de/ |
|               Ich bin das Internet. Sowahr ich Gott helfe.               |
| Eine gewerbliche Nutzung aller enthaltenen Adressen ist nicht gestattet! |



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