Hello Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/25218
to look at the new patch set (#4).
Change subject: IMPALA-15602: Default to Google TCMalloc
......................................................................
IMPALA-15602: Default to Google TCMalloc
NOTE: This is using a temporary toolchain for testing. It
will need a full toolchain build and update before merge.
Impala currently builds against gperftools and configures
it to use its aggressive memory decommit mode. This
combination minimizes memory overhead, but at a significant
performance cost. Some workloads have allocation patterns
that bypass the thread cache and cause significant lock
contention. We have been benchmarking two alternatives
introduced in previous changes:
- IMPALA-14900/IMPALA-15316: Turn off aggressive decommit
with gperftools
- IMPALA-14702: Google TCMalloc
Both provide substantial performance gains on a variety
of workloads. The differences between the two are not
as stark, but there is a slight advantage for Google
TCMalloc on average.
This switches the default for IMPALA_MALLOC_IMPL to
googletcmalloc. Since Google TCMalloc conflicts with
glibc's RSEQ usage, this adds GLIBC_TUNABLES=glibc.pthread.rseq=0
in docker/daemon_entrypoint.sh and package/conf/impala-env.sh
to disable glibc's RSEQ usage for Docker images and the
OS packages. This also improves the error message when it
is unable to use the per-CPU mode to note that this is usually
about glibc's RSEQ usage.
Deployments of statestored, catalogd, and admissiond using
Docker often have constrained memory. If these daemons
exceed their memory limit, they can be evicted. Using
gperftools with aggressive memory decommit helps here
because it immediately frees unnecessary memory.
Since these daemons don't benefit greatly from Google
TCMalloc, this preserves the existing behavior by using an
impalad binary built against gperftools for those Docker
images. Specifically, it adds extra base images that use
an impalad built with gperftools, then statestored, catalogd,
and admissiond use that base image rather than the regular one.
Impala now requires Java 17, so this drops the obsolete
Java 8 and Java 11 targets (fixing IMPALA-15684). Since
Clang has been upgraded, the logic to avoid Google TCMalloc
for Clang builds is no longer necessary, so this removes
that logic.
Testing:
- Ran a core job
Change-Id: I019f1e22c0055f48534000dbb4a23c6808dc73a7
Assisted-by: Claude Sonnet 5.5 (Claude Code)
---
M be/CMakeLists.txt
M be/src/service/CMakeLists.txt
M be/src/util/CMakeLists.txt
M be/src/util/malloc-util-googletcmalloc.h
M bin/impala-config.sh
M docker/CMakeLists.txt
M docker/daemon_entrypoint.sh
M docker/impala_base/Dockerfile
M docker/setup_build_context.py
M package/conf/impala-env.sh
10 files changed, 154 insertions(+), 87 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/18/25218/4
--
To view, visit http://gerrit.cloudera.org:8080/25218
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I019f1e22c0055f48534000dbb4a23c6808dc73a7
Gerrit-Change-Number: 25218
Gerrit-PatchSet: 4
Gerrit-Owner: Joe McDonnell <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>