News for hackers. Stuff that matters.
Re:Put an io_uring on it – Exploiting the Linux Kernel by alberth on Friday June 16, 2023 @08:51AM (#36355731)
Does FreeBSD have anything similar to io_uring?

My understanding is kqueue isn’t the proper comparison.

Re:Put an io_uring on it – Exploiting the Linux Kernel by loeg on Friday June 16, 2023 @12:02PM (#36358925)
> Does FreeBSD have anything similar to io_uring?

No. (Not for security reasons, but for lack of an army of motivated and talented developers like Jens Axboe et al.)

> My understanding is its incorrect to compare to kqueue.

Right. kqueue is more like an extended version of epoll.

Re:Put an io_uring on it – Exploiting the Linux Kernel by hedora on Friday June 16, 2023 @05:25PM (#36364123)
Well, it does, in that most modern hardware devices communicate over PCIe via SQ/CQ pairs, and I'm pretty sure that include virtualization device interfaces.

A lot of people are coming to the conclusion that io_uring's userspace interface is fundamentally insecure. That couldn't be farther from the truth. I've read the spec (which is only a few pages). I could implement + security validate both sides in a day or two (and have done similar in the past).

Re:Put an io_uring on it – Exploiting the Linux Kernel by drewg123 on Friday June 16, 2023 @12:21PM (#36359241)
kqueue is most comparable to epoll.

In a way, async sendfile is like iouring in that a web / file server does not have to supply a blocking thread context to wait for io -- once data arrives from the storage driver, its pushed through the TCP stack in the storage driver's ithread context. But its just that single sequence.

Re:Put an io_uring on it – Exploiting the Linux Kernel by alberth on Friday June 16, 2023 @01:22PM (#36360379)
Drew, beyond async sendfile which you’ve already done - does Netflix have any plans to bring more general purpose iouring-like functionality to FreeBSD?

(Thank you & the team for all you do)

Re:Put an io_uring on it – Exploiting the Linux Kernel by drewg123 on Sunday June 18, 2023 @08:09PM (#36385838)
Not that I'm aware of. The sendfile path is our hottest path, and that's already improved immensely by async sendfile.