On Wed, Oct 6, 2021 at 5:43 PM Renat Idrisov <parsifal...@gmail.com> wrote:
> Total allocations of golang program are about 42MB, but go runtime takes 8GB > for in OS thread stacks. > What am I doing wrong? If you're on 64 bit Linux, chances are the default OS thread stack size is 8 MB. In that case your program uses ~1000 OS threads. That might be unexpected or it might be caused by some bug. So you should probably focus first on finding out why your program uses such many/too many OS threads, provided this hypothesis is somehow connected to reality. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAA40n-ViReR2njk7LNVMXHjBqwqWdCn%2Bb0xrRRvBc%2BLzF%2Bpp4w%40mail.gmail.com.