Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Dec 2007 22:04:22 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        Jeremy Chadwick <koitsu@FreeBSD.org>
Cc:        Eugene Grosbein <eugen@kuzbass.ru>, Patrick van Iersel <pviersel@office.caiw.nl>, freebsd-stable@FreeBSD.org
Subject:   Re: Extreme load with local password db lookups
Message-ID:  <475B8566.2050008@FreeBSD.org>
In-Reply-To: <20071207074910.GA2404@eos.sc1.parodius.com>
References:  <4758DCDA.ED9F0C56@kuzbass.ru>	<C37EB875.397C1%pviersel@office.caiw.nl> <20071207074910.GA2404@eos.sc1.parodius.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jeremy Chadwick wrote:
> On Fri, Dec 07, 2007 at 08:44:37AM +0100, Patrick van Iersel wrote:
>>> From: Eugene Grosbein <eugen@kuzbass.ru>
>>> See http://www.freebsd.org/cgi/query-pr.cgi?pr=75855
>>> It seems the regression from RELENG_4 is still here.
>>>
>>> There are so many regressions in performance that I still
>>> prefer to invest time to patch bsd.ports.mk to support 4.x
>>> (and have a success, I use fresh ports with 4.x these days)
>>> then upgrade my UP boxes to 6.x and suffer from loss of performaince.
>> For what it's worth, Eugene's suggestion of changing nsswitch.conf actually
>> helps. It was mentioned in the PR above as well. It's still a workaround but
>> it works good enough for me now.
> 
> I stand corrected.  :-) The PR referenced by Eugene is dead on.  The
> priority on that PR should really be changed to medium or high, because
> the impact is major.  I'm sure large hosting/shell providers are being
> bitten by this.

My nsswitch.conf looks like the following. Do you get the same benefit
(faster lookups) by commenting out the _compat methods, or only if you
change group and passwd to 'files'?

Doug

group: compat
#group_compat: nis
hosts: files dns
networks: files
passwd: compat
#passwd_compat: nis
shells: files
services: compat
#services_compat: nis
protocols: files
rpc: files

-- 

    This .signature sanitized for your protection




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?475B8566.2050008>