rpbear88 opened a new issue #1447:
URL: https://github.com/apache/incubator-brpc/issues/1447


   各位好,
   
   
我们在一个低负载的原型系统中进行性能测试,发现bthread从被创建到被执行所花的时间基本在10us(CPU主频2.6GHz)。[这个文档](https://github.com/apache/incubator-brpc/blob/master/docs/cn/memory_management.md)提到bthread的创建耗时大约在200us,所以释放可以认为出现10us的场景并不是创建耗时导致的,而是调度延迟导致的。
   
   我理解可能有两种产生调度延迟的场景:
   - 
新建的bthread会在本地worker执行,而worker需要先执行在`_rq`中的其他任务,如果这些任务的整体处理延时为10us,就会导致我们新建的bthread产生10us的调度延迟。目前这个实验结果是在使用braft的场景下,在raft逻辑中产生的,具体还待分析可能是哪个函数执行耗时大
   - 新建的bthread被其他worker偷过去执行,可能会产生cache miss/cacheline 同步等性能开销,一般这个work 
stealing性能开销是多少呢?


-- 
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.

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