On Mon, Jun 26, 2017 at 2:29 PM,  <ken.kofi.acq...@gmail.com> wrote:
>
> I was using the go tool trace to analyze my program and I noticed two events
> named GC (Idle) and GC (Dedicated), does anyone know the distinction between
> the two? I cannot find any info about them online. If I were to make an
> educated guess I suppose that GC (Idle) would be the portion of GC that runs
> concurrently with the program and GC dedicated is the portion of GC that
> stops the world, but I wanted to be sure of this.

GC (idle) is goroutines doing GC marking because there is no other
work for the program to do.

GC (dedicated) is goroutines dedicated to doing nothing other than GC
marking, for at least the current GC cycle.  The number of goroutines
put into this mode depends on how hard the GC has to work to keep up
with memory being allocated by the rest of the program.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to