Skip to content

Conversation

@shasson5
Copy link
Contributor

@shasson5 shasson5 commented Dec 24, 2025

What?

Prevent huge pages allocation when IPC_CAP_LOCK not present or no reserved huge pages

Why?

Disable kernel warning about deprecated mem lock mechanism
solves issue: #10952

@shasson5 shasson5 requested a review from yosefe December 24, 2025 18:19
yosefe
yosefe previously approved these changes Dec 25, 2025
huge_page_size = ucs_get_huge_page_size();
if (huge_page_size <= 0) {
if ((huge_page_size <= 0) || (ucs_get_huge_pages_count() <= 0) ||
!ucs_sys_get_mlock_cap()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: pls adjust the debug message to write "SHM_HUGETLB is not supported on the system" because CAP_IPC_LOCK absence is specifically disabling SHM_HUGETLB

@yosefe yosefe merged commit af67042 into openucx:master Dec 25, 2025
147 checks passed
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.

2 participants