From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roger Larsson Subject: Re: [RFC] Copy on First Read? Date: Mon, 10 Jul 2006 12:25:46 +0200 Message-ID: <200607101225.46928.roger.larsson@norran.net> References: <200607100904.44983.roger.larsson@norran.net> <20060710082711.GD15380@schatzie.adilger.int> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from ns.skekraft.net ([213.199.96.131]:20964 "EHLO mail.skekraft.net") by vger.kernel.org with ESMTP id S932374AbWGJKZs (ORCPT ); Mon, 10 Jul 2006 06:25:48 -0400 Received: from icd.localnet (78.net216.skekraft.net [84.244.216.78]) by mail.skekraft.net (Postfix) with ESMTP id 7A6CCA405D for ; Mon, 10 Jul 2006 12:25:47 +0200 (CEST) To: linux-fsdevel@vger.kernel.org In-Reply-To: <20060710082711.GD15380@schatzie.adilger.int> Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Monday 10 July 2006 10:27, Andreas Dilger wrote: > On Jul 10, 2006 09:04 +0200, Roger Larsson wrote: > > I have been thinking about a file system that uses Copy On First Read. > > - - - > It doesn't sound significantly different than a regular log-structured > filesystem. You still need a cleaner thread to move files around and > keep the free space contiguous. It is needed but shouldn't have that much to do. Unless most files are never read... > Since this is (in essence) data journaling > all writes, you need to have double the disk bandwidth in order to rewrite > all of the files that are read. Not double since it is only the first read after a write that needs to be rewritten. My assumption is that most files are written fewer times than they are read. And the read for the copy is free since that was what triggered it. Config files - few changes, many reads. Media files - one write, (probably) many reads. Office files - more reads than writes. Log files - many writes, few reads. . . . /RogerL