Re: [go-nuts] how about golang channel memory usage?

2018-01-15 Thread Lynn H
OK, get it , you means virt memory use, I test it, result data could match the table but how about res memory usage? how RES memory used in golang? 在 2018年1月16日星期二 UTC+8下午2:23:08,Jan Mercl写道: > > On Tue, Jan 16, 2018 at 4:49 AM Lynn H > > wrote: > > > not understand ur ta

Re: [go-nuts] how about golang channel memory usage?

2018-01-15 Thread Lynn H
not understand ur table, when memsize is 256,single channel use 6114Byte memory? 在 2018年1月16日星期二 UTC+8上午1:46:45,Jan Mercl写道: > > > > > On Mon, Jan 15, 2018 at 6:04 PM Lynn H > > wrote: > > > so what the rules of channel size and memory usage? > > Check [0] i

[go-nuts] how about golang channel memory usage?

2018-01-15 Thread Lynn H
I user golang to write tcp server recently, I'm puzzled by memoy usage with channel so I write some code for test import ( "time" ) func main() { memsize := 256 for i := 0; i < 10; i++ { go func() { m := make(chan []byte, memsize) time.Sleep(