From owner-freebsd-stable@FreeBSD.ORG Thu Dec 6 11:22:21 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2357616A418 for ; Thu, 6 Dec 2007 11:22:21 +0000 (UTC) (envelope-from eugen@www.svzserv.kemerovo.su) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by mx1.freebsd.org (Postfix) with ESMTP id 1FDF213C45D for ; Thu, 6 Dec 2007 11:22:18 +0000 (UTC) (envelope-from eugen@www.svzserv.kemerovo.su) Received: from www.svzserv.kemerovo.su (eugen@localhost [127.0.0.1]) by www.svzserv.kemerovo.su (8.13.8/8.13.8) with ESMTP id lB6BM7uf074805; Thu, 6 Dec 2007 18:22:07 +0700 (KRAT) (envelope-from eugen@www.svzserv.kemerovo.su) Received: (from eugen@localhost) by www.svzserv.kemerovo.su (8.13.8/8.13.8/Submit) id lB6BM7HB074804; Thu, 6 Dec 2007 18:22:07 +0700 (KRAT) (envelope-from eugen) Date: Thu, 6 Dec 2007 18:22:07 +0700 From: Eugene Grosbein To: Patrick van Iersel Message-ID: <20071206112207.GA74486@svzserv.kemerovo.su> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-stable@freebsd.org Subject: Re: Extreme load with local password db lookups X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2007 11:22:21 -0000 On Thu, Dec 06, 2007 at 11:37:50AM +0100, Patrick van Iersel wrote: > Here's the situation. We have an web/ftp server with around 74000 users > defined in the local unix password database. On 4.9-stable which it is > running now, there is no noticable load when lookups are done (logins via > ftp, ~user lookups from apache etc.). We want to migrate this system to > 6-stable. > However on 6-STABLE (FreeBSD 6.3-PRERELEASE #0: Wed Dec 5 13:35:05 CET > 2007) these same lookups cause very high load and things slow down to a > crawl. > > Does anybody have an idea what causes this behavior? > > Thanx in advance for any insights. Take a look to your /etc/nsswitch.conf. If you do not use NIS, try to change lines for 'group' and 'passwd' to look like this: group: files passwd: files Eugene Grosbein