I found this issue, https://github.com/golang/go/issues/57071 and tried running
with
GODEBUG=profileruntimelocks=1
but it made no difference in the output.
I am using Go 1.22.4 on OSX.
Any ideas how I can determine what is causing this high contention shown below:
(pprof) tree
Showing nodes accounting for 4440.35ms, 100% of 4440.35ms total
----------------------------------------------------------+-------------
flat flat% sum% cum cum% calls calls% + context
----------------------------------------------------------+-------------
4324.17ms 97.38% 97.38% 4324.17ms 97.38% |
runtime._LostContendedRuntimeLock
----------------------------------------------------------+-------------
116.17ms 100% | sync.(*Map).Swap
(inline)
116.17ms 2.62% 100% 116.17ms 2.62% | sync.(*Mutex).Unlock
----------------------------------------------------------+-------------
116.17ms 100% |
github.com/robaho/go-trader/internal/exchange.(*grpcServer).massquote
0 0% 100% 116.17ms 2.62% |
github.com/robaho/go-trader/internal/exchange.(*exchange).Quote
116.17ms 100% |
github.com/robaho/go-trader/internal/exchange.sendMarketData
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/25E80A1A-DFA8-4BA6-A49C-0F8F656DFA81%40me.com.