Re: [RFC] Parallelize IO for e2fsck

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Chinner <dgc@...>
Cc: <linux-fsdevel@...>, <linux-ext4@...>, <linux-kernel@...>, Theodore Ts'o <tytso@...>, Andreas Dilger <adilger@...>, Ric Wheeler <ric@...>
Date: Thursday, January 17, 2008 - 9:43 pm

On Jan 17, 2008 5:15 PM, David Chinner <dgc@sgi.com> wrote:

That was one of my first concerns - how to avoid overflowing memory?
Whenever I screw it up on e2fsck, it does go, oh, 2 times slower due
to the minor detail of every single block being read from disk twice.
:)

I have a partial solution that sort of blindly manages the buffer
cache.  First, the user passes e2fsck a parameter saying how much
memory is available as buffer cache.  The readahead thread reads
things in and immediately throws them away so they are only in buffer
cache (no double-caching).  Then readahead and e2fsck work together so
that readahead only reads in new blocks when the main thread is done
with earlier blocks.  The already-used blocks get kicked out of buffer
cache to make room for the new ones.

What would be nice is to take into account the current total memory
usage of the whole fsck process and factor that in.  I don't think it
would be hard to add to the existing cache management framework.
Thoughts?


Thanks!  It's solving a rather simpler problem than XFS check/repair. :)

-VAL
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] Parallelize IO for e2fsck, Valerie Henson, (Wed Jan 16, 5:30 pm)
Re: [RFC] Parallelize IO for e2fsck, Andreas Dilger, (Mon Jan 21, 7:00 pm)
Re: [RFC] Parallelize IO for e2fsck, David Chinner, (Mon Jan 21, 11:38 pm)
Re: [RFC] Parallelize IO for e2fsck, Bryan Henderson, (Tue Jan 22, 1:42 pm)
Re: [RFC] Parallelize IO for e2fsck, Andreas Dilger, (Tue Jan 22, 3:05 am)
Re: [RFC] Parallelize IO for e2fsck, David Chinner, (Tue Jan 22, 4:16 am)
Re: [RFC] Parallelize IO for e2fsck, , (Tue Jan 22, 12:17 am)
Re: [RFC] Parallelize IO for e2fsck, Andreas Dilger, (Tue Jan 22, 3:00 am)
Re: [RFC] Parallelize IO for e2fsck, Theodore Tso, (Tue Jan 22, 10:40 am)
Re: [RFC] Parallelize IO for e2fsck, Pavel Machek, (Mon Jan 28, 3:30 pm)
Re: [RFC] Parallelize IO for e2fsck, Theodore Tso, (Mon Jan 28, 3:56 pm)
Re: [RFC] Parallelize IO for e2fsck, , (Tue Jan 29, 4:29 am)
Re: [RFC] Parallelize IO for e2fsck, Pavel Machek, (Mon Jan 28, 4:01 pm)
Re: [RFC] Parallelize IO for e2fsck, KOSAKI Motohiro, (Sun Feb 3, 9:51 am)
Re: [RFC] Parallelize IO for e2fsck, Arnaldo Carvalho de Melo, (Tue Jan 22, 10:57 am)
Re: [RFC] Parallelize IO for e2fsck, Alan Cox, (Tue Jan 22, 9:05 am)
Re: [RFC] Parallelize IO for e2fsck, David Chinner, (Thu Jan 17, 9:15 pm)
Re: [RFC] Parallelize IO for e2fsck, Valerie Henson, (Thu Jan 17, 9:43 pm)