Aliaksandr Valialkin
1 min readJan 28, 2020

--

Yes, this is possible solution against goroutine stalls. In this case the application should communicate with the locked goroutine in order to access mmap’ed memory. Another possible solution is to wrap all the accesses to mmap’ed memory into cgo function. CGO functions are executed on a separate threads, so they don’t interfere with goroutine scheduler.

--

--

Aliaksandr Valialkin
Aliaksandr Valialkin

Written by Aliaksandr Valialkin

Founder and core developer at VictoriaMetrics

No responses yet