Skip to content

Conversation

@fuguiKz
Copy link
Contributor

@fuguiKz fuguiKz commented Dec 26, 2025

Fixes #2024.

Adds a short FAQ entry explaining the "Failed to set up priority Highest for thread" message on Linux (CAP_SYS_NICE / setcap), and suggests using setcap instead of running the whole benchmark as root.

@timcassell
Copy link
Collaborator

It was disabled in #2924, cc @filzrev

@filzrev
Copy link
Contributor

filzrev commented Dec 26, 2025

#2924 suppress setting Process priority on non-Windows environment.
Setting Thread priority behavior is not changed by this PR.

And reported behavior seems not occurred on CI tests.

Copy link
Collaborator

@timcassell timcassell left a comment

Choose a reason for hiding this comment

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

I see. The comments in ThreadExtensions suggest it was used to also set the thread priority in the generated project, but it looks like it was either never implemented, or removed at some point (difficult to determine from the git history).

Thanks @fuguiKz

@timcassell timcassell merged commit cb5d392 into dotnet:master Dec 26, 2025
1 check passed
@timcassell timcassell added this to the v0.16.0 milestone Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add information to the docs about thread priority (Linux)

3 participants