• Austin Clements's avatar
    runtime: proportional response GC trigger controller · a0452a68
    Austin Clements authored
    Currently, concurrent GC triggers at a fixed 7/8*GOGC heap growth. For
    mutators that allocate slowly, this means GC will trigger too early
    and run too often, wasting CPU time on GC. For mutators that allocate
    quickly, this means GC will trigger too late, causing the program to
    exceed the GOGC heap growth goal and/or to exceed CPU goals because of
    a high mutator assist ratio.
    
    This change adds a feedback control loop to dynamically adjust the GC
    trigger from cycle to cycle. By monitoring the heap growth and GC CPU
    utilization from cycle to cycle, this adjusts the Go garbage collector
    to target the GOGC heap growth goal and the 25% CPU utilization goal.
    
    Change-Id: Ic82eef288c1fa122f73b69fe604d32cbb219e293
    Reviewed-on: https://go-review.googlesource.com/8851Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
    a0452a68
Name
Last commit
Last update
api Loading commit data...
doc 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...