This looks like that your program is allocating a lot of memory once. Note that even if Go has informed the OS with MADV_FREE that memory can be reclaimed, the OS will only reclaim, when there is actual memory pressure.
I suggest to read the document of GODEBUG in https://golang.org/pkg/runtime/ . The parameter scavtrace might be interesting for you, because it informs the amount of RAM returned to the OS. > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/37b4fff5-5097-4e62-8876-ba5a3b73ff47o%40googlegroups.com.
