From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 5 23:00:56 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 2FA3E16A4CE for ; Wed, 5 Jan 2005 23:00:56 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1329043D1D for ; Wed, 5 Jan 2005 23:00:56 +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 j05N0tJv099299 for ; Wed, 5 Jan 2005 23:00:55 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j05N0tl7099298; Wed, 5 Jan 2005 23:00:55 GMT (envelope-from gnats) Date: Wed, 5 Jan 2005 23:00:55 GMT Message-Id: <200501052300.j05N0tl7099298@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Bruce Campbell Subject: Re: kern/75855: getpwent functions on 5.3 with large password file extremely slow X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Bruce Campbell List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2005 23:00:56 -0000 The following reply was made to PR kern/75855; it has been noted by GNATS. From: Bruce Campbell To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: kern/75855: getpwent functions on 5.3 with large password file extremely slow Date: Wed, 5 Jan 2005 17:54:58 -0500 One of my co-workers appears to be on to something... ----- Forwarded message from Paul McKone ----- After a bit of reading: in /etc/nsswitch.conf passwd: compat produces lots and lots of lseek's passwd: files produces the expected number "compat" is the compatibility database method for nis and stuff, or something like that, called by nsdispatch, which is called by getpwent.c "files" just looks at /etc/passwd and /etc/master.passwd I've changed the entries for group and passwd in ecserv14's /etc/nsswitch.conf group: files passwd: files and the output from "truss -f /root/a.out | & wc -l" has grone from 16341 to 119 lines. We are onto something here. I don't know what's going on, but it's tied into "nsdispatch" and "compat" somehow. PDM -- Paul McKone Engineering Computing Waterloo Unlimited BASc Systems Manager Development Team =========== innovation through support building a community of scholars ==== phone: 519-888-4567 ext 2757(am) ext 5140(pm) ==== email: pdmckone engmail.uwaterloo.ca paul unlimited.uwaterloo.ca ==== https: www.eng.uwaterloo.ca/~pdmckone www.unlimited.uwaterloo.ca ---------------------------------------- This mail sent through www.mywaterloo.ca ----- End forwarded message ----- -- Bruce Campbell Engineering Computing CPH-2374B University of Waterloo (519)888-4567 ext 5889 ---------------------------------------- This mail sent through www.mywaterloo.ca