[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] Libevent Schedule Mechanism /Performance
- To: libevent-users@xxxxxxxx
- Subject: [Libevent-users] Libevent Schedule Mechanism /Performance
- From: Anand Raj Manickam <anandrm@xxxxxxxxx>
- Date: Fri, 11 Dec 2015 21:22:54 +0530
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Fri, 11 Dec 2015 10:52:57 -0500
- 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=gTbiJjZxZvhFUaexq8pn/2U1AuPE3raputNBtod/mW8=; b=BvZkKrY24sQ+FCr/CxIdERKCxEqUyMCA22KxBVhaoOWHDlpZx5WcAOCEK221LaFfqR NZEuM/ppErY+3gKDTBT/8fkh/IqVRdDQoj5aaKAntJhdZNdNWvXpsu6eOmrEIbjzmgFR SkIOmJoIuMvSVks6VaCm0s0f8joK/i68EbnO4FnNTjJnTvzB1uFsKzuEw38fEqlSwsWT ydnVSilvldQgC6Hq0ltP+LLxkZZKIEmwOtD+iWIgS0t40NulqNMFEO/z4mUABXM27WlC DQ2fllZPrEu3+j9bsFJBFTL7vQLvsUEboL0jFzf/8gMg0BRWA8iFmwbN2tPa5jtIuAoI jjNg==
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
Hi ,
I have a 8 core machine , with 8 threads which have registered with
libevent for accept callbacks.
All it does it accept a connection and close the connection from the thread.
I could see that performance could scale linearly with cpu utilization
till 4 threads , if i spawn more threads the performance does not
increase and also the CPU utilization remains less than 500%.
For a single thread - i get 30k req/per sec - cpu utilization - 99%
2 threads- 40k -198%
4 threads - 60k - 390%
8 threads - 60k - 500-650 %
Can someone shed some light on this behavior ?
How is the scheduling done by libevent when the accepts happen ?
Is there any reference on the libevent code i could tweak ?
I m using this on Linux Platform using pthreads .
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.