JimChengLin commented on issue #1727:
URL: 
https://github.com/apache/incubator-brpc/issues/1727#issuecomment-1085690410


   I met the same case. I almost did the same thing as @mapleFU mentioned 
above. I guess we can do better.
   
   1. If there are already enough bthread worker to saturate CPU, just ignore 
signal calls. More workers help nothing.
   
   2. Handcraft waiter link list by brpc self instead of futex, although we 
still need futex to wakeup pthread. The benefit is that we can only wake 
bthread workers that just have received remote task(i.e from non-bthread-worker 
thread). No steal() is needed.
   
   3. NUMA-awareness


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to