Recently I was trying to understand how asynchronous preemption is
implemented in Go 1.14 and
basically figured out the call chain.
sysmon
↓
retake
↓
preemptone
↓
preemptM
↓
signalM(mp, sigPreempt)//send SIGURG to mp
↓
doSigPreempt(signal handler)
Hello everyone, recently I encounted a strange thing when using go pprof.
A project written in Go was often killed by Linux OOM-killer after running
for a while .
So I used go pprof to find out if any memory leaks there.
But when RSS of the process reached to nearly 20G(by top command), pprof
> go clean -modcache
It seems that the only way is to clean all packages.
Thank you very much!
Ge
在2020年7月7日星期二 UTC+8 下午5:51:17 写道:
> go clean -modcache
>
> On Tuesday, July 7, 2020 at 9:23:50 AM UTC+2 HailangGe wrote:
>
>>
>> Thanks. I'm just trying to look f
Thanks. I'm just trying to look for if there are any way to clean them in a
programmer's way.
在2020年7月7日星期二 UTC+8 下午1:26:16 写道:
> Just delete them all.
> Your next build will repopulate the ones that are needed.
>
--
You received this message because you are subscribed to the Google Groups
"g