Re: [go-nuts] Re: Go memory usage

2017-10-24 Thread Ian Lance Taylor
On Tue, Oct 24, 2017 at 12:38 PM, Juliusz Chroboczek wrote: > >> It depends entirely on your program. The simplest way to think about >> it is that the runtime imposes an overhead on the memory that your >> program allocates for its own data structures. If you think of that >> overhead as 10%, y

[go-nuts] Re: Go memory usage

2017-10-24 Thread Juliusz Chroboczek
> It depends entirely on your program. The simplest way to think about > it is that the runtime imposes an overhead on the memory that your > program allocates for its own data structures. If you think of that > overhead as 10%, you won't be very far wrong. How does that fit with GOGC being 100%

[go-nuts] Re: Go memory usage

2017-10-24 Thread Juliusz Chroboczek
> It depends entirely on your program. The simplest way to think about > it is that the runtime imposes an overhead on the memory that your > program allocates for its own data structures. If you think of that > overhead as 10%, you won't be very far wrong. How does that fit with GOGC being 100%

[go-nuts] Re: Go memory usage

2017-10-24 Thread Gabriel Aszalos
Hey Ben, You can use the pprof and trace tools to find answers to those questions yourself. Some links: https://blog.golang.org/profiling-go-programs https://golang.org/pkg/runtime/trace/ https://github.com/pkg/profile justforfunc #22 also talks about using those tools (https://www.youtube.co