3 ms·
Go GC's stop the world pauses are essentially synchronization barriers at the start and end of a GC phase. That pause length is a function of the number of work
by yvdriess 2y ago
Go GC's stop the world pauses are essentially synchronization barriers at the start and end of a GC phase. That pause length is a function of the number of worker threads, not the size of the heap. You can check this yourself by running the tile38 and cockroachdb benchmarks with GODEBUG=gctrace=1 .
- gf000 2y agoIt's the function of both, as per even the sibling comment. Obviously there is not much to synchronize when there is only a single thread.