The give away is the frequency of the gc lines. gc 15 (the 15th gc event) happened at 1314 seconds into your programs execution this tells me that gc is likely not your problem. If it were your terminal would be swamped by gc log lines indicating the gc was running constantly.
I think there are more data races in your product
It's just a tiny script to randomly set GOMAXPROCS
https://dave.cheney.net/2013/06/19/stress-test-your-go-packages
It's just a tiny script to randomly set GOMAXPROCS
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/uytOgKskQdg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If anyone can supply information on the mystery runtime._ExternalCode that would be super helpful.
I'm not linking in any cgo libraries. (beyond what the runtime does automatically for dns). Err... so actually there are some C libs... what is the magic phrase for not linking any C .so?
[jaten@biggie bin]$ ldd vhaline
linux-vdso.so.1 => (0x00007ffecfd3c000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f2a6b5dc000)
libc.so.6 => /lib64/libc.so.6 (0x00007f2a6b21b000)
/lib64/ld-linux-x86-64.so.2 (0x00007f2a6b808000)
[jaten@biggie bin]$
Go to http://localhost:6067/debug/pprof/profile with a browser/curl/etc, it should display a more useful error message.
Could not enable CPU profiling: cpu profiling already in useSo the web didn't work, but it did seem to force the internal profiling to actually output something to the cpu-profile file that I set up.
>
> Ok. Any idea was runtime._ExternalCode means?
It means that a profiling signal was received while executing code
that was not written in Go. It should only happen in a program that
uses cgo.
You mentioned that this was reproducible with 1.7.x. it might be worth sticking to that version to avoid having to concurrently debug this external code issue.