Better test case timings: I changed from doing entire linear write testing to just touching the pages, to take memory bandwidth out of the equation. VirtualAlloc takes 0ms on 4k pages, 6ms on 2mb pages. Fault handling takes 60ms on 4k pages, 0ms on 2mb pages. So that's that.
-
-
PrefetchVirtualMemory made it worse, SetWorkingSetSize/VirtualLock made it worse, etc. I have posted example code at https://github.com/cmuratori/largepages … if anyone wants to try their hand at making the 4k case go faster. I'd love to hear about solutions.
-
Alright, did not see this. It'll probably take some time but I'd like to dig into this rabbit hole.
End of conversation
New conversation -
-
-
They might not be paged from the start. Have you tried this: PrefetchVirtualMemory ?
-
Yep, and it only made things worse AFAICT, although since that is not an API I was familiar with, I may not have done it right? If you are able to get a speedup using additional calls such as PrefetchVirtualMemory, please let me know because I am curious.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.