Re: [Ext2-devel] Re: [RFC, PATCH] Reservation based ext3 preallocation

Andrew Morton
2004-04-03T01:48:54Z

Mingming Cao <cmm@us.ibm.com> wrote:
>
> Hi Andrew,
> Here is the second version of the ext3, mostly bug fixes and made the
> changes you have suggested last time.

Great, thanks.

> Besides enable/disable the
> reservation feature, I am thinking to enable the feature that could set
> the the default reservation window size(in blocks) when the fs is
> mounted. just one single mount option:"prealloc_window=n". When n=0,
> it means turns off, when n>0, it means on, and the ext3 default
> reservation window size for each file is n blocks(or 8 blocks, if 0< n <
> 8).

hm, maybe. We should probably also provide a per-file ext3-specific ioctl
to allow specialised apps to manipulate the reservation size.

And we should grow the reservation size dynamically. I've suggested that
we double its size each time it is exhausted, up to some limit. There may
be better algorithms though.

This work doesn't help us with the slowly-growing logfile or mailbox file
problem. I guess that would require on-disk reservations, or a new
`chattr' hint or such.