You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2022/07/28 07:03:50 UTC

[GitHub] [incubator-brpc] wwbmmm commented on issue #1822: server侧一次pv支持 cpu 资源统计

wwbmmm commented on issue #1822:
URL: https://github.com/apache/incubator-brpc/issues/1822#issuecomment-1197747550

   原始需求是统计一次pv消耗的cpu资源,但仅从bthread层面来统计是不够的。我们可以修改bthread代码来统计一个bthread消耗的cpu,但如何把bthread跟一次pv关联起来是难点。
   比如在一次pv的处理过程,server端会有io的bthread、处理请求的bthread,client端会有处理rpc response的bthread。
   比如用户在处理请求过程中可能启动bthread/pthread来进行并行处理,或者将任务提交到某个bthread/pthread线程池中处理。
   
   另一种思路可以考虑下:将不同成份的流量路由到不同的实例,然后比较不同实例的cpu消耗,从而进行实验资源的评估。


-- 
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-unsubscribe@brpc.apache.org

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


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