Paragrf opened a new issue, #2892: URL: https://github.com/apache/brpc/issues/2892
1. **问题背景** - 首先注意到 `EventDispatcher` 的数量受以下两个参数限制: - `FLAGS_task_group_ntags` - `FLAGS_event_dispatcher_num` - 通过 `view` 观察到这两个 flag 的值均为 **1**,因此预期服务端应仅在 **1 个 pthread** 上执行 `EventDispatcher::RunThis` 2. **测试现象** - 部署了一个 **9 线程** 的 brpc 服务端进行压力测试 - 火焰图显示 **9 个 worker** 上均存在 `EventDispatcher::RunThis` 的堆栈 3. **疑问** - 预期(单线程执行)与实际观测(多线程执行)存在差异,如何解释此现象? 4. **附件** - 火焰图(svg图,可点选)  - `brpc` 设置 `EventDispatcher` 数量的源码   - `view` 上看到的 flag 值 <img width="1024" alt="Image" src="https://github.com/user-attachments/assets/b2f07f47-8e30-4937-b8d5-34e85dde8b7f" /> <img width="1349" alt="Image" src="https://github.com/user-attachments/assets/e5b1163b-59e0-4170-98c2-d1c7e1334f16" /> -- 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.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