Because when you VirtualAlloc 1gb, if we know the total time plus page faulting to use the memory is 30ms with 2MB pages, one assumes that even with 4k pages if VirtualAlloc did the page prep right there in bulk, it could at least provide something closer to 30ms?
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Slightly related: I wished there was a `VirtualRealloc` function similar to Linux's `mremap` that would reassign the existing pages to a new address range (super cheap op: only editing the VAD tree, no `memcpy` involved), and then append new pages to it as needed.
-
This wouldn't help in your case since you know the memory requirements of your app ahead of time, and want to reserve it all at once but it would be helpful for apps that don't know their upper bound and want to reserve more memory only when needed.
End of conversation
New conversation -
-
-
A new gaming focused OS coming up ?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.