Re: mmap() is slower than read() on SCSI/IDE on 2.0 and 2.1

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Tue, 15 Dec 1998 10:53:11 +0000


On Mon, Dec 14, 1998 at 08:58:41PM +0000, Stephen C. Tweedie wrote:
> It will be pretty simple to add a soft-page-fault fencepost to the page
> cache to allow us to prime the next readahead chunk before we have
> finished accessing the current one in the case of sequential access,
> which will allow us to sustain even faster sequential IO rates on fast
> disks.

This can probably be made self tuning:

If recent faults are in ascending page order,
And this fault requires a synchronous read,
Then the fencepost-to-end-of-readahead interval needs to be larger.

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/