Re: [RFC] Parallelize IO for e2fsck

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Valerie Henson <val@...>
Cc: <linux-fsdevel@...>, <linux-ext4@...>, <linux-kernel@...>, Theodore Ts'o <tytso@...>, Andreas Dilger <adilger@...>, Ric Wheeler <ric@...>
Date: Monday, January 21, 2008 - 7:00 pm

On Jan 16, 2008  13:30 -0800, Valerie Henson wrote:

I discussed this with Ted at one point also.  This is a generic problem,
not just for readahead, because "fsck" can run multiple e2fsck in parallel
and in case of many large filesystems on a single node this can cause
memory usage problems also.

What I was proposing is that "fsck.{fstype}" be modified to return an
estimated minimum amount of memory needed, and some "desired" amount of
memory (i.e. readahead) to fsck the filesystem, using some parameter like
"fsck.{fstype} --report-memory-needed /dev/XXX".  If this does not
return the output in the expected format, or returns an error then fsck
will assume some amount of memory based on the device size and continue
as it does today.

If the fsck.{fstype} does understand this parameter, then fsck makes a
decision based on devices, parallelism, total RAM (less some amount to
avoid thrashing), then it can call the individual fsck commands with
"--maximum-memory MMM /dev/XXX" so each knows how much cache it can
allocate.  This parameter can also be specified by the user if running
e2fsck directly.

I haven't looked through your patch yet, but I hope to get to it soon.

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

-
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)