nonblocking disk read again

Helge Hafting (helge.hafting@idb.hist.no)
Wed, 13 Oct 1999 11:23:55 +0200


>It would be nice if one didn't have to hand the request to
>a worker thread if the file is already in memory,
>i.e. if sendfile() was able to return EWOULDBLOCK if
>the read operation would block because the data wasn't in core.

I see a problem here. First - sendfile() will take some time
even for a file in memory. Particularly a really big file.
So you'll be blocking for a while,
possibly delaying requests coming in via other network interfaces.
Some other cpu could serve them.

Helge Hafting

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