Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Mar 1996 21:53:17 -0500 (EST)
From:      Rashid  Karimov <rashid@rk.ios.com>
To:        hackers@freebsd.org
Subject:   pwd_mkdb - really slow :( 
Message-ID:  <199603040253.VAA07580@rk.ios.com>

next in thread | raw e-mail | index | archive | help
		HI there ppl,




	I have quite afew systems here with ~10.00 accounts
	on ea ... and pwd_mkdb is _very slow now ... Takes
	2+ minutes to rebuild the damn databases every time.

	I'm not concerned with passwd command , even though
	as I understand it doesn;t do one-point update so far
	and rebuilds everything from a scratch, but I'm trying
	to somehow speed up the pwd_mkdb itself.

	So they're a few ways I can see looking at the source code . 
	For example it does two passes on a master password file
	it's fed as a parameter - once for unsecure and once
	for secure databases - so this could be made only once
	and we can write in to db's in parallel, Secondly may
	be I'll be able to reuse at least parts of the structure
	used for db->put for secure and usecure db's.
	And aslo - does any of programs actually use pwd info
	indexed by line number ? Do we really need this pass 
	( there're actually two passes) ? 

	I want to check the the thing using profiler , just 
	to see what eats most time in the program ( I do have
	a feeling already that it's all those dp->put's ).


	Rashid.



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