Go 1.13 RSS keeps on increasing, suspected scavenging issue
问题 We are experiencing RSS that keeps on increasing in one of our Go service. We are suspecting it's due to scavenger not returning memory to OS properly (or OS not taking back the memory due to use of MADV_FREE). Checked via pprof, no memory leak detected. We tried some experiment with the following simple Go program: Go version: go1.13.4 linux/amd64 (tried with go1.13.1 too) package main import ( "fmt" "time" ) func allocate(s int) { a := make([]byte, s * 1024 * 1024) for i := 0;i < len(a); i