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 …
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...
-
-
Right, and the CQE is the most natural place to do it. As it so happens, there's 32 bits free there, the flags are totally unused. So one flag could be "this is a buffer index", which leaves enough room for 2B buffers. I think that should suffice :-)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.