Skip to content

Fix maximum number of arenas in op_initialize() #1305

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

Conversation

ldorau
Copy link
Contributor

@ldorau ldorau commented May 9, 2025

Description

Number of arenas greater than 253 causes
the "Resource temporarily unavailable" error
on a machine with 96 cores.

Checklist

  • Code compiles without errors locally
  • All tests pass locally
  • CI workflows execute properly

@ldorau ldorau requested a review from a team as a code owner May 9, 2025 09:26
@ldorau ldorau requested a review from lplewa May 12, 2025 06:36
@ldorau
Copy link
Contributor Author

ldorau commented May 12, 2025

@lplewa please review

@ldorau ldorau force-pushed the Fix_maximum_number_of_arenas_in_op_initialize branch from 3596017 to 77bd1f6 Compare May 12, 2025 08:36
@ldorau ldorau requested a review from bratpiorka May 12, 2025 08:38
LOG_ERR("Could not create arena.");
// EAGAIN - means that a memory allocation failure occurred
// (2 * utils_get_num_cores()) is the required minimum number of arenas
if (err == EAGAIN && (i >= (2 * utils_get_num_cores()))) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If user set arenas number param, we should create all of them or fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Number of arenas greater than 253 causes
the "Resource temporarily unavailable" error
on a machine with 96 cores.

Signed-off-by: Lukasz Dorau <[email protected]>
@ldorau ldorau force-pushed the Fix_maximum_number_of_arenas_in_op_initialize branch from 77bd1f6 to fd7a862 Compare May 13, 2025 06:26
@lukaszstolarczuk
Copy link
Contributor

👍

@ldorau ldorau requested a review from lplewa May 13, 2025 09:03
@lukaszstolarczuk lukaszstolarczuk merged commit 43d33c2 into oneapi-src:main May 13, 2025
166 of 170 checks passed
@ldorau ldorau deleted the Fix_maximum_number_of_arenas_in_op_initialize branch May 13, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants