[RFC] Using large pages for large hash tables
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 17 09:13:28 PDT 2016
>> Would the same interface work on windows?
>
> Yes, using VirtualAlloc using MEM_LARGE_PAGES flag:
> https://msdn.microsoft.com/fr-fr/library/windows/desktop/aa366887(v=vs.85).aspx
>
> Size can be determined using GetLargePageMinimum(), or a multiple of it.
Thanks a lot for the pointer. With that API one has to use
VirtualFree, correct?
> Do common implementations of malloc allocate (large) pages
> automatically when the allocated size is large enough?
Looks like at least glibc does not.
Cheers,
Rafael
More information about the llvm-commits
mailing list