Re: [RESEND] [PATCH] readahead:add blk_run_backing_dev

From: Vladislav Bolkhovitin
Date: Thu Jul 16 2009 - 06:38:34 EST



Kurt Garloff, on 07/16/2009 12:52 AM wrote:
Hi,

On Wed, Jul 08, 2009 at 04:40:08PM +0400, Vladislav Bolkhovitin wrote:
I've also long ago noticed that reading data from block devices is slower than from files from mounted on those block devices file systems. Can anybody explain it?

Brainstorming:
- block size (reads on the block dev might be done with smaller size)

As we already found out in this and other threads, smaller "block size", i.e. each request size, is often means better throughput, sometimes much better.

- readahead (do we use the same RA algo for block devs)
- page cache might be better optimized than buffer cache?

Just guesses from someone that has not looked into that area of the
kernel for a while, so take it with a grain of salt.

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