Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Oct 2015 10:35:23 +0200 (CEST)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        Johan Hendriks <joh.hendriks@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Top takes long to start
Message-ID:  <alpine.BSF.2.20.1510121034320.8676@mail.fig.ol.no>
In-Reply-To: <561B6979.3090301@gmail.com>
References:  <561B6979.3090301@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 12 Oct 2015 10:04+0200, Johan Hendriks wrote:

> Hello all.
> 
> We use a central LDAP server with about 10k of user accounts.
> This is all running on Ubuntu servers. When we use top on a linux
> client, top starts instant.
> Now we are in the process of adding some FreeBSD server in the mix.
> One thing we noticed is the fact that as soon as we enable ldap top
> takes about 3 to 5 seconds to start on the FreeBSD hosts.
> 
> # top -u  have no problems.
> I found an old topic that top search for the longest username, but
> clould not find anything else.
> 
> Is there something I can do to speed up the start time of top.

How about using the nscd(8) service on the FreeBSD servers?

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+
From owner-freebsd-questions@freebsd.org  Mon Oct 12 08:59:12 2015
Return-Path: <owner-freebsd-questions@freebsd.org>
Delivered-To: freebsd-questions@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5A76F9D28D6
 for <freebsd-questions@mailman.ysv.freebsd.org>;
 Mon, 12 Oct 2015 08:59:12 +0000 (UTC)
 (envelope-from matthew@freebsd.org)
Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk
 [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client CN "smtp.infracaninophile.co.uk",
 Issuer "infracaninophile.co.uk" (not verified))
 by mx1.freebsd.org (Postfix) with ESMTPS id DCC6E1DEB
 for <freebsd-questions@freebsd.org>; Mon, 12 Oct 2015 08:59:11 +0000 (UTC)
 (envelope-from matthew@freebsd.org)
Received: from ox-dell39.ox.adestra.com (no-reverse-dns.metronet-uk.com
 [85.199.232.226] (may be forged)) (authenticated bits=0)
 by smtp.infracaninophile.co.uk (8.15.2/8.15.2) with ESMTPSA id t9C8x6t7069649
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO)
 for <freebsd-questions@freebsd.org>; Mon, 12 Oct 2015 09:59:06 +0100 (BST)
 (envelope-from matthew@freebsd.org)
Authentication-Results: smtp.infracaninophile.co.uk;
 dmarc=none header.from=freebsd.org
DKIM-Filter: OpenDKIM Filter v2.10.3 smtp.infracaninophile.co.uk t9C8x6t7069649
Authentication-Results: smtp.infracaninophile.co.uk/t9C8x6t7069649;
 dkim=none; dkim-atps=neutral
X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host
 no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be
 ox-dell39.ox.adestra.com
Subject: Re: Top takes long to start
To: freebsd-questions@freebsd.org
References: <561B6979.3090301@gmail.com>
From: Matthew Seaman <matthew@freebsd.org>
X-Enigmail-Draft-Status: N1110
Message-ID: <561B7659.1090907@freebsd.org>
Date: Mon, 12 Oct 2015 09:59:05 +0100
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101
 Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <561B6979.3090301@gmail.com>
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature";
 boundary="1QDCx7TghjlGHabV0anNQn0S9Vk5rme5A"
X-Virus-Scanned: clamav-milter 0.98.7 at lucid-nonsense.infracaninophile.co.uk
X-Virus-Status: Clean
X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00
 autolearn=ham autolearn_force=no version=3.4.1
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on
 lucid-nonsense.infracaninophile.co.uk
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 12 Oct 2015 08:59:12 -0000

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--1QDCx7TghjlGHabV0anNQn0S9Vk5rme5A
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 10/12/15 09:04, Johan Hendriks wrote:
> We use a central LDAP server with about 10k of user accounts.
> This is all running on Ubuntu servers. When we use top on a linux
> client, top starts instant.
> Now we are in the process of adding some FreeBSD server in the mix.
> One thing we noticed is the fact that as soon as we enable ldap top
> takes about 3 to 5 seconds to start on the FreeBSD hosts.

Wht are you using for ldap pam/nss connectivity?  Definitely recommend
net/nss-pam-ldapd or net/nss-pam-ldapd-sasl (if your LDAP requires SASL
auth).  This has a built in nslcd cache daemon, which should help avoid
some of the delays involved in looking up userids over your lan.

	Cheers,

	Matthew






--1QDCx7TghjlGHabV0anNQn0S9Vk5rme5A
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJWG3ZZAAoJEABRPxDgqeTnaqgP/R9Lsv2vJUmppR8TrVSOXd0+
+bUS724sW7JgMlABCK4sa7GR7ixIIpAZfXyts4gdbMfXJbtcTQhcrZKJpJWtHgdJ
cYAqn/bcTmZcIiAcbLAZ6fzTd/9aHuNOhZqV2VV5STS8DVZ3qBVqQz62Ytp1gqM5
/ZMamphuyvScryiqwDQute2yQ4GPgVgjPGxqSeaIndsOC8f8vmrsPG4sdetAWfXv
ruyXjMqunWCCu7OhcMap8JCx/nolouiPx3Sxe5mSnvmFcD8izj45QX2kbtHWFL7Q
YUq2HXP9eLuvVDqEDkEc72Qdu9h1zo8Of4KFy/womkLtWKCo5i3s18n4KV3DUzxX
p+dUYo1WhiS1w+ME7ekSSrCN2GY2WUsaIbGkFqOLBQ4VxaL4bbO7iLqIhcxBuMKy
TMjFY4us8L5n2KSNipYc81OSMpUXsD8W7NxrPC0Jy1HkdR1OMGG6nwffEm7Dyuu1
Pko+zRB8boPLXKlFbWtmIulqem63R/AeoNjYPERiybFz+XSW25Xrkm7cg89cl1Dl
uFFcMKZC+bklXy7HSptViY/8qzcB5zaBjy5A3wLDC2NRo6x6q9a06jxBx71W9YzR
QOuf6L/YRXgHsPZkz0Jz4QumJdU1BSLkAFCM8pkAzrhKedXWonVT/xZqrVD5fxx0
yb1LW1Fwq3VA/suJEeLL
=KZUl
-----END PGP SIGNATURE-----

--1QDCx7TghjlGHabV0anNQn0S9Vk5rme5A--



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