You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments