From owner-freebsd-stable@FreeBSD.ORG Thu Dec 6 14:06:05 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 9514C16A41A for ; Thu, 6 Dec 2007 14:06:05 +0000 (UTC) (envelope-from pviersel@office.caiw.nl) Received: from maquis.kabelfoon.nl (maquis-ext.kabelfoon.nl [62.45.52.209]) by mx1.freebsd.org (Postfix) with ESMTP id 4AA0E13C4D9 for ; Thu, 6 Dec 2007 14:06:05 +0000 (UTC) (envelope-from pviersel@office.caiw.nl) Received: from [192.168.8.127] (unknown [192.168.8.127]) by maquis.kabelfoon.nl (Postfix) with ESMTP id 21DEB2FA5B; Thu, 6 Dec 2007 15:06:04 +0100 (CET) User-Agent: Microsoft-Entourage/10.1.4.030702.0 Date: Thu, 06 Dec 2007 15:06:03 +0100 From: Patrick van Iersel To: Dennis Berger Message-ID: In-Reply-To: <4757E667.1090409@nipsi.de> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Cc: freebsd-stable@freebsd.org, Jeremy Chadwick , Eugene Grosbein 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 14:06:05 -0000 > > 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). >> > From: Dennis Berger > Date: Thu, 06 Dec 2007 13:09:11 +0100 > To: Jeremy Chadwick > Cc: Eugene Grosbein , Patrick van Iersel > ,freebsd-stable@freebsd.org > Subject: Re: Extreme load with local password db lookups > > 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 > Do a single login and then examine the results. > > happy debugging. > > regards, > Dennis Ok, thanks for the suggestions. I'm a little low on time right now (who isn't) but I'll work on these next week. Best regards, Patrick.