-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
runtime: use user-mode scheduling on Windows #7876
Comments
maintaining total GOMAXPROCS threading running both go and cgo code will break at least one misc/cgo/test case though. However, if we count goroutines running cgo code towards to GOMAXPROCS, then I think we can dramatically reduce cgocall overhead (no scheduler coordination except mark that it enters cgocall). Am I correct? |
CL https://golang.org/cl/20834 mentions this issue. |
This reverts commit ab4c929. Sysmon critically depends on system timer resolution for retaking of Ps blocked in system calls. See #14790 for an example of a program where execution time goes from 2ms to 30ms if timeBeginPeriod(1) is not used. We can remove timeBeginPeriod(1) when we support UMS (#7876). Update #14790 Change-Id: I362b56154359b2c52d47f9f2468fe012b481cf6d Reviewed-on: https://go-review.googlesource.com/20834 Reviewed-by: Austin Clements <[email protected]> Run-TryBot: Dmitry Vyukov <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Alex Brainman <[email protected]>
I'm wondering if there's still interest in doing this, given the evolution of the runtime in the last 6 years. At cursory glance, it looks appealing. |
According to #8687 (comment) User Mode Scheduling is considered to be deprecated, and will not be supported on ARM platforms. So I suspect we should just close this issue. |
cc @golang/runtime |
Thanks. This is clearly documented are unsupported on https://learn.microsoft.com/en-us/windows/win32/procthread/user-mode-scheduling?redirectedfrom=MSDN. |
The text was updated successfully, but these errors were encountered: