]> Cypherpunks repositories - gostls13.git/commit
runtime: pace the scavenger according to 1% of overall CPU time
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 25 Oct 2021 21:49:05 +0000 (21:49 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 5 Nov 2021 17:47:28 +0000 (17:47 +0000)
commit6f32d2050d7f0a9d0c529a1a7a21aa8c1d63fa20
tree0374953e60f91ffe7df9440b05a85f7833af1f51
parente48e4b4cbbe270bc43e4209dce10c9225254aa64
runtime: pace the scavenger according to 1% of overall CPU time

Currently the scavenger is paced to 1% of 1 CPU because it had
scalability problems. As of the last few CLs, that should be largely
resolved. This change resolves the TODO and paces the scavenger
according to 1% of overall CPU time.

This change is made separately to allow it to be more easily rolled
back.

Change-Id: I1ab4de24ba41c564960701634a128a813c55ece9
Reviewed-on: https://go-review.googlesource.com/c/go/+/358675
Trust: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/mgcscavenge.go