Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENG-2824 Increase tcmalloc local thread cache size for tservers.
Summary: I've increased TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES for tservers to be 256MB. The default for TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES is about 32MB for our tservers and this was not sufficient for all the threads that we have. TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES is the maximum sum of all thread caches. As a result, if this is not sufficient, we end up seeing issues where threads don't have enough memory in their caches and this causes slowness since one thread tries to steal memory from the cache of another thread. Test Plan: 1) Reproduced the issue on a tserver. 2) Verified that with these changes, we no longer see the issue consistently anymore. We do see a few threads that get stuck at process startup, but once everything stabilizes, there are no issues. Reviewers: amitanand, karthik, mikhail, kannan Reviewed By: mikhail Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D4112
- Loading branch information