by willvarfar · 6y ago · 0 comments
The cost of syscalls has gone up massively due to all the mitigations against recent side channel attacks. Batching and async syscalls would be an even bigger win than ever.
Wouldn't it be great if glib or something could adopt new mechanisms and everyone got faster?
You'd still need a syscall to sleep when the ring is empty, and a syscall to wake up the mechanism when the first request is put on an empty ring. But yeah, other than that (and perhaps an "yield" syscall), you could do everything through the ring.
The dynamics and mechanical sympathy of different approaches are changing as hardware goes massively parallel faster than software can.
If the scale of the problem changes, so does the solution. We know this.