by cturner · 9y ago · 0 comments
One of the justifications: it removes the need to copy data between kernel/user-space.
KTLS strikes me as inelegant. Socket programming requires you to reason about your frames on the wire. Proto-socket features complicate this.
A unikernel approach would allow us to eliminate unnecessary copies, and could be done with more elegance than KTLS.
The kTLS paper showed pretty small speedups, so maybe the real motivation is TLS hardware offload.
What would happen if you used special instructions to try to implement a non-cache-polluting memcpy? Or is that even possible? It's been a while but I seem to think that modern CPUs have a variety of cache control instructions. Zero copy is great but it can be a PITA.