Zoltan Borok-Nagy has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/25203


Change subject: PROTOTYPE: Compile a module once on concurrent codegen cache 
misses
......................................................................

PROTOTYPE: Compile a module once on concurrent codegen cache misses

When several fragment instances miss the codegen cache on the same
key, as on the first run of a query after a restart, each of them
optimizes and compiles the same module. The later stores then replace
the equivalent entry stored first and evict it.

Now the first fragment that misses on a key registers as its compiler.
The others wait for it, at most --codegen_cache_singleflight_timeout_ms
(default 10000, 0 means not to wait), then look up the cache again and
compile the module themselves only if it is still missing. A store is
skipped if the cache already holds an entry with the same function
names hash code and at least the same optimization level. The waits
are shown in the CodegenSingleFlightWaits and
CodegenSingleFlightWaitTime profile counters.

Testing:
- TPC-DS SF100, 5 executors, MT_DOP=0: first run after restart -3.9%
  total; warm runs unchanged.
- Adjusted llvm-codegen-cache-test to store non-equivalent entries
  where it expects a replacement. No new tests.

Change-Id: Ic013c54ba41735bdddeff5d68095117a5a343fe1
Assisted-by: Claude Opus 5.5 (Claude Code)
---
M be/src/codegen/llvm-codegen-cache-test.cc
M be/src/codegen/llvm-codegen-cache.cc
M be/src/codegen/llvm-codegen-cache.h
M be/src/codegen/llvm-codegen.cc
4 files changed, 185 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/03/25203/1
--
To view, visit http://gerrit.cloudera.org:8080/25203
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic013c54ba41735bdddeff5d68095117a5a343fe1
Gerrit-Change-Number: 25203
Gerrit-PatchSet: 1
Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>

Reply via email to