On Monday 07 October 2002 22:14, Andrew Morton wrote:
> Daniel Phillips wrote:
> >
> > This is easy to verify: say you have 100 MB of kernel source stored in, say,
> > 50 different clumps on disk.
>
> Disks use segmentation on their readahead buffers. Typically four-way.
> So they will only buffer four different chunks of disk at a time.
>
> If you're reading from 50 different places on disk, the disk keeps
> invalidating readahead at the segment level.
Sure, and kernel-based physical readahead would not have that problem.
(Kernel-based physical readahead has its own problems, for example: how
do you determine that a given physical block is already cached in an
inode and so should be ignored as a readahead candidate?)
-- Daniel - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:01:00 EST