-
Notifications
You must be signed in to change notification settings - Fork 22
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
Unify the definition of page size #49
Comments
Should this issue also deal with the hardcoded I would suggest removing it entirely, or possibly baking it in to the future unified definition of page size. It should now serve very little purpose with the introduction of allocation policies, prefetching and a new write buffer. @davidklaftenegger Any opinion on this? |
This constant is used for the size of a page, but was hard-coded in various places using various forms (4096, 4096UL, ...). Also, various header files used different definitions / names for it (pagesize, page_size, PAGESIZE). This commit adds a `PAGE_SIZE` constexpr and uses it in all `src` files. Addresses the biggest part of #49. (Does not deal with CACHELINE.)
This constant is used for the size of a page, but was hard-coded in various places using various forms (4096, 4096UL, ...). Also, various header files used different definitions / names for it (pagesize, page_size, PAGESIZE). This commit adds a `PAGE_SIZE` constexpr and uses it in all `src` files. Addresses the biggest part of #49. (Does not deal with CACHELINE.)
I have opened a new issue regarding |
This constant was used for the size of a page, but was hard-coded in various places using various forms (4096, 4096UL, ...). Also, various header files used different definitions / names for it (`pagesize`, `page_size`, `PAGESIZE`). To avoid polluting the namespace and also avoid all discussions on which header file is best to include the definition of the `PAGE_SIZE` constant, we instead pass it as a command-line definition. We also hard-code its value because we want to ensure it is an unsigned, rather than integer that the commented out code to get it from the environment or a simple 4096 would default to. Addresses the biggest part of #49. (Does not deal with CACHELINE.)
Related to the discussion in:
#45 (comment)
ArgoDSM page size should be defined in one module instead of appearing as separate
static const
definitions in multiple modules, and retrieved from there where needed throughout the system.The text was updated successfully, but these errors were encountered: