linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* (fwd) Re: [RFC] mount flag "direct"
@ 2002-09-03 21:48 Peter T. Breuer
  2002-09-03 22:19 ` Anton Altaparmakov
  2002-09-03 23:05 ` David Lang
  0 siblings, 2 replies; 49+ messages in thread
From: Peter T. Breuer @ 2002-09-03 21:48 UTC (permalink / raw)
  To: david.lang; +Cc: linux-kernel

Sorry I'm getting behind with the mail. Meetings, and I'm flying
towmorrow.

> On Tue, 3 Sep 2002, Peter T. Breuer wrote:
> > If it doesn't cause the data to be read twice, then it ought to, and
> > I'll fix it (given half a clue as extra pay ..:-)
> 
> writing then reading the same file may cause it to be read from the disk,
> but reading /foo/bar then reading /foo/bar again will not cause two reads
> of all data.

Hmm. I just did a quick check on 2.5.31, and to me it looks as though
two consequtive reads BOTH drop through to the driver. Yes, I am
certain - I've repeated the experiment 4 times reading the same 400K,
and each time the block driver registers 400 read requests.

> some filesystems go to a lot fo work to orginize the metadata in
> particular in memory to access things more efficiantly, you will have to
> go into each filesystem and modify them to not do this.

Well, I'll have to divert them. Is there not some trick that can be
used? A bitmap mmapped to the device, if that's not nonsensical in
kernel space?

> in addition you will have lots of potential races as one system reads a
> block of data, modifies it, then writes it while the other system does the

Uh, I am confident that there can  be no races with respect to data
writes provided I manage to make the VFS operations atomic via
appropriate shared locking. What one has to get rid of is cached
metadata state. I'm open to suggestions.

> yes this is stuff that could be added to all filesystems, but will the
> filesystem maintainsers let you do this major surgery to their systems?

Depends how a patch looks, I guess.

> for example the XFS and JFS teams are going to a lot of effort to maintain
> their systems to be compatable with other OS's, they probably won't

Yes.

> appriciate all the extra conditionals that you will need to put in to
> do all of this.

I don't see any conditionals. These will be methods, i.e. redirects.
Anyway, what's an if test between friends :-).

> even for ext2 there are people (including linus I believe) that are saying
> that major new features should not be added to ext2, but to a new

I agree! But I wouldn't see adding VFS ops to replace FS-specific
code as a new feature, rather a consolidation of common codes.

> filesystem forked off of ext2 (ext3 for example or a fork of it).

Peter

^ permalink raw reply	[flat|nested] 49+ messages in thread
[parent not found: <02Sep6.161154edt.62237@gpu.utcc.utoronto.ca>]
[parent not found: <20020909181724.GA31153@ravel.coda.cs.cmu.edu>]

end of thread, other threads:[~2002-09-17 11:15 UTC | newest]

Thread overview: 49+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-03 21:48 (fwd) Re: [RFC] mount flag "direct" Peter T. Breuer
2002-09-03 22:19 ` Anton Altaparmakov
2002-09-03 22:42   ` Peter T. Breuer
2002-09-03 22:52     ` Xavier Bestel
2002-09-03 23:44       ` Peter T. Breuer
2002-09-04  7:06         ` Alexander Viro
2002-09-04  9:02           ` Peter T. Breuer
2002-09-04 11:05             ` Anton Altaparmakov
2002-09-04 11:39               ` Peter T. Breuer
2002-09-04 14:13                 ` Anton Altaparmakov
2002-09-05 22:45                   ` Daniel Phillips
2002-09-05 23:06                     ` Anton Altaparmakov
2002-09-05 23:17                       ` Daniel Phillips
2002-09-05 23:24                         ` Anton Altaparmakov
2002-09-06  8:57                           ` Peter T. Breuer
2002-09-06  9:08                             ` Anton Altaparmakov
2002-09-06  9:17                               ` Peter T. Breuer
2002-09-06  9:50                                 ` Lars Marowsky-Bree
2002-09-06 14:10                                   ` Peter T. Breuer
2002-09-06 13:20                                 ` Helge Hafting
2002-09-06 13:22                                 ` Rik van Riel
2002-09-06 13:53                                   ` Peter T. Breuer
2002-09-06 15:32                                     ` Rik van Riel
2002-09-06 14:25                       ` Peter T. Breuer
2002-09-06 17:20                         ` Anton Altaparmakov
2002-09-06 17:33                           ` Daniel Phillips
2002-09-06 19:32                             ` Anton Altaparmakov
2002-09-06 18:29                           ` Peter T. Breuer
2002-09-06 19:30                             ` Anton Altaparmakov
2002-09-09 16:30                           ` Peter T. Breuer
2002-09-17 11:21                             ` Anton Altaparmakov
2002-09-05  8:30                 ` Helge Hafting
2002-09-05  8:43                   ` David Lang
2002-09-05 14:24                   ` Peter T. Breuer
2002-09-05 16:59                     ` David Lang
2002-09-05 23:08                     ` Daniel Phillips
2002-09-06  8:14                     ` Ingo Oeser
2002-09-06  9:06                     ` Helge Hafting
2002-09-04 12:49             ` Ragnar Kjørstad
2002-09-04 12:54               ` Peter T. Breuer
2002-09-04 13:22                 ` Ragnar Kjørstad
2002-09-05  3:36                 ` Edgar Toernig
2002-09-05  3:58                   ` Alexander Viro
2002-09-05 15:59                     ` [RFC] intent-based lookup (was: mount flag "direct") Andreas Dilger
2002-09-03 23:24     ` (fwd) Re: [RFC] mount flag "direct" David Lang
2002-09-04  4:27   ` Kevin O'Connor
2002-09-03 23:05 ` David Lang
     [not found] <02Sep6.161154edt.62237@gpu.utcc.utoronto.ca>
2002-09-07 13:36 ` Peter T. Breuer
     [not found] <20020909181724.GA31153@ravel.coda.cs.cmu.edu>
2002-09-09 18:58 ` Peter T. Breuer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).