Re: Recursive chmod/chown OOM kills box with 32MB RAM

From: Denis Vlasenko
Date: Thu Feb 02 2006 - 10:15:42 EST


On Sunday 22 January 2006 01:20, Pavel Machek wrote:
> > In the case of reiserfs, it might pin as much as the size of the journal at
> > any time. The default journal is 32MB, which is much too large for a system
> > with only 32MB of ram.
> >
> > You can shrink the log of an existing filesystem. The minimum size is 513
> > blocks, you might try 1024 as a good starting poing.
> >
> > reiserfstune -s 1024 /dev/xxxx
> >
> > The filesystem must be unmounted first.
>
> Could we refuse to mount filesystem unless journal_size <
> physmem_size/2 or something like that?
>
> I was not aware of this trap, and it seems unlikely that users know
> about it...

Maybe reiserfs code should use journal of reduced size on lowmem boxes.
Basically "reiserfstune -s 1024 /dev/xxxx" on-the-fly.
--
vda
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/