-
Notifications
You must be signed in to change notification settings - Fork 654
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 page size support in mmap / sys::mman #1194
Comments
First you'll need to add the new symbols to libc, and make a PR to github.com/rust-lang/libc . Then you can add them to Nix. |
That mean I probably need to open an issue at libc (or unsolicited PR right away) ? |
The PR got merged at libc. How do I proceed now, should I override the libc version to start working on a PR (and update that back when the next release gets out) ? Or should I wait for the next libc release ? |
Yes. You can set Nix's libc version to use a git hash for now. |
Hmm, I need to add a bunch of flags to mmap, but this is an exclusive set of values on several flag bits. (That also only make sense if another flag is set). Is this something where I should declare a third type and add an extra parameter to mmap, or can this be simply added in the bit flag without causing a mess ? |
Since linux 3.8 there are additional flags to mmap (
and possibly madvisenot madvise) that allow specifying what size of huge page should be used.http://man7.org/linux/man-pages/man2/mmap.2.html
How could support for those be added to nix ?
The text was updated successfully, but these errors were encountered: