Provide simple option for limiting total memory usage

gonzojive commented :

On the other hand, sometimes memory usage is quite high & there is a lot of allocing.

I can’t find a way to force the OS to reclaim the memory freed by Go, which seems to use MADV_FREE on recent linux version (- The Go Programming Language). It would be helpful to force the OS to reclaim such memory get a more accurate picture of what’s going on.

in use

allocs