You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the scheduler to consider P's not marked for preemption as
potential targets for timer stealing by spinning P's.
Ignoring timers on P's not marked for preemption, as the scheduler
did previously, has the downside that timers on that P must wait for
its current G to complete or get preempted. But that can take as long
as 10ms.
In addition, this choice is only made when a spinning P is available
and in timer-bound applications it may result in the spinning P
stopping instead of performing available work, reducing parallelism.
In CL 214185 we avoided taking the timer lock of a P with no ready
timers, which reduces the chances of timer lock contention.
Fixesgolang#38860
Change-Id: If52680509b0f3b66dbd1d0c13fa574bd2d0bbd57
0 commit comments