From owner-freebsd-hackers Mon Apr 14 14:20:54 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA14959 for hackers-outgoing; Mon, 14 Apr 1997 14:20:54 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA14945; Mon, 14 Apr 1997 14:20:49 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.50]) by who.cdrom.com (8.8.5/8.6.11) with SMTP id OAA00883 ; Mon, 14 Apr 1997 14:20:40 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA19330; Mon, 14 Apr 1997 13:55:10 -0700 From: Terry Lambert Message-Id: <199704142055.NAA19330@phaeton.artisoft.com> Subject: Re: vnode as filesystem (crash!) To: mtaylor@cybernet.com (Mark Taylor) Date: Mon, 14 Apr 1997 13:55:10 -0700 (MST) Cc: hackers@freebsd.org, bugs@freebsd.org In-Reply-To: from "Mark Taylor" at Apr 13, 97 02:38:47 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I've come up with a "fix": > 1) In the makefiles script, I cause a 'sync' every 100 files created, > and all is fine- all of the 7500 files get created. > 2) Instead of the /bin/sync in the script, I change kern.update from > the default 30 to 5. All 7500 files get made, no problem. > > So there seems to be a problem with the vm/fs cache? I'd hate to live > with a 5 second update time. Look at the NetBSD ffs_balloc.c and ffs_alloc.c. I believe FreeBSD is missing a number of calls to vnode_pager_setsize() that NetBSD has. There is also a FreeBSD ftruncate() case where if the indirect blocks are not zero, FreeBSD will we itself (NetBSD fixed this too). Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.