Re: [go-nuts] Re: cgo keep consuming memory for SysStack until OOM

2021-10-06 Thread Renat Idrisov
about mutexes and sleeps? I can rethink the architecture to do all IO from dedicated gorotines, but need to confirm the list of "forbidden" operations. Thanks again! On Wednesday, October 6, 2021 at 8:56:00 AM UTC-7 Jan Mercl wrote: > On Wed, Oct 6, 2021 at 5:43 PM Renat I

[go-nuts] Re: cgo keep consuming memory for SysStack until OOM

2021-10-06 Thread Renat Idrisov
Total allocations of golang program are about 42MB, but go runtime takes 8GB for in OS thread stacks. What am I doing wrong? Thanks! On Monday, October 4, 2021 at 8:18:41 PM UTC-7 Renat Idrisov wrote: > Hi All, > we use cgo on Linux, because of mips bytecode that is not supported by >

[go-nuts] cgo keep consuming memory for SysStack until OOM

2021-10-04 Thread Renat Idrisov
Hi All, we use cgo on Linux, because of mips bytecode that is not supported by main go compiler. golang version is 1.16.5, latest release didn't tried. Writing here to make sure what we see is a bug. The application is running for a few days, alive allocations are less than 100MB: # Alloc = 367