Virtual Placement Granularity and Page Size

What are typical granularities for virtual placement and page size on Win64 platforms? This will be SYSTEM_INFO dwAllocationGranularity and dwPageSize.

On Win32 systems it will be 64k and 4k.

I need to know because I have developed a custom distributor based on VirtualAlloc for a Win32 application and am wondering if my design options on Win64 are saved. I do not have access to the Win64 system.

Thanks in advance!

+5
source share
1 answer

It's the same thing, 64k and 4k on Vista x64. Not sure if this doesn't change some day, the small page size puts severe pressure on the TLB cache, greatly degrading the performance of programs that allocate multi-gigabyte chunks. I also saw some problematic messages saying that I can no longer select large pages at some incomprehensible point during program execution. But this time only a crystal ball is looking.

+6
source

All Articles