You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by "vinllen (via GitHub)" <gi...@apache.org> on 2023/09/19 11:30:29 UTC
[I] bthread能否引入STW进行实时打印 (brpc)
vinllen opened a new issue, #2389:
URL: https://github.com/apache/brpc/issues/2389
**Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
tools工具下有个`gdb_bthread_stack.py`脚本,但是需要gdb attach,会导致gdb挂起,而且性能非常挫,bthread是否可以加一个STW,然后打印bthred stack,类似golang runtime中的实现。
**Describe the solution you'd like (描述你期望的解决方法)**
**Describe alternatives you've considered (描述你想到的折衷方案)**
**Additional context/screenshots (更多上下文/截图)**
--
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] bthread能否引入STW进行实时打印 (brpc)
Posted by "vinllen (via GitHub)" <gi...@apache.org>.
vinllen commented on issue #2389:
URL: https://github.com/apache/brpc/issues/2389#issuecomment-2487687131
多种场景吧,比如进程hang住、或者排查长延迟的情况,类似pstack查看调用栈情况,只是bthread之前没有这个功能。
--
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] bthread能否引入STW进行实时打印 (brpc)
Posted by "chenBright (via GitHub)" <gi...@apache.org>.
chenBright commented on issue #2389:
URL: https://github.com/apache/brpc/issues/2389#issuecomment-2475577124
你们在什么场景下需要打印bthread调用栈呢?
--
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] bthread能否引入STW进行实时打印 (brpc)
Posted by "vinllen (via GitHub)" <gi...@apache.org>.
vinllen commented on issue #2389:
URL: https://github.com/apache/brpc/issues/2389#issuecomment-2475518812
牛批 这个功能对我们帮助很大
--
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] bthread能否引入STW进行实时打印 (brpc)
Posted by "wwbmmm (via GitHub)" <gi...@apache.org>.
wwbmmm closed issue #2389: bthread能否引入STW进行实时打印
URL: https://github.com/apache/brpc/issues/2389
--
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] bthread能否引入STW进行实时打印 (brpc)
Posted by "chenBright (via GitHub)" <gi...@apache.org>.
chenBright commented on issue #2389:
URL: https://github.com/apache/brpc/issues/2389#issuecomment-2572426540
CC @vinllen
--
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] bthread能否引入STW进行实时打印 (brpc)
Posted by "wwbmmm (via GitHub)" <gi...@apache.org>.
wwbmmm commented on issue #2389:
URL: https://github.com/apache/brpc/issues/2389#issuecomment-1725429658
STW需要语言级别支持吧。对于C++来说,好像只有gdb挂起才能把线程安全地停住吧
--
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] bthread能否引入STW进行实时打印 (brpc)
Posted by "chenBright (via GitHub)" <gi...@apache.org>.
chenBright commented on issue #2389:
URL: https://github.com/apache/brpc/issues/2389#issuecomment-2440815112
@vinllen 可以看看#2797
--
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] bthread能否引入STW进行实时打印 (brpc)
Posted by "vinllen (via GitHub)" <gi...@apache.org>.
vinllen commented on issue #2389:
URL: https://github.com/apache/brpc/issues/2389#issuecomment-1727839848
gdb挂起感觉性能代价比较大,STW比如在协程分配的时候锁内保护,STW也在锁内,不过实现代价是比较高。
--
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] bthread能否引入STW进行实时打印 (brpc)
Posted by "vinllen (via GitHub)" <gi...@apache.org>.
vinllen commented on issue #2389:
URL: https://github.com/apache/brpc/issues/2389#issuecomment-2576920769
收到,我们内部试一下
--
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