Re:Nanolog supports logging with 7 ns median latency
by gpderetta on Saturday August 24, 2024 @07:09AM
(#41337272)
I'm waiting for this to become mainstream: https://lwn.net/Articles/869140/
It could enable a full user space uring without the need of kernel side polling.
Re:Nanolog supports logging with 7 ns median latency
by geertj on Saturday August 24, 2024 @05:25PM
(#41341651)
Interesting, thanks for sharing. I did some digging on the linux-kernel mailing list and it seems that after the first patch series in Dec ‘21 and the LPC talk there was no further work on this. Too bad if true. Also I wasn’t able to easily find which hardware supports this today. I did see a reference to a RISC-V project that is adding a similar feature.
And in fact ... the wait-free wakeup part of this is already there. Now that io_uring has futex support, a producer can enable kernel-side busy polling on the uring, and then submit a FUTEX_WAKE to the ring without doing any sys calls. This Github issue [1] has a nice description.
[1] https://github.com/axboe/liburing/issues/385