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

From: Andrew Morton
Date: Fri Apr 02 2004 - 20:50:46 EST


Mingming Cao <cmm@xxxxxxxxxx> 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.

-
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/