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
time: Sleep significantly oversleeps on OpenBSD #14183
Comments
(Found while looking at subrepos for #11811) |
I'll look later on an actual OpenBSD machine, but my suspicion is it's probably something to do with the time.Sleep(2 * time.Millisecond) call and OpenBSD's scheduler only having 10ms granularity. |
Can you add a t.Skip or something at least? (if there's not a better way to actually fix or fix the test) |
If that's the only solution I can come up with, sure. |
The problem seems to be that For example, TestLongRunningQPS's The test can be made to work on OpenBSD by lowering the rate to below 50/s, but I think for now it makes sense to just skip it on OpenBSD while I investigate what's going on with |
Interesting. Thanks for investigating. |
(Disabled in https://golang.org/cl/19171) |
I can reproduce the issue in C with clock_gettime and nanosleep too, so (un?)fortunately it's not a Go runtime issue. |
I used to have a fun bug label for tracking upstream OS problems but I think Russ deleted it. :) |
I'm going to close this since I don't think there's really anything else to do on the Go side, and it doesn't make sense to track OpenBSD kernel work here. When/if OpenBSD fixes nanosleep() (which will be a non-trivial change), I think Go should Just Work. |
This fails on OpenBSD 5.8 amd64 and 386 in the exact same way, while all other OS/arch are fine:
http://build.golang.org/log/f1fb777735c5d11326ef4473493b0b10ec376492
Seems like maybe a legit OpenBSD [Go port?] issue.
/cc @mdempsky @4a6f656c
The text was updated successfully, but these errors were encountered: