Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2007 19:24:53 -0500
From:      Scott Lambert <lambert@lambertfam.org>
To:        freebsd-stable@freebsd.org
Subject:   Re: uid/gid lookups slower on 6.2 than 4.x?
Message-ID:  <20070411002453.GC13500@sysmon.tcworks.net>
In-Reply-To: <200704110206.08099.max@love2party.net>
References:  <20070410231942.GB13500@sysmon.tcworks.net> <200704110206.08099.max@love2party.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 11, 2007 at 02:05:59AM +0200, Max Laier wrote:
> On Wednesday 11 April 2007 01:19, Scott Lambert wrote:
> > I've run into an interesting performance "issue" with ls on a
> > 6.2-STABLE box, web1.  This box is going to replace my current 4.11
> > box, ns, and is not currently active.  It's running all the daemons it
> > will be in production, but traffic is not pointed at it yet.
> >
> > root@web1 /home
> > 17:58:57 Tue Apr 10 # time ls -l | wc -l
> >     3135
> >
> > real    0m35.224s
> > user    0m6.748s
> > sys     0m28.482s
> ...
> > root@web1 /home
> > 18:01:13 Tue Apr 10 #  uname -a
> > FreeBSD web1.hosting.tcworks.net 6.2-STABLE-200702 FreeBSD
> > 6.2-STABLE-200702 #0: Sun Feb  4 13:35:09 UTC 2007    
> > root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  i386
> >
> > root@web1 /home
> > 18:03:38 Tue Apr 10 # time ls -ln | wc -l
> >     3135
> >
> > real    0m0.054s
> > user    0m0.030s
> > sys     0m0.031s
> 
> Well, with nsswitch things are a bit more difficult.  If you don't need 
> it, you can just use nsswitch.conf to turn it off for passwd/group.  
> Otherwise, you'll have to look at MFCing cached(8) from current.

Aha!  PEBKAC error!  Changing group and passwd from compat to files has
"fixed" the problem.

Thank you for the education...

-- 
Scott Lambert                    KC5MLE                       Unix SysAdmin
lambert@lambertfam.org




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