-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[NetBSD] EBUSY on cmdline() #2250
Comments
I see 2 errors:
This is a bug in bpytop because The other error is:
This can be considered a psutil bug, even though I'm not sure how psutil should handle this case. I guess you don't know whether |
Also another question. What psutil version is this (
...is missing some info. I would expect it to look like:
...or
...as per source code: psutil/psutil/arch/netbsd/proc.c Lines 354 to 369 in 7282a92
|
I tried this stress test hoping to reproduce the issue but could not: import psutil
while 1:
for p in psutil.process_iter():
p.cmdline() |
I tried installing bpytop on NetBSD and at some point I got:
@aristocratos, FYI this looks like another missing |
@giampaolo Gonna try at some point in the future to look over the code and check for any other issues for NetBSD and OpenBSD (and add |
@0-wiz-0 Feel free to open a request for NetBSD support in the bpytop repository, with a link to this issue (to remind me of the current problems). |
Thanks for the analysis!
|
This happened just now when running CI tests: https://github.com/giampaolo/psutil/actions/runs/9342019978/job/25709491422.
...which originates from: psutil/psutil/arch/netbsd/proc.c Lines 362 to 366 in 20be5ae
|
`Process.cmdline()` sometimes fail with EBUSY. It usually happens for long cmdlines with lots of arguments. In this case retry getting the cmdline for up to 50 times, and return an empty list as last resort.
I tried using bpytop on NetBSD. Usually it works fine, but sometimes, especially when there's high load, the cpu frequency backend returns "OSerror [Errno 16]: Device busy" and bpytop exits.
From the bpytop error log:
I'm not completely sure if this is a bug in bpytop or psutil (or possibly even NetBSD but I think returning EBUSY sounds fine).
Please advise if I should report this as a bpytop bug and how you suggest they handle it better there. Thanks!
The text was updated successfully, but these errors were encountered: