hn.today

Linux 7.4 Introduces DMA-BUF Support to I/O Path with IO_uring

phoronix.com3 points0 comments
Screenshot of Linux 7.4 Introduces DMA-BUF Support to I/O Path with IO_uring

Linux 7.4 adds infrastructure for reading and writing DMA-BUF memory through io_uring, bringing hardware-buffer sharing into the kernel’s asynchronous I/O path. DMA-BUF lets device drivers and subsystems share memory without copying data through the CPU, a capability already used heavily by GPUs and increasingly in media and networking. Combining it with io_uring could extend zero-copy transfers to storage workflows and reduce data movement overhead.

The feature is opt-in: a file must implement a new operation to support it, and the initial implementation works only with raw NVMe PCIe block devices. Applications register a DMA-BUF through a special mechanism built on io_uring’s registered buffers, then use it with the existing fixed-buffer read and write requests. Kernel changes add an iterator for carrying these buffers through the I/O stack and handle request accounting, buffer lifetime, and invalidation. Block-device DMA-BUFs can be as large as 4 GB. Benchmarks included with the patch series show promising performance, though the report gives no numerical results; broader device support will depend on further implementation.

Read on phoronix.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Four Months of Zig

Four Months of Zig

After four months back with Zig, Anna Liberty built a small-network client library, a typing game, and an N-body simulator, while enjoying Zig’s straightforward development experience. The experience also exposed unfinished tooling, including a built-in fuzzer that did not work, and highlighted the value of local Zig meetups. (gracefulliberty.com)

Ghostty 1.4.0

Ghostty 1.4.0

Ghostty 1.4.0 delivers major performance and memory improvements, complete Kitty graphics support, better SSH integration, and hundreds of fixes. It also patches several security flaws that could enable command execution, crashes, excessive memory use, or file access through malicious terminal content. (ghostty.org)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.