In case there are any NT kernel devs listening: from cold start, an exe that touches ~1gb of memory takes over 100ms to do so due to page handling. With 2MB pages enabled, this drops down to 30ms. This suggests to me that a "MEM_REALLY_COMMIT" VirtualAlloc flag would help?
-
-
Don't you think it's simply the price you have to pay for setting up 512 times as many page table entries? And could PrefetchVirtualMemory help in your case (don't know if you're doing I/O or just reserving pages)?
-
I will try adding a PVM right after the VirtualAlloc and see if anything changes. As for it taking 80ms to set up the pagetable entries, while _possible_, we are talking about 300 million cycles here. Maybe that is the cost of 1gb of 4k pagetable entries, but I doubt it?
- 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.