Re: [go-nuts] Re: go1.12 memory release on Linux

2018-12-20 Thread aaronb via golang-nuts
Thanks for the clarification. The system I am testing on is swapless, so maybe would explain why RSS is not increasing. > On a swapless system, freeing pages in a given range happens instantly, > regardless of memory pressure. > My suggestion for wording would to be more specific about the de

[go-nuts] Re: go1.12 memory release on Linux

2018-12-20 Thread aaronb via golang-nuts
I'm trying out a build of my code under go1.12beta1 and resident memory usage is not too dramatically different than under go1.11. The wording on this release note made me think the runtime was going to continually gobble up memory and not release any until the system had nearly run out, but tha

[go-nuts] go1.12 memory release on Linux

2018-12-20 Thread aaronb via golang-nuts
Hello, This caught my eye from the go1.12beta1 release notes: On Linux, the Go runtime now releases memory back to the operating system > only when the OS is under memory pressure. This is more efficient, but > means a process's RSS (resident set size) won't decrease unless the OS is > running