JimChengLin commented on PR #2916:
URL: https://github.com/apache/brpc/pull/2916#issuecomment-2728608117

   确实会有问题,我之前线上没注意到这个问题。
   
   如果你的任务来自于 worker,parking lot 的 waiter 有可能唤醒没那么频繁,但不会信号丢失。因为 signal 的 worker 
本身最终会把 task 消费掉。这个 bug/feature 会进一步减少 futex wake,降低 CPU 占用。
   
   如果任务来自于 non-worker,除了唤醒不那么频繁,叠加这种极端情况,即所有的 worker 都在准备 futex wait,同时有一个 
non-worker 投递了一个 task,这样就会产生信号丢失,task 就永远不会被消费了。这种场景发生概率应该很低,大家可以 check 
一下是不是遇到这种了。


-- 
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: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to