Disable MSan origin tracking on the SystemLog flush hot path · Algunenano/ClickHouse@7017c20 · GitHub
Skip to content

Commit 7017c20

Browse files
committed
Disable MSan origin tracking on the SystemLog flush hot path
Even at track-origins=1, the per-call origin maintenance dominates two hot helpers used by every QueryLog flush: - ProfileEvents::dumpToMapColumn (Interpreters/ProfileEventsExt.cpp) - SettingsImpl::dumpToMapColumn (Core/Settings.cpp, already covered) Each walks hundreds of keys and does tight LowCardinality::insertData calls in a loop, so the per-call __msan_set_alloca_origin overhead adds up to seconds per `SYSTEM FLUSH LOGS query_log` and the failing tests on the MSan WasmEdge 2/2 shard hit the 180 s flush-wait timeout. The CI logs show Block phase up to 14.7 s for a 5759-entry batch, dominated by these two functions. Extend the existing per-file override added in ClickHouse#92716 to also cover ProfileEventsExt.cpp and SystemLog.cpp. These files are leaf helpers where MSan checks don't carry uninit values into user code, so turning origin tracking off here is safe; the rest of the build keeps origin tracking.
1 parent ca4f663 commit 7017c20

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

src/CMakeLists.txt

Lines changed: 17 additions & 4 deletions

0 commit comments

Comments
 (0)