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

Whitebox tests hardcode huge page size as 2M, causing failures when system huge page size differs (e.g., 512M) #1673

Open
guodashun opened this issue Mar 10, 2025 · 0 comments
Labels

Comments

@guodashun
Copy link

When running TBB whitebox tests, some test cases (e.g., those related to huge page memory) hardcode the huge page size as 2MB. If the system is configured with a non-2MB huge page size (e.g., 512MB or other sizes), the test assertions fail, reducing the adaptability of the test suite across environments.

const int HUGE_PAGE_SIZE = 2 * 1024 * 1024;

In my env, the config is:

Hugepagesize:       524288 kB
Hugetlb:               0 kB

so I got the error is:

/home/xxxxx/test/tbbmalloc/test_malloc_whitebox.cpp:xxx: FATAL ERROR: REQUIRE( allocSize == HUGE_PAGE_SIZE ) is NOT correct!
  values: REQUIRE( 536870912 == 2097152 )
  logged: Allocation size have to be aligned on Huge Page size internally.

like this issue #677

This issue may affect CI/CD pipelines or cloud environments where non-2MB huge pages are common. If further debugging data or testing assistance is needed, feel free to request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant