Skip to content
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

Added support for flexible huge page sizes on Linux. #2076

Merged
merged 2 commits into from Feb 1, 2021

Conversation

xmrig
Copy link
Owner

@xmrig xmrig commented Feb 1, 2021

This PR adds support for user configurable huge page sizes on Linux where huge pages with size other than 2 MB are supported. For example #2060 right now Linux on Apple M1 supports only 32 MB hugepages and doesn't support widely supported 2 MB huge pages. Also 32 MB and 64 kB huge pages can be tested on modern Amazon ARM instances with Neoverse N1 CPU (*6g.*)

Config option "huge-pages" extended, now it accepts huge pages size in kB, not only boolean value.
Examples:

  • "huge-pages": 2048, this equal to "huge-pages": true default value for 2 MB huge pages.
  • "huge-pages": 32768, - 32 MB huge pages.
  • "huge-pages": 64, - 64 kB huge pages.

For command line usage added option --hugepage-size. 1 GB pages is not a valid option, since they are already supported in a special way. This PR was checked with 64 kB, 2 MB and 32 MB huge page sizes, but it should support other sizes if it is supported by hardware and Linux.

@xmrig xmrig added this to the v6 milestone Feb 1, 2021
@xmrig xmrig merged commit 0e70974 into dev Feb 1, 2021
@xmrig xmrig deleted the feature-flexible-hugepages branch February 1, 2021 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant