Re: read perf improved by mounting ext2?

From: Jens Axboe (
Date: Tue Apr 24 2001 - 04:14:02 EST

On Tue, Apr 24 2001, Kurt Garloff wrote:
> > You wouldn't happen to have 4kB ext2 filesystems on those?
> Sure I do.
> > When ext2 mounts, it sets the soft blocksize to that then, I would expect
> > this to give at least some benefit over using 1kB blocks (as your IDE
> > partition otherwise would have).
> Why? Are the request sizes larger this way? This would mean that the
> overhead is very significant, turning a max of 26MB/s into 16MB/s!

Because you'll be doing I/O on 4kB entries at least, and the overhead of
merging a 128kB request into the queue is much smaller this way. But
yes, 16 -> 26 seems quite a large win, I wouldn't expect this much
(unless you get no merging in any of the cases, then I suspect the 4kB
would be an even bigger win)

> If so, shouldn't we try to get the same effect also for the whole disk or
> other filesystems? Most notably reiser?

I would expect reiser to do the same. Setting the soft block size higher
is not required though, users are free to submit 4kB buffer heads even
for devices that have 1kB set. By default, it doesn't happen though.

Jens Axboe

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Apr 30 2001 - 21:00:10 EST