Re: [go-nuts] memstats.HeapInUse is different from total in pprof

2021-05-26 Thread Ian Lance Taylor
On Wed, May 26, 2021 at 2:31 AM varun...@gmail.com wrote: > > Thanks @Ian for the clarification. > > The BySize arrays gives the number of active objects in a size class but it > does not give the total memory allocated for a size class. E.g, for 1k size > class, if 100K was the total size alloc

Re: [go-nuts] memstats.HeapInUse is different from total in pprof

2021-05-26 Thread varun...@gmail.com
(Sorry for the typo. Where ever I mentioned alloc -> heap, I mean all -> heap) On Wednesday, May 26, 2021 at 3:01:21 PM UTC+5:30 varun...@gmail.com wrote: > Thanks @Ian for the clarification. > > The BySize arrays gives the number of active objects in a size class but > it does not give the to

Re: [go-nuts] memstats.HeapInUse is different from total in pprof

2021-05-26 Thread varun...@gmail.com
Thanks @Ian for the clarification. The BySize arrays gives the number of active objects in a size class but it does not give the total memory allocated for a size class. E.g, for 1k size class, if 100K was the total size allocated and there are only 10 objects in it, it does not tell the memor

Re: [go-nuts] memstats.HeapInUse is different from total in pprof

2021-05-25 Thread Ian Lance Taylor
On Tue, May 25, 2021 at 6:53 AM varun...@gmail.com wrote: > > This statement is a bit confusing to me regarding HeapInuse: "which includes > space allocated to hold objects that do not yet exist or that have been > released by the garbage collector" > > According to memstats documentation, HeapI

Re: [go-nuts] memstats.HeapInUse is different from total in pprof

2021-05-25 Thread varun...@gmail.com
@Ian, This statement is a bit confusing to me regarding HeapInuse: "*which includes space allocated to hold objects that do not yet exist or that have been released by the garbage collector*" According to memstats documentation, HeapInUse -> Includes all spans that have at least one object in

Re: [go-nuts] memstats.HeapInUse is different from total in pprof

2019-09-03 Thread smallnest
Got it,thanks 发自我的小米手机在 Ian Lance Taylor ,2019年9月3日 21:28写道:On Mon, Sep 2, 2019 at 11:01 PM Chao Yuepan wrote: > > I have run a programas redis proxy which parses redis commands and redirects to redis servers. > > I noticed it looks has memory leak issue. > > I use pp

Re: [go-nuts] memstats.HeapInUse is different from total in pprof

2019-09-03 Thread Ian Lance Taylor
On Mon, Sep 2, 2019 at 11:01 PM Chao Yuepan wrote: > > I have run a programas redis proxy which parses redis commands and redirects > to redis servers. > > I noticed it looks has memory leak issue. > > I use pprof to check the memory usage. It sows the total memory usage is > 856.02MB. I underst

[go-nuts] memstats.HeapInUse is different from total in pprof

2019-09-02 Thread Chao Yuepan
I have run a programas redis proxy which parses redis commands and redirects to redis servers. I noticed it looks has memory leak issue. I use pprof to check the memory usage. It sows the total memory usage is *856.02MB. *I understand the value is memory usage in heap. If I check the runt