Hi John, If you're referring to scavenging that kicked in every 2.5 minutes and returned spans which had been unused for 5 minutes, that's been replaced with an asynchronous, continuous mechanism as of Go 1.13 ( https://github.com/golang/go/issues/30333). This policy is generally more aggressive than the old one, so if you're seeing an increase in memory use it's probably coming from something else. Do you know if this is an actual increase in heap objects allocated (a GC trace would tell you (GODEBUG=gctrace=1), also MemStats.HeapAlloc <https://golang.org/pkg/runtime/#MemStats>) or is that roughly the same and the increase is only in OS-reported RSS?
This new policy was also unaffected by the aforementioned bug. Please file an issue (https://github.com/golang/go/issues) and I'd be happy to look into it. This isn't the first instance of an increase in memory use we've seen in the issue tracker for Go 1.14, but right now it's hard to tell where it's coming from. It doesn't appear to be the scavenger in any of those other instances, also (AFAICT so far). Thanks, Michael On Wed, Mar 11, 2020 at 8:35 PM Ian Lance Taylor <i...@golang.org> wrote: > [ +mknyszek ] > > On Wed, Mar 11, 2020 at 4:35 PM <johnmr...@gmail.com> wrote: > > > > I see this bug was recently fixed in FreeOSMemory: > https://go-review.googlesource.com/c/go/+/208960/ > > > > Does the same bug also affect the scavenging that automatically happens > every 5 minutes? Asking because we are seeing high memory usage, in an app > that has (until now) avoided calling FreeOSMemory and just relied on the > automatic 5-minute cleanup. > > > > John > > > > -- > > 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. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/bb4bb2e7-9253-4034-b25f-6c1759b8d7dd%40googlegroups.com > . > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAFza%2Bu98D2Dg4hwZDqt1uf00tXd5iC2nrGvXSDYt_eJ5TQ5FNw%40mail.gmail.com.