-
Notifications
You must be signed in to change notification settings - Fork 109
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
Provide option to CMake for Page Size #664
Conversation
Hopefully addresses #663 |
@SchrodingerZhu would you be able to see if this fixes your problem. |
will try this after work |
Sorry for the noise. git seems to have strange behaviour when checking out pr/head so my local change was not overwritten, which makes me think the issue was fixed. The fix is not working. Such macro is undefined on platforms without a fixed page size.
Gives Actually, the corresponding header says
If this is not the on the perf-critical path, I suggest use |
Inspected the code a little, it seems that a dynamic page size demands too many changes and may impact negatively on the performance. Is it possible to allow |
I would prefer the second. The first might have issues with cross compiling, so I wouldn't want to always run I think we could make the dynamic page size work, but it is more effort than I have time for, and would be pretty subtle to review the changes. |
This uses the PAGESIZE constant from the unistd.h on POSIX. This should make the code more resilient to being compiled on platforms with different page sizes.
Co-authored-by: Nathaniel Filardo <105816689+nwf-msr@users.noreply.github.com>
@SchrodingerZhu can this be used for your use case? |
Yes. I can workaround the issue with this patch |
This uses the PAGESIZE constant from the unistd.h on POSIX. This should make the code more resilient to being compiled on platforms with different page sizes.