Re: [RFC] Parallelize IO for e2fsck

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Bodo Eggert <7eggert@...>
Cc: Alan Cox <alan@...>, Andreas Dilger <adilger@...>, <Valdis.Kletnieks@...>, David Chinner <dgc@...>, Valerie Henson <val@...>, <linux-fsdevel@...>, <linux-ext4@...>, <linux-kernel@...>, Theodore Ts'o <tytso@...>, Andreas Dilger <adilger@...>, Ric Wheeler <ric@...>
Date: Thursday, January 24, 2008 - 7:08 pm

On Thu, Jan 24, 2008 at 06:32:15PM +0100, Bodo Eggert wrote:

I don't think that's something that would require finetuning on a
per-application basis - the kernel should tell all applications once to
reduce memory consumption and write a fat warning to the logs (which
will on well-maintained systems be mailed to the admin).

Your "and tell them how much to use" wouldn't work for most applications 
- e.g. I've worked the last weeks with a computer with 512 MB RAM and no 
Swap, which means usually only 200 MB of free RAM. I've gotten quite 
used to git aborting with "fatal: Out of memory, malloc failed" when 
200 MB weren't enough for git, and I don't think there is any reasonable 
way for git to reduce the memory usage while continuing to run.

In practice, there is a small number of programs that are both the
common memory hogs and should be able to reduce their memory consumption
by 10% or 20% without big problems when requested (e.g. Java VMs,
Firefox and databases come into my mind).

And from a performance point of view letting applications voluntarily 
free some memory is better even than starting to swap.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] Parallelize IO for e2fsck, Bodo Eggert, (Thu Jan 24, 1:32 pm)
Re: [RFC] Parallelize IO for e2fsck, Adrian Bunk, (Thu Jan 24, 7:08 pm)
Re: [RFC] Parallelize IO for e2fsck, Theodore Tso, (Thu Jan 24, 7:40 pm)
Re: [RFC] Parallelize IO for e2fsck, KOSAKI Motohiro, (Sat Jan 26, 8:32 am)
Re: [RFC] Parallelize IO for e2fsck, Zan Lynx, (Thu Jan 24, 8:25 pm)
Re: [RFC] Parallelize IO for e2fsck, Andreas Dilger, (Fri Jan 25, 7:09 am)
Re: [RFC] Parallelize IO for e2fsck, Zan Lynx, (Fri Jan 25, 8:55 pm)
Re: [RFC] Parallelize IO for e2fsck, KOSAKI Motohiro, (Sat Jan 26, 7:56 am)
Re: [RFC] Parallelize IO for e2fsck, Andreas Dilger, (Thu Jan 24, 6:07 pm)