Hacker News new | ask | show | jobs
by infogulch 1552 days ago
> If you are using go between 1.12 to 1.15 within containers, you likely want to set GODEBUG=madvdontneed=1. :-)

This setting is default in Go 1.16+, which was published about 1 year ago. They don't mention what version they're using. The last several releases have landed some pretty significant improvements as I recall, maybe this is a good excuse to upgrade the Go release you use to compile your app.

1 comments

Yes, as said "In fact, go 1.16 has reverted to using this as the default now. The memory graph after this change looks much better and steady at 2G.". Upgrading is definitely next, not easy though since Google appengine flex still does not supported 1.16 out of the box https://cloud.google.com/appengine/docs/flexible/go/runtime