You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by "bbbyxxx (via GitHub)" <gi...@apache.org> on 2023/08/08 10:49:37 UTC

[I] futex_wait_private 时间长 6s 左右 (brpc)

bbbyxxx opened a new issue, #2352:
URL: https://github.com/apache/brpc/issues/2352

   **Describe the bug (描述bug)**
   futex_wait_private 时间过长,straces看是因为 wait了 6s,才 wake up的。
   
   **To Reproduce (复现方法)**
   目前仅在自己开发机上复现,且无法解决
   
   **Expected behavior (期望行为)**
   期望不用wait这么久
   
   **Versions (各种版本)**
   OS:Linux
   Compiler:gcc 4.8.5
   brpc: 19年版本
   protobuf:
   
   **Additional context/screenshots (更多上下文/截图)**
   ![image](https://github.com/apache/brpc/assets/49931092/cfdaec1a-5d43-42a8-aeef-f85863f16bc2)
   
   


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


Re: [I] futex_wait_private 时间长 6s 左右 (brpc)

Posted by "lorinlee (via GitHub)" <gi...@apache.org>.
lorinlee commented on issue #2352:
URL: https://github.com/apache/brpc/issues/2352#issuecomment-1673266711

   futex_wait_private本身只是个同步原语,什么时候唤醒完全取决于什么时候调用wakeup,或者超时设了多久。这个6s不符合预期是因为什么不符合预期啊?是调用了wakeup,但是等了6s才唤醒,还是设置了超时,但是超时没有唤醒?


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


Re: [I] futex_wait_private 时间长 6s 左右 (brpc)

Posted by "bbbyxxx (via GitHub)" <gi...@apache.org>.
bbbyxxx commented on issue #2352:
URL: https://github.com/apache/brpc/issues/2352#issuecomment-1669384358

   又看到19年有其他同学提了,但是看起来没处理?  还是说新版本没问题了的?


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