From owner-freebsd-stable@FreeBSD.ORG Thu Dec 6 12:34:30 2007 Return-Path: <owner-freebsd-stable@FreeBSD.ORG> 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 34F8B16A41A; Thu, 6 Dec 2007 12:34:30 +0000 (UTC) (envelope-from db@nipsi.de) Received: from fop.bsdsystems.de (mx.bsdsystems.de [88.198.57.43]) by mx1.freebsd.org (Postfix) with ESMTP id EA87913C455; Thu, 6 Dec 2007 12:34:29 +0000 (UTC) (envelope-from db@nipsi.de) Received: from [172.16.1.13] (e176115255.adsl.alicedsl.de [85.176.115.255]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by fop.bsdsystems.de (Postfix) with ESMTP id AB6D927FEC; Thu, 6 Dec 2007 13:09:13 +0100 (CET) Message-ID: <4757E667.1090409@nipsi.de> Date: Thu, 06 Dec 2007 13:09:11 +0100 From: Dennis Berger <db@nipsi.de> User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Jeremy Chadwick <koitsu@FreeBSD.org> References: <C37D8F8E.39687%pviersel@office.caiw.nl> <20071206112207.GA74486@svzserv.kemerovo.su> <20071206114046.GA78813@eos.sc1.parodius.com> In-Reply-To: <20071206114046.GA78813@eos.sc1.parodius.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, Patrick van Iersel <pviersel@office.caiw.nl>, Eugene Grosbein <eugen@kuzbass.ru> 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 <freebsd-stable.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-stable>, <mailto:freebsd-stable-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-stable> List-Post: <mailto:freebsd-stable@freebsd.org> List-Help: <mailto:freebsd-stable-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-stable>, <mailto:freebsd-stable-request@freebsd.org?subject=subscribe> X-List-Received-Date: Thu, 06 Dec 2007 12:34:30 -0000 A common way to debug is to isolate the affected systemcalls, by using tools like ktrace or strace. Strace can also record a timestamp, you can see how long it takes to complete a specific systemcall # strace -r -f <serverproc> Do a single login and then examine the results. happy debugging. regards, Dennis Jeremy Chadwick schrieb: > On Thu, Dec 06, 2007 at 06:22:07PM +0700, Eugene Grosbein wrote: > >> 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 >> > > The default value is "compat" on both RELENG_6 and RELENG_7. I don't > think switching to "files" will fix his problem (I'll be very surprised > if it does). > >