Closed gopherbot closed 9 years ago
Try 32 or 48 anyway; see if it helps. The problem is that the scheduler is working very hard to keep at most 16 goroutines running through user space at a time, so as one goroutine goes to sleep reading from a network connection it must wake up another goroutine whose turn it is now to run. If there were less contention (by having more slots) then you wouldn't see all this scheduling activity. Russ
Download it and see: https://code.google.com/p/go/downloads/list?can=2&q=go1.1 Much scheduler stuff was changed.
I am having a similar problem with the latest stable release of go. Each query coming in via a tcp packet command is using around 24% cpu (spikes at the query) then just drops back to 0% after the query. But that is really odd.
@majimboo please file a new issue with necessary details: what behavior you expect, what behavior you see, go/os/hardware details and reproduction instructions.
by apachephp: