31 мая 2011 г. 14:50 пользователь Martin Sustrik <[email protected]>написал:
> On 05/31/2011 12:42 PM, Геннадий Казачёк wrote: > > I tried to profile zmqlib, but spent only a couple of hours, so the only >> thing I've found was: >> > > ELAPSED TIME (seconds) >> zmq :: select_t :: loop - 225,44 >> > > This is an infinite loop. > > > zmq :: mailbox_t :: recv - 112,85 >> > > This is a blocking function. When nothing happens application threads sleep > here. > > > I guess (correct me, if I wrong) that this means, that we are waiting >> for something 1000 times longer then working. >> > > Well. It looks like the application threads is waiting for 112.85 sec out > of total 225.44 sec. > > > I can make another test, but don't know what exactly. >> > > Try to find out what is the application thread actually waiting for and why > it takes so long. Is it one 2 minute sleep or is it many small sleeps that > add to 2 minutes? Etc. > > Martin > > 10000 packets zmq :: mailbox_t :: recv Hit count - 126. 50000 packets zmq :: mailbox_t :: recv Hit count - 611. Linear dependency. I guess It's a bunch of small equal waits.
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
