Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
codedokode
· 2y ago · 0 comments
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?
Comments
[–]
wmf
2y ago
The Linux page cache keeps data page-aligned so if you want the data to be unaligned Linux will copy it.
[–]
codedokode
OP
2y ago
What if I don't want to use cache?
[–]
wmf
2y ago
You can use O_DIRECT although that also forces alignment IIRC.
[–]
tedunangst
2y ago
Pull out some RAM sticks.