On Sat, 28 Jan 2023 at 10:02, Jie Zhang <
jie...@gmail.com> wrote:
>
> Hello all,
>
> I have a large app that runs slowly and really unstable with TSAN enabled, while CPU and memory resources are still redundent. We have to adjust the app's timeout for TSAN to avoid communication failures etc. We used perf to catch cpu running informations, and found out that cpu spends lots of time on sanitizing our logging functions. We added the no_sanitize_thread attribute to that function, but it does not work. Is there a way to avoid certain functions being sanitized by TSAN ? or any idea to make large app run faster?
>
> We are using gcc 7.3.0 on linux.
>
> Thanks!
Hi Jie,
If there would be a magical switch that just makes things faster, it
would be enabled by default :)
gcc 7.3.0 is very old, latest versions may have bugs fixed and make
things faster.
Recent clang releases got significantly faster tsan runtime.