risingwave: performance regression (for debug & single binary) of backtrace capturing after bumping toolchain on macOS
Describe the bug
I found risingwave becomes significantly slow on my mac. e.g., e2e_test/batch/basic/array.slt.part takes 30+ seconds. After git bisect, I found the regression happens after https://github.com/risingwavelabs/risingwave/pull/6025.
To Reproduce
No response
Expected behavior
No response
Additional context
@skyzh can’t reproduce. CI also works fine. Need someone else to confirm it. Confirmed it happens on debug & single binary mode.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 24 (24 by maintainers)
TImeout is a separate issue. reopen.
Closing this issue in favor of #4077 and #6205.
The slowness is acknowledged by the doc of
Backtrace::capture, and our take on it would be to avoid unnecessary backtrace capture via #4077.The segfault is worse and tracked by #6205.
cc. @BowenXiao1999
Maybe related: https://github.com/rust-lang/rust/pull/98051/
Shall we file a bug report to rust-lang? (Though I believe this is more of an LLVM bug / LLVM upgrade)
In multi-binary:
In single-binary:
Probably a bug with the Rust compiler, but I would still recommend not returning so many errors.
<del>single-binary doesn’t work well, while multi-binary looks good. Is there anything that might go wrong with the madsim update? cc @wangrunji0408 </del> there should be no problem with madsim