News for hackers. Stuff that matters.
Re:A 40ms Go garbage collector pause caused by swap by Someone on Monday October 05, 2026 @03:43AM (#49961845)
> If you have a garbage collection problem my first intuition would be to produce less garbage!

FTA:

“These latency spikes definitely smelled like garbage collection performance impact, but we had written the Go code very efficiently and had very few allocations. We were not creating a lot of garbage.

[…]

the spikes were huge not because of a massive amount of ready-to-free memory, but because the garbage collector needed to scan the entire LRU cache in order to determine if the memory was truly free from references”

There are no comments on this comment yet.