[go-nuts] Re: Go 1.17.1 runtime seems retain too much memory from OS

2022-11-23 Thread 'Zhao Weng' via golang-nuts
sorry for being not specific. my question is: according to my understanding about memstat ( correct me if I'm wrong) with GOGC set to 50, I can see from the graph above that GCGoal is ~ 26GB and heapIdle - heapReleased is how much memory go runtime retain from OS for later usage, how can it (he

[go-nuts] Re: Go 1.17.1 runtime seems retain too much memory from OS

2022-11-23 Thread Amnon
Have a look at https://tip.golang.org/doc/gc-guide and https://opensourcelive.withgoogle.com/events/go-day-2022/watch?talk=talk4 On Thursday, 24 November 2022 at 05:08:55 UTC Zhao Weng wrote: > [image: memory.jpg] > memstats show heapIdle - heapReleased > heapAlloc or heapInUse > > I try to sea