Conversation

how do i get lowest possible datagram latency on Linux these days? io_uring? dpdk? raw sockets? running a kernel with real time patches (recent NixOS boot.kernelPackages = pkgs.linuxPackages-rt) dedicated machines, dedicated gigabit ethernet link(s), rt scheduling (jack audio)
2
3
looking into dpdk it seems that this could in principle be used for hard real time applications dedicated cores interact with nics directly using shared memory (dram or cache) and cores uses polling receive
2
1
Replying to
the absolute lowest latency answer is use a smart nic, the second lowest latency is run in a kernel thread, after that is probably cpu affinity and io_uring. though it also matters whether you're talking about worst-case, average, or 90th percentile
1
1
Replying to and
DPDK is basically a framework for writing a "unikernel" for packet processing. ...The unfortunate part is that you're effectively having to co-exist with Linux. That includes the scheduler, other tasks, etc...
1
1