Re: [PATCH/RFC] Simplified Readahead

From: Nick Piggin
Date: Fri Sep 24 2004 - 19:46:33 EST


Andrew Morton wrote:
Steven Pratt <slpratt@xxxxxxxxxxxxxx> wrote:

Can you expand on the POSIX_FADV_WILLNEED.


It's an application-specified readahead hint. It should ideally be
asynchronous so the application can get some I/O underway while it's
crunching on something else. If the queue is contested then the
application will accidentally block when launching the readahead, which
kinda defeats the purpose.

Yes, the application will block when it does the subsequent read() anyway,
but applications expect to block in read(). Seems saner this way.

Good point. I guess you're right.
-
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/