zhengJade commented on PR #2819: URL: https://github.com/apache/brpc/pull/2819#issuecomment-2490582269
> @zhengJade 延时性能的提升主要是因为epoll bthread优先调度了吗? @chenBright 从理论上看应该有两方面原因 1. epoll 响应更及时,导致整个 brpc 的处理优先级逻辑发生了变化,以前是所有的 worker 尽量先处理完所有的任务,才能保证有新的 event 进来,当然,没处理完也有会,这取决于是否 steal 到了 epoll 任务,这带来的变化就是,所有空闲的 worker 会立刻拿到 epoll,然后填充自己的 queue,这样可以保证,每个 worker 的 queue 都有一定量的任务,减少 steal 的频率。 2. 任务分布均匀后,wait 的频率降低,可以降低 signal 的频率,只有有任务等待在通知。减少系统调用。 -- 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