Subject: Re: yp performance
To: Erik Rungi <firstname.lastname@example.org>
From: David Brownlee <email@example.com>
Date: 11/16/1999 21:30:42
As a workaround if the password maps are the same in each
domain you could play around with the makefiles to one make one,
then copy it into the other subdirs.
For a solution - have you tried compiling up a version of
makedbm with profiling enabled (-pg) to see where all the
time is going?
On Tue, 16 Nov 1999, Erik Rungi wrote:
> I'm building a couple of YP maps based off of a text passwd file with
> approximately 3000 entries.
> For some reason, the makedbm phase takes approximately 0.5 to 1 second for
> building "passwd.byuid" maps, but 25-30 seconds to build "passwd.byname" maps.
> I have 3 different YP "domains" so this means I'm building "byname" maps 6
> times (once for "passwd" and "master.passwd" each).
> This accounts for about 75% of the "make" time, and its getting to be measured
> in minutes, which is rather annoying. The rest of the time appears to be
> largely being taken up by yppush.
> Why do "byname" maps take several orders of magnitude longer than "byuid" maps
> to build? Does anyone have any easily implemented suggestions for speeding up
> makedbm(8) in this case?
> Erik Rungi