The reason why I say this is that it means that instead of doing poll syscall, then get event, then issue new syscall, you can simply issue the recv. As data becomes available, it's consumed as soon as the app runs. No extra round trips, no thread offload. Win/win Now 4x faster!https://twitter.com/axboe/status/1229486613857591296 …
Perhaps something like a IOSQE_INTO_REGISTERED_BUFFER + cqe->res as an index into the array of registered buffers? With a iov or such indicating length of data? Seems pretty crummy :(
-
-
I think we need some programmable logic for it instead of overloading cqe->res.
-
Even with BPF we'd need something in the CQE to signal which buffer was used for the completion... Wondered before whether space for a bit more state in the cqe would have been nice. Anyway, seems like a topic to revisit at a later stage...
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.