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
[Linux] psutil.tests.test_posix.TestProcess.test_nice fails under non-realtime scheduling policy #2378
Comments
Does this mean |
To be honest I'm not sure what the correct solution is, that's why I opened this as an issue rather than a PR. I think the only real issue here is with
Perhaps we should mirror |
Summary
Description
The following test fails when running under a non-realtime scheduling policy on Linux:
According to
sched(7)
:...
It would seem that
ps(1)
interprets this as thenice
value being wholly meaningless under such scheduling policies, and simply outputs-
, despite the fact that it can still be set and retrieved. Here's the source: https://gitlab.com/procps-ng/procps/-/blob/c415fc86452c933716053a50ab1777a343190dcc/src/ps/output.c#L703-711Minimal reproducer:
The text was updated successfully, but these errors were encountered: