MJY-HUST commented on issue #2507:
URL: https://github.com/apache/brpc/issues/2507#issuecomment-1898497980

   > io_uring
   
   
   
   > > > > 场景是:server中会处理一些io任务。每个pthread worker维护一个thread local 
IO_uring实例用于提交和收割IO,使用server收到rpc请求后直接基于bthread来处理,此时,对于每个pthread 
worker想维护一个定时任务,用于提交请求。 如果可以直接在server 处理逻辑对应的pthread上执行绑定的bthread任务,可以避免额外线程的创建
   > > > 
   > > > 
   > > > 为啥要一个定时器提交请求,收到rpc请求,直接提交到当前thread local的io_uring就可以了吧
   > > 
   > > 
   > > 说错了,是收割请求。整体的逻辑是提交请求后让bthread 
sleep,然后收割请求后使用bthread_t来唤醒sleep的bthread继续执行。想让每个task group 
所在的pthread固定周期执行收割请求的任务。
   > 
   > 你专门启动一个专门的协程收割都有io_uring的请求?
   
   如果IO_uring是thread_local的话,协程如果收割要io_uring,则必须运行在对应的task 
group中,但是目前的协程可能会被其他task group steal。


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

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

Reply via email to