Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jan 2005 23:00:55 GMT
From:      Bruce Campbell <bruce@engmail.uwaterloo.ca>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/75855: getpwent functions on 5.3 with large password file extremely slow
Message-ID:  <200501052300.j05N0tl7099298@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: Bruce Campbell <bruce@engmail.uwaterloo.ca>
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 <pdmckone at engmail uwaterloo ca> -----
     
 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



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