I’m Not Dead yet; The Role of the Operating System in a Kernel-Bypass Era [pdf]
irenezhang.net
irenezhang.net
Jens (the author) has done a great writeup [1]
[0] https://lore.kernel.org/linux-block/20190116175003.17880-1-a... [1] http://kernel.dk/io_uring.pdf
The idea is that the average time to process a packet absolutely must not exceed the average arrival rate, and the sum of spikes in arrival rate must average out over the size of the ring buffer to less than the process rate.
The hamster process pulling from the ring may just be load balancing to a herd of other threads operating under less stringent conditions, so they might be permitted i/o.
The amount of code to operate at the lower level turns out to never be more than a hundred or two lines of code (much less for exanic), but always eliminates latency that comes from doing crap I will just need to undo, or redo differently.
AF_XDP and eBPF suggest the promise of making that code portable, yet running it in the NIC itself, possibly even eliminating a polling thread that uses up a whole core on the host, but it seems to need more support in the library available to the eBPF code. Specifically, it needs better access to (pre-permission-checked and mapped) DMA to host RAM, and precise, accurate timestamps. They don't need to be pretty, but they need to exist.
It is hard to take this paper seriously if it is just a thought experiment and they haven't actually implemented Demikernel. In figure 3 there is a list of the syscalls but that isn't enough to convince me that they have actually implemented Demikernel.