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

UCT/MM: Replaced error value with debug log message for shm_unlink #9670

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

shasson5
Copy link
Contributor

@shasson5 shasson5 commented Feb 7, 2024

What

Display log message instead of returning an error when failing on uct_posix_unlink in uct_posix_mem_alloc

Why ?

Prevent UCX init from failing over sporadic "No Such file or directory" error when trying to delete a SHM file.

This PR fix this issue:
https://redmine.mellanox.com/issues/3602767

Also the same error was seen in:
https://redmine.mellanox.com/issues/3730544

@shasson5 shasson5 requested a review from yosefe February 8, 2024 11:08
Copy link
Contributor

@yosefe yosefe left a comment

Choose a reason for hiding this comment

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

LGTM besides minor comment, pls verify it fixed the issue

src/uct/sm/mm/posix/mm_posix.c Outdated Show resolved Hide resolved
@gleon99
Copy link
Contributor

gleon99 commented Feb 11, 2024

@shasson5 please squash

if (status != UCS_OK) {
goto err_close;
}
uct_posix_unlink(md, seg->seg_id, UCS_LOG_LEVEL_DEBUG);
Copy link
Contributor

Choose a reason for hiding this comment

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

UCX_LOG_LEVEL_DIAG

@@ -586,7 +584,7 @@ uct_posix_mem_alloc(uct_md_h tl_md, size_t *length_p, void **address_p,
err_close:
close(fd);
if (!(seg->seg_id & UCT_POSIX_SEG_FLAG_PROCFS)) {
uct_posix_unlink(md, seg->seg_id);
uct_posix_unlink(md, seg->seg_id, UCS_LOG_LEVEL_ERROR);
Copy link
Contributor

Choose a reason for hiding this comment

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

UCS_LOG_LEVEL_WARN

@shasson5 shasson5 requested a review from yosefe February 14, 2024 17:04
@yosefe yosefe merged commit 0a96f85 into openucx:master Feb 15, 2024
134 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.

3 participants