Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/25218 )
Change subject: IMPALA-15602: Default to Google TCMalloc ...................................................................... Patch Set 4: (1 comment) http://gerrit.cloudera.org:8080/#/c/25218/4//COMMIT_MSG Commit Message: http://gerrit.cloudera.org:8080/#/c/25218/4//COMMIT_MSG@41 PS4, Line 41: 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. > Do you think of this as a long term solution, or have same plans to unify t I don't want this to be permanent. I just didn't want the main switchover to be held back by non-impalad daemons in containers. Google TCMalloc has a background thread freeing unused memory after a period of time, so it should have better behavior than gperftools without aggressive decommit. There is a SetMemoryLimit() option in Google TCMalloc that could serve a similar purpose to what we need: https://github.com/google/tcmalloc/blob/master/tcmalloc/malloc_extension.h#L533 It has an option for a soft limit that tries to free as much as it can before going over the limit. That sounds useful if we can come up with the right value for the limit. I'll file a JIRA for switching these daemons over to Google TCMalloc with the right testing. I need to work with the deployments that have run into this issue in the past. My thought process is that gperftools hasn't been a problem for these daemons. Even with aggressive decommit on, they get the benefits of the thread caches. Leaving them using that is technical debt, but it isn't risky. Switching to glibc is an unknown. It would have similar plumbing to build a separate binary. -- 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: comment Gerrit-Change-Id: I019f1e22c0055f48534000dbb4a23c6808dc73a7 Gerrit-Change-Number: 25218 Gerrit-PatchSet: 4 Gerrit-Owner: Joe McDonnell <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Joe McDonnell <[email protected]> Gerrit-Comment-Date: Fri, 30 Oct 2026 16:05:42 +0000 Gerrit-HasComments: Yes
