On Tue, 6 Feb 2001, Marcelo Tosatti wrote: > > Its arguing against making a smart application block on the disk while its > able to use the CPU for other work. 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". Could be done. But that's a big thing. > An application which sets non blocking behavior and busy waits for a > request (which seems to be your argument) is just stupid, of course. Tell me what else it could do at some point? You need something like select() to wait on it. There are no such interfaces right now... (besides, latency would suck. I bet you're better off waiting for the requests if they are all used up. It takes too long to get deep into the kernel from user space, and you cannot use the exclusive waiters with its anti-herd behaviour etc). Simple rule: if you want to optimize concurrency and avoid waiting - use several processes or threads instead. At which point you can get real work done on multiple CPU's, instead of worrying about what happens when you have to wait on the disk. 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... Jens Axboe
- 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... 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
- select() returning busy for regular files [was Re: [Kio... 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: select() returning busy for regular files [was Re: ... 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