On Fri, Dec 11, 2015 at 09:22:54PM +0530, Anand Raj Manickam wrote: > 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 ?
Hi, Can you please post here minimalistic example? Thanks, Azat. *********************************************************************** To unsubscribe, send an e-mail to [email protected] with unsubscribe libevent-users in the body.
