Re: [RFC] Parallelize IO for e2fsck

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Chinner
Date: Monday, January 21, 2008 - 8:38 pm

On Mon, Jan 21, 2008 at 04:00:41PM -0700, Andreas Dilger wrote:

And while fsck is running, some other program runs that uses
memory and blows your carefully calculated paramters to smithereens?

I think there is a clear need for applications to be able to
register a callback from the kernel to indicate that the machine as
a whole is running out of memory and that the application should
trim it's caches to reduce memory utilisation.

Perhaps instead of swapping immediately, a SIGLOWMEM could be sent
to a processes that aren't masking the signal followed by a short
grace period to allow the processes to free up some memory before
swapping out pages from that process?

With this sort of feedback, the fsck process can scale back it's
readahead and remove cached info that is not critical to what it
is currently doing and thereby prevent readahead thrashing as
memory usage of the fsck process itself grows.

Another example where this could be useful is to tell browsers to
release some of their cache rather than having the VM swap it out.

IMO, a scheme like this will be far more reliable than trying to
guess what the optimal settings are going to be over the whole
lifetime of a process....

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group
-
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, 2:30 pm)
Re: [RFC] Parallelize IO for e2fsck, David Chinner, (Thu Jan 17, 6:15 pm)
Re: [RFC] Parallelize IO for e2fsck, Valerie Henson, (Thu Jan 17, 6:43 pm)
Re: [RFC] Parallelize IO for e2fsck, Andreas Dilger, (Mon Jan 21, 4:00 pm)
Re: [RFC] Parallelize IO for e2fsck, David Chinner, (Mon Jan 21, 8:38 pm)
Re: [RFC] Parallelize IO for e2fsck, Valdis.Kletnieks, (Mon Jan 21, 9:17 pm)
Re: [RFC] Parallelize IO for e2fsck, Andreas Dilger, (Tue Jan 22, 12:00 am)
Re: [RFC] Parallelize IO for e2fsck, Andreas Dilger, (Tue Jan 22, 12:05 am)
Re: [RFC] Parallelize IO for e2fsck, David Chinner, (Tue Jan 22, 1:16 am)
Re: [RFC] Parallelize IO for e2fsck, Alan Cox, (Tue Jan 22, 6:05 am)
Re: [RFC] Parallelize IO for e2fsck, Theodore Tso, (Tue Jan 22, 7:40 am)
Re: [RFC] Parallelize IO for e2fsck, Arnaldo Carvalho de Melo, (Tue Jan 22, 7:57 am)
Re: [RFC] Parallelize IO for e2fsck, Bryan Henderson, (Tue Jan 22, 10:42 am)
Re: [RFC] Parallelize IO for e2fsck, Pavel Machek, (Mon Jan 28, 12:30 pm)
Re: [RFC] Parallelize IO for e2fsck, Theodore Tso, (Mon Jan 28, 12:56 pm)
Re: [RFC] Parallelize IO for e2fsck, Pavel Machek, (Mon Jan 28, 1:01 pm)
Re: [RFC] Parallelize IO for e2fsck, david, (Tue Jan 29, 1:29 am)
Re: [RFC] Parallelize IO for e2fsck, KOSAKI Motohiro, (Sun Feb 3, 6:51 am)