Weibing Wang

Results 115 comments of Weibing Wang

同 #1689

可以试试这个PR:https://github.com/apache/incubator-brpc/pull/1657

> Another piece of debugging log supports this scenario. Could you show this log?

This issue may be related to https://github.com/apache/incubator-brpc/issues/1693. Although we have removed the `__const__` attribute of __errno_location(), but powerful link time optimization may still cache the tls errno location ?

> I observed a different coredump saying something like "bthread sched_to itself" I encountered this error before, that is related to tls cache. Compiler options: -fno-gcse, -fno-cse-follow-jumps, -fno-move-loop-invariants may fix...

> BTW-3: About half a year ago, when we are using 0.9.7, I roughly tested LTO capabilities once and BRPC wasn't a blocker at that time (the service behaves correctly...

We are using gcc 8 and gcc 10 with lto to compile brpc and everything works well. It seems that some new optimization in clang is not compatible with bthread,...

之前有个PR,可以看看 #495

The work stealing in libgo is implemented by a global scheduler: https://github.com/yyzybb537/libgo/blob/master/libgo/scheduler/scheduler.cpp#L340 It runs work stealing at an interval of 1000us by default. When a task is ready to run...

bthread里面没有读磁盘的操作吧,你是指在bthread中运行的业务代码中进行了读磁盘的操作吗? 如果想减少阻塞,可以用异步的读,可以使用bthread_fd_wait来等待可读事件,等待过程中bthread会被挂起。