[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] single vs multiple epoll event loop



On Mon, Mar 19, 2012 at 09:21:32PM +0530, Jim Boykin wrote:
> I am designing a server to handle over 50000-100000 simultaneous
> connection. Currently I am using single epoll in edge trigger mode for
> all the connections. All is well till 50-100 connections, however
> after 50-100  connections I do see random lag between actual packet
> received and epoll notification - sometime as high as 5-10 seconds. To
> confirm the problem, I ran both tcpdump and my server simultaneously
> and I could see that tcpdump instantly shown the packet while epoll
> still stucked on epoll_wait.
> 
> Any suggestions what could be wrong? Do you think instead of single
> epoll, creating multiple epolls with each watching a lesser number of
> sockes will help?

Does it lag in level-triggered mode?


***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.