• Dmitry Vyukov's avatar
    runtime: simplify procresize · ce9a4afa
    Dmitry Vyukov authored
    Currently we do very a complex rebalancing of runnable goroutines
    between queues, which tries to preserve scheduling fairness.
    Besides being complex and error-prone, it also destroys all locality
    of scheduling.
    
    This change uses simpler scheme: leave runnable goroutines where
    they are, during starttheworld start all Ps with local work,
    plus start one additional P in case we have excessive runnable
    goroutines in local queues or in the global queue.
    
    The schedler must be able to operate efficiently w/o the rebalancing,
    because garbage collections do not have to happen frequently.
    
    The immediate need is execution tracing support: handling of
    garabage collection which does stoptheworld/starttheworld several
    times becomes exceedingly complex if the current execution can
    jump between Ps during starttheworld.
    
    Change-Id: I4fdb7a6d80ca4bd08900d0c6a0a252a95b1a2c90
    Reviewed-on: https://go-review.googlesource.com/1951Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
    ce9a4afa
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...