On 2012/09/11 19:50:49, Sebastien Paolacci wrote:
On 2012/09/11 03:25:12, dvyukov wrote:
On 2012/08/29 06:53:20, Sebastien Paolacci wrote:
PTAL.
As already observed by Dmitry, numbers really get crazy (and
PTAL.
As already observed by Dmitry, numbers really get crazy (and
cpu
number greater than 8.
Does anybody have an explanation? It seems to correlate with numberconnections. Is it a kernel issue?
Kernel is the easy culprit.. but I honestly first thought about Go'sscheduler;)
. I have the very same behavior on both 2.6.32 and 3.2 kernels, but
didn't found
any time to further investigate.
server.
I didn't investigate around the "Persistent*" variants being
cpu=1, it just seems counter intuitive at first.
I think it has to do with the fact that now you have 8 additionalgoroutines. It must go away once you limit number of poll servers.
I think I still don't get it. I'm puzzled about how the connectionpersistence
"alone" can affect that patch so much.
It obviously must have some explanation, but it is not natural to me. I'll run
some more tests (the patch was actually left alone since the initial
Each pollServer is a separate thread and goroutine. The hypothesis is
when you have 8 pollServers with GOMAXPROCS=1, there are additional
latencies and penalties caused by constant thread and goroutine
switching where each goroutine does very little work.
http://codereview.appspot.com/6496054/