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: [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]

Reply via email to