Re: [go-nuts] heap space not released by the end of program ?

2021-07-12 Thread Robert Engels
RSS is the amount of memory mapped to physical memory. It doesn’t include memory swapped. Still, if GC was releasing pages back to the OS - unmapping the allocated and touched pages - the RSS should decrease. There was a previous thread on if and when GC will release pages back to the OS. This

Re: [go-nuts] heap space not released by the end of program ?

2021-07-12 Thread Kurtis Rader
I didn't look at the source for your program because you don't seem to understand what "resident set size" means in this context. The RSS of a process is unrelated to its virtual size. You appear to be equating RSS and virtual size. This might be an example of the XY Problem

[go-nuts] heap space not released by the end of program ?

2021-07-12 Thread Chan Lewis
Hi, I wrote a test program, which tests when GC starts to return heap space to OS. Here's the code: https://paste.ubuntu.com/p/jxHqDnsM2T/ But I've waited for a long time and haven't seen the RSS memory reduced. I can't figured out why, Any help ? (go version 1.14.3) -- You received this messa