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

[CPU] Avoid printing mbind errno message to stderr #23874

Conversation

EgorDuplensky
Copy link
Contributor

@EgorDuplensky EgorDuplensky commented Apr 4, 2024

Details:

  • If a process lacks CAP_SYS_NICE capability, mbind fails with an error "Operation not permitted". We should either ignore the result (just log) or throw an exception. Also, as an option, we could check if CAP_SYS_NICE is set before performing any mbind related logic.
  • For now just log to the debug

Issues:

@EgorDuplensky
Copy link
Contributor Author

@sunxiaoxia2022 @wangleis FYI

@xczhai xczhai self-requested a review April 7, 2024 05:28
Copy link
Contributor

@xczhai xczhai left a comment

Choose a reason for hiding this comment

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

Indeed, it should be dumped to debug info.

@EgorDuplensky
Copy link
Contributor Author

@maxnick Could you please take a look?

@maxnick maxnick added this to the 2024.2 milestone Apr 11, 2024
@EgorDuplensky EgorDuplensky force-pushed the avoid_printing_errno_msg_to_stderr branch from e2bdf92 to 615ece4 Compare April 15, 2024 16:23
@maxnick maxnick added this pull request to the merge queue Apr 16, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 16, 2024
@maxnick maxnick added this pull request to the merge queue Apr 16, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 16, 2024
@maxnick maxnick added this pull request to the merge queue Apr 16, 2024
Merged via the queue into openvinotoolkit:master with commit 6e961cd Apr 16, 2024
109 checks passed
@maxnick maxnick deleted the avoid_printing_errno_msg_to_stderr branch April 16, 2024 17:04
alvoron pushed a commit to alvoron/openvino that referenced this pull request Apr 29, 2024
…3874)

### Details:
- If a process lacks CAP_SYS_NICE capability, mbind fails with an error
"Operation not permitted". We should either ignore the result (just log)
or throw an exception. Also, as an option, we could check if
CAP_SYS_NICE is set before performing any mbind related logic.
 - For now just log to the debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: CPU OpenVINO CPU plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: mbind failed: Operation not permitted
6 participants