[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] single vs multiple epoll event loop
- To: libevent-users@xxxxxxxx
- Subject: [Libevent-users] single vs multiple epoll event loop
- From: Jim Boykin <boykinjim@xxxxxxxxx>
- Date: Mon, 19 Mar 2012 21:21:32 +0530
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Mon, 19 Mar 2012 11:51:41 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Yp5959qj1a6vBiaoHgZ4nNtK9l7yDr3Vup9Vh0LLpNg=; b=v7Mvjrc7VYcFH7bm073r6MIHILVGNUybN7VgTdjZsb9xgXogJW0Ap5dosufK82MRsI t+Fwf2WbuB9CtmI3lSevNKu/Y1hslqW7CRUouI1Hy3NztnALERg1T4Y+N7Ak+A5JJR78 K51EXTmZljCxBrG+txfL+Tc/1mVGvuTQkezfW7TX7jHKdM4QdT4rSCEtTv1J9yEV2RVJ iu6TgErQX8TBDJaXPxva7auTQRDOyC8MIETrkbxnHT/33/6UVVucUuXMFTLhz9KNrQzy q726GLp1doeqgS6i4SD8mEUfuv8Cxq+mECbwwhXIA/XJwzPKZADDvaOYFbAP0EW96Llp 4z1Q==
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
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?
Thanks
Jim
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.