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.
The problem, if I had to guess, is solely due to the demand-paging nature of the 4k pages. 2mb pages on NT are locked, so they are provisioned in bulk in VirtualAlloc and then there is no faulting (AFAICT). If 4k pages were handled similarly, they would probably be as fast?
-
-
This is also something I am looking into at the moment. It seems like there are many options, do you think you have tried everything or is is simply a quick benchmark to know where you are?
-
I mean I don't think there's much to say about it, unfortunately. 4k pages just suck on cold start because you will spend ~50ms+/gb on useless Windows fault handling, and that's pretty much the end of the story. If there's a way to fix it, I haven't heard what it is :(
- Show replies
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.