congxinbo commented on issue #1532: URL: https://github.com/apache/incubator-brpc/issues/1532#issuecomment-1295710036
> > 那brpc的worker线程和tensorflow自己的线程肯定会产生资源竞争吧 怎么去平衡这个关系呢 > > 不同线程肯定会竞争cpu,确保分配足够多的cpu即可。 机器cpu固定的情况下 如果是高并发请求到server,而server内部又要调用tf去计算 worker对应的线程少了会导致服务阻塞耗时增加 worker对应的线程分配多了 会和tf的线程抢占资源 导致tf计算耗时增加从而导致服务本身的耗时增加 -- 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]
