-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Huge Pages #26
Comments
Can this be done as part of #33? |
Yes, and on Linux you don't even need a flag. Linux will automatically merge pages to a huge page when Windows can be passed the Shouldn't be too hard to add a flag to |
Is I think the natural way to request huge pages on linux through
Yeah, we should be able to do this one #31 is implemented. |
Looks like it is for me (x86-64 Arch Linux, Linux 4.10.12):
Yes, it's based on transparent hugepage support.
This requires preallocation of hugepages, something which I've never seen enabled by default.
Maybe we can try |
We should at the very least provide a way to set |
Is this something that can be added backward compatibly after 1.0? |
Yes, I'm confident this can be done backwards compatibly. |
I have some experience with Oracle SGDB (one of the few application using hugepages). If huge pages are needed, the amount of huge pages is always pre-allocated (via sysctl at boot time, or /proc/sys/vm/nr_hugepages), and transparent huge pages is always disabled (via kernel cmdline). I tried to implement this, see https://github.com/tatref/memmap-rs/tree/hugepages
|
Ok that was a stupid issue: the size of the huge page was 2 kiB instead of 2MiB... |
hey! What the status of this? |
What is required to get support for huge pages? Is it just a matter of passing the correct flags to mmap with some checks around alignment and size etc?
The text was updated successfully, but these errors were encountered: