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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux