From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078694111598.tru64-unix-managers.marc@archive.invalid> From: Richard Berrie - Computing Services Date: Thu, 26 Feb 1998 04:46:19 +0000 To: tru64-unix-managers Subject: mkpasswd - ndbm failure with a small input file X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078694111598 Help me please! With regard to the following: ------8<---------------------8<----------------------8<------------- PROBLEM: (Patch ID: OSF410-400331) ******** When the /etc/passwd file is very large, a performance degradation may occur. When the number of passwd entries reaches up into the 30,000 to 80,000 range or greater, mkpasswd will sometimes fail to create a hashed (ndbm) database. Since the purpose of this database is to allow for efficient (fast) searches for passwd file information, failure to build it causes commands that rely on it to do a linear search of /etc/passwd. This results in a serious per- formance degradation for those commands. This patch allows the vedquota, vquot, vquota and vquotacheck commands to work correctly when the customer builds a hashed passwd database using a non-default page file block size. ------8<---------------------8<----------------------8<------------- It seems not to be the size of the /etc/passwd file that matters .. it has something to do with the way ndbm hashes the records... The following uuencoded example demonstrates the problem. I have many more sets of 14 records that break mkpasswd as well.. *NOTE* you don't have to bee root to try this. The test should run OK for any user who can create a directory in /tmp. begin 755 tryit.sh M(R$O8FEN+W-H"G5M87-K(#`W-PI41$E2/2]T;7`O7U]-2U!!4U-71%]&04E, M7U\*+V)I;B]M:V1I