Date: Wed, 5 Jan 2005 19:40:35 GMT From: Kris Kennaway <kris@obsecurity.org> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/75855 Message-ID: <200501051940.j05JeZXq077186@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/75855; it has been noted by GNATS.
From: Kris Kennaway <kris@obsecurity.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:
Subject: Re: kern/75855
Date: Wed, 5 Jan 2005 11:31:24 -0800
Adding relevant information to followup
----- Forwarded message from Bruce Campbell <bruce@engmail.uwaterloo.ca> -----
Date: Wed, 5 Jan 2005 11:08:22 -0500
From: Bruce Campbell <bruce@engmail.uwaterloo.ca>
To: freebsd-questions@freebsd.org
In-Reply-To: <1104932867.41dbf003405b1@www.nexusmail.uwaterloo.ca>
X-Originating-IP: 129.97.50.50
Subject: Re: New FreeBSD 5.3 e-mail server extremely slow - traced to
getpwnam maybe ?
Quoting Bruce Campbell <bruce@engmail.uwaterloo.ca>:
> > On Tue, Jan 04, 2005 at 09:27:27PM -0500, Bruce Campbell wrote:
> >
> > > I wrote a small program:
> > >
> > > #include <sys/types.h>
> > > #include <pwd.h>
> > >
> > > main( int argc, char *argv[] )
> > > {
> > > getpwuid( 13076 );
> > > }
> > >
> > > and ran it under truss on 5.x and it generated 178,711 lines of output.
> > > (the bulk of which is those lseek/read calls as above)
It looks like the overhaul of getpwent Apr/2003 to make it thread safe:
http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/gen/getpwent.c
may be the problem.
I've tested the dbm_fetch function independently on a large
file, and it is fine.
I've opened a bug report, and plan to build a replacement 4.x
mail server, as the most deterministic path to restoring
adequate e-mail service to our users.
Can anyone suggest a workaround ?
--
Bruce Campbell
Engineering Computing
CPH-2374B
University of Waterloo
(519)888-4567 ext 5889
----------------------------------------
This mail sent through www.mywaterloo.ca
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
----- End forwarded message -----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501051940.j05JeZXq077186>
