From owner-freebsd-hackers Sat May 15 8: 9:37 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from sabre-wulf.nvg.ntnu.no (sabre-wulf.nvg.ntnu.no [129.241.210.67]) by hub.freebsd.org (Postfix) with ESMTP id 2E92314F87 for ; Sat, 15 May 1999 08:09:35 -0700 (PDT) (envelope-from roart@nvg.ntnu.no) Received: from phoenix.nvg.ntnu.no ([IPv6:::ffff:129.241.210.108]:421 "EHLO phoenix.nvg.ntnu.no" ident: "roart") by sabre-wulf.nvg.ntnu.no with ESMTP id <50122-3942>; Sat, 15 May 1999 17:09:20 +0200 Date: Sat, 15 May 1999 17:09:12 +0200 (MET DST) From: =?iso-8859-1?Q?Roar_Thron=E6s?= To: Matthew Dillon Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: large master.passwd In-Reply-To: <199905151425.HAA09266@apollo.backplane.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 15 May 1999, Matthew Dillon wrote: > :> : > :> :On a site with 20k users in the master.passwd, and where NIS is not > :> :trusted, the master.passwd is distributed to each workstation. > :> :The pwd.db and spwd.db are sized around 10Mb. > :> : > :> :Sometimes, those .db files get corrupt. > :> :I suspect it has something to do with the machines being reset etc before > :> :the sync is finished. (The machines are dual-boot, and there are a lot of > :> :users around.) > :> : > :> :I did some patching, and have not seen corrupted .db-files since. > :> : > :> :So how usable is this patch? > :> :Worth intregrating? > :> > :> What version of FreeBSD are you running? mmap is used heavily with the > :> password DBM's and at least one mmap bug known to cause corruption in > :> those files was fixed a month or two ago. I do not remember whether it > :> was backported to 2.2.x, though. > : > :2.2.8R. > :But planning to upgrade the workstations to 3.1R/3.2R soon. > : > :-Roar Thronęs > > Ok. I'm pretty sure the bug related to the database corruption has > been fixed. It may even be fixed in the 2.2.x branch ( post 2.2.8 ), > but I'm not sure there. If this is the bug I think it is, it is fixed > in 3.x and 4.x. > > Your hack should fix the problem temporarily. One of the mmap() bugs > was related to page unaligned operations. By changing the > cache size from 2K to 8K you probably worked around the bug sufficiently > for your purposes. Sorry. The cache size patch was present when there were corrupt .dbs. -Roar Thronęs To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message