News: 0001546920

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Direct I/O For DMA-BUF Can Yield A Big Performance Win

([Hardware] 80 Minutes Ago Direct I/O DMA-BUF)


Smart device manufacturer HONOR has posted a patch series adding direct I/O support to DMA-BUF with the "DMA_BUF_IOCTL_RW_FILE" flag. In turn this direct I/O use can yield significant throughput improvements and lower latency to help with AI model loading, real-time data streaming, and other uses.

The newest patch series was posted today for DMA_BUF_IOCTL_RW_FILE to enable direct I/O with [1]DMA-BUF . The aim is to allow direct I/O support to avoid the heavy time spent within the page cache and memory copy code-paths and higher latency and power use observed in buffered I/O mode when dealing with UFS storage.

With the tests by HONOR, throughput on UFS4.0 storage capable of 4GB/s while using DMA-BUF was boosted from 1032MB/s to 3776MB/s with these patches! There was also no longer any page-cache overhead and eliminating memory copies via the direct path to lower RAM use. The code is also showing lower latency than using UDMABUF.

HONOR is working on this support for AI model loading, real-time data streaming, task snapshot storage, and other uses. Those interested in this work can learn more via [2]this patch series .



[1] https://www.phoronix.com/search/DMA-BUF

[2] https://lore.kernel.org/dri-devel/20250516092148.12778-1-tao.wangtao@honor.com/



MorrisS.

I simply try to aid in letting the light of historical truth into that
decaying mass of outworn thought which attaches the modern world to
medieval conceptions of Christianity, and which still lingers among us --
a most serious barrier to religion and morals, and a menace to the whole
normal evolution of society.
-- Andrew D. White, author, first president of Cornell University, 1896