4 ms·
Why is there need to move memory? Hardware cannot DMA data into non-page-aligned memory? Or Linux doesn't want to load non-aligned data?
by codedokode 3y ago
Why is there need to move memory? Hardware cannot DMA data into non-page-aligned memory? Or Linux doesn't want to load non-aligned data?
- wmf 3y agoThe Linux page cache keeps data page-aligned so if you want the data to be unaligned Linux will copy it.
- codedokode 3y agoWhat if I don't want to use cache?
- tedunangst 3y agoPull out some RAM sticks.
- wmf 3y agoYou can use O_DIRECT although that also forces alignment IIRC.