Skip to content

Commit a4960c8

Browse files
committed
disable tcmalloc thread cache size for clean run
1 parent 931c62c commit a4960c8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/apply_load/aws/apply_load_aws.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@
6868
# default (32 MB) starves per-thread caches as the apply thread count grows,
6969
# increasing central-free-list/pageheap lock contention. Giving every thread its
7070
# full 4 MB cache removes that contention. Set to 0 to leave the env var unset.
71-
DEFAULT_TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES = 1 << 30 # 1 GiB
71+
# DEFAULT_TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES = 1 << 30 # 1 GiB
72+
DEFAULT_TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES = 0
7273

7374

7475
@dataclass(frozen=True)
@@ -426,7 +427,7 @@ def build_apply_load_command(mode_name: str, values: Mapping[str, Any],
426427
if iops is not None:
427428
command.extend(["--iops", str(iops)])
428429
tcmalloc_bytes = values.get("tcmalloc_max_total_thread_cache_bytes")
429-
if tcmalloc_bytes is not None:
430+
if tcmalloc_bytes:
430431
command.extend([
431432
"--tcmalloc-max-total-thread-cache-bytes",
432433
str(tcmalloc_bytes),

0 commit comments

Comments
 (0)