On Thu, 8 Feb 2001, Pavel Machek wrote: > > > > There are currently no other alternatives in user space. You'd have to > > create whole new interfaces for aio_read/write, and ways for the kernel to > > inform user space that "now you can re-try submitting your IO". > > Why is current select() interface not good enough? Ehh.. One major reason is rather simple: disk request wait times tend to be on the order of sub-millisecond (remember: if we run out of requests, that means that we have 256 of them already queued, which means that it's very likely that several of them will be freed up in the very near future due to completion). The fact is, that if you start doing write/select loops, you're going to waste a _large_ portion of your CPU speed on it. Especially considering that the select() call would have to go all the way down to the ll_rw_blk layer to figure out whether there are more requests etc. So there is (a) historical reasons that say that regular files can never wait and EAGAIN is not an acceptable return value and (b) practical reasons for why such an interface would be a bad one. There are better ways to do it. Either using threads, or just having a better aio-like interface. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Manfred Spraul
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Linus Torvalds
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Andre Hedrick
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Marcelo Tosatti
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Jens Axboe
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Linus Torvalds
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Marcelo Tosatti
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Linus Torvalds
- select() returning busy for regular files [was Re: [Kio... Pavel Machek
- Re: select() returning busy for regular files [was Re: ... Ben LaHaise
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Linus Torvalds
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Ben LaHaise
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Marcelo Tosatti
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Marcelo Tosatti
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Pavel Machek
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Stephen C. Tweedie
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Marcelo Tosatti
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Mikulas Patocka
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Marcelo Tosatti
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Mikulas Patocka
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Marcelo Tosatti