Is there a way to read a file into memory using DMA in Linux?

1.3k views Asked by At

Say, I have a huge file which I want to load into memory. Is it possible to use the DMA to quickly load the data from the file into the memory in Linux? If so, how?

1

There are 1 answers

0
Ignacio Vazquez-Abrams On

If DMA is available then the driver is probably already using it. If you want high-speed direct access to a file then use mmap(2) instead of second-guessing the OS.