Re:Myths Programmers Believe about CPU Caches (2018)
by AllanHoustonSt on Thursday November 21, 2019 @03:02PM
(#21598864)
I think DPDK does some user-level trickery to achieve per-core caching through DMA, do you happen to know how they go about it?
Your options here are either to manually invalidate your caches and synchronize with the DMA (e.g. via interrupts), or to request from the OS that the given memory section be entirely uncached; or in some cases, you can get away with a write-through cache policy, if the DMA is only ever reading the memory.