Can you clarify?
As far as I'm aware, dwAllocationGranularity returned via GetSystemInfo determines the MEM_RESERVE alignment and size. Yes, in practice this is always 64KiB but may not always be true in the future.
Additionally, dwPageSize returned via GetSystemInfo determines the alignment and size for MEM_COMMIT which in practice is 4KiB or 16KiB.
Put differently, while an application might be stuck with allocation-granularity reservations, the actual commit is in units of page size, right?
https://learn.microsoft.com/en-us/windows/win32/memory/reser...
Page protections are also based on page size afaik, for example: https://www.softwareverify.com/blog/leaking-memory-with-virt...
Or the way I read it, you might be stuck with a dwAllocationGranularity reservation, but the actual commit increment is in units of dwPageSize.
Ha! You're right! It applies to reservation and mapping, not to committing!
Thank you, it's been a while!