--
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/mNZI7oi8_Tg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
The first profile looks pretty reasonable:
5.89% bishop_y bishop_y [.] runtime.xchg
3.34% bishop_y [kernel.kallsyms] [k] tcp_sendmsg
2.80% bishop_y bishop_y [.] findrunnable
2.40% bishop_y bishop_y [.] runqsteal
2.17% bishop_y [kernel.kallsyms] [k] _spin_lock
1.83% bishop_y bishop_y [.]
code.kingsoft.com/jx1/net.code
1.62% bishop_y [kernel.kallsyms] [k] _spin_lock_irqsave
1.53% bishop_y bishop_y [.] runtime.mallocgc
1.39% bishop_y bishop_y [.] runtime.chanrecv
1.27% bishop_y [kernel.kallsyms] [k] fget_light
1.14% bishop_y [kernel.kallsyms] [k] find_busiest_group
1.11% bishop_y bishop_y [.] runtime.slicecopy
1.07% bishop_y bishop_y [.] runtime.lock
1.04% bishop_y [kernel.kallsyms] [k] sock_aio_write
it looks like there is shortage of work for 24 thread, so lots of
threads contend for small amount of work causing contention
Please run on the real machine:
$ GODEBUG=schedtrace=500 ./mybin
it will show what happens in Go scheduler.
Do you think there is something pathological in Go runtime? If yes,
why? If no, do you just want to optimize the program?
Do you think there is something pathological in Go runtime? If yes,
why? If no, do you just want to optimize the program?
--
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 golang-nuts...@googlegroups.com.
In the CPU profile I see that gsCallback.deliver unblocks lots of
goroutines, maybe there is something to optimize.
--
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/mNZI7oi8_Tg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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 golang-nuts...@googlegroups.com.
--
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 golang-nuts...@googlegroups.com.