From owner-freebsd-questions Sat Jan 4 11:03:01 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA08455 for questions-outgoing; Sat, 4 Jan 1997 11:03:01 -0800 (PST) Received: from crh.cl.msu.edu (crh.cl.msu.edu [35.8.1.24]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id LAA08449 for ; Sat, 4 Jan 1997 11:02:58 -0800 (PST) Received: (from henrich@localhost) by crh.cl.msu.edu (8.8.4/8.8.4) id OAA05751; Sat, 4 Jan 1997 14:02:55 -0500 (EST) From: Charles Henrich Message-Id: <199701041902.OAA05751@crh.cl.msu.edu> Subject: Re: Metadata updated every 30 seconds? To: dg@root.com Date: Sat, 4 Jan 1997 14:02:55 -0500 (EST) Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <199701040901.BAA24189@root.com> from David Greenman at "Jan 4, 97 01:01:36 am" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >2) To write out modified inodes. In this case, the writes are delayed to give > the system time to modify/update as many inodes within an inode block > (there are usually 64 inodes per 8K block), or update the block pointers > in the indirect blocks, without having to do a write for every one. The > alternative would be to do a write of the 8K inode block every time a file > was accessed (to update the file access time), and write out an 8K indirect > block every time a new block was allocated to the file. This would be VERY > slow. Right, but in the case of a news spool, with noatime set, files are very very rarely ever modified, they are only created and read. (lack of knowledge warning!) Im assuming that the inode data for a new inode is also written out at update time, if they werent you wouldnt gain anything by doing sync()'s every 30 seconds except for some stability (which frankly on a news spool im not terribly worried about, at about 2-3GB/day my spool fills up rather fast :) -Crh Charles Henrich Michigan State University henrich@msu.edu http://pilot.msu.edu/~henrich