From owner-freebsd-stable@FreeBSD.ORG Mon Apr 25 17:39:41 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C06916A4CE for ; Mon, 25 Apr 2005 17:39:41 +0000 (GMT) Received: from obh.snafu.de (obh.snafu.de [213.73.92.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D6B243D53 for ; Mon, 25 Apr 2005 17:39:40 +0000 (GMT) (envelope-from ob@gruft.de) Received: from ob by obh.snafu.de with local (Exim 4.50 (FreeBSD)) id 1DQ7YZ-000ELH-PM for freebsd-stable@freebsd.org; Mon, 25 Apr 2005 19:39:39 +0200 Date: Mon, 25 Apr 2005 19:39:39 +0200 From: Oliver Brandmueller To: freebsd-stable@freebsd.org Message-ID: <20050425173939.GB95908@e-Gitt.NET> Mail-Followup-To: freebsd-stable@freebsd.org References: <20050425105919.GA95908@e-Gitt.NET> <20050425170023.GB53806@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050425170023.GB53806@dan.emsphone.com> User-Agent: Mutt/1.5.9i Sender: Oliver Brandmueller Subject: Re: nss_ldap / top startup X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 17:39:41 -0000 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! |