From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 5 19:40:36 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1231516A4E4 for ; Wed, 5 Jan 2005 19:40:36 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBC3143D46 for ; Wed, 5 Jan 2005 19:40:35 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j05JeZca077187 for ; Wed, 5 Jan 2005 19:40:35 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j05JeZXq077186; Wed, 5 Jan 2005 19:40:35 GMT (envelope-from gnats) Date: Wed, 5 Jan 2005 19:40:35 GMT Message-Id: <200501051940.j05JeZXq077186@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Kris Kennaway Subject: Re: kern/75855 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Kris Kennaway List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2005 19:40:36 -0000 The following reply was made to PR kern/75855; it has been noted by GNATS. From: Kris Kennaway 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 ----- Date: Wed, 5 Jan 2005 11:08:22 -0500 From: Bruce Campbell 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 : > > On Tue, Jan 04, 2005 at 09:27:27PM -0500, Bruce Campbell wrote: > > > > > I wrote a small program: > > > > > > #include > > > #include > > > > > > 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 -----