[fuchsia] Tune PrimaryGroupSizeLog to reduce fragmentation.
authorLuke Nicholson <lukenicholson@google.com>
Tue, 20 Dec 2022 02:33:51 +0000 (02:33 +0000)
committerChia-hung Duan <chiahungduan@google.com>
Tue, 20 Dec 2022 02:33:52 +0000 (02:33 +0000)
commitab17a08d0f6ffd93cb25b46a4ed5e6ebe5af530e
treee0b9de0bf0b9e00635202ab519d9a6f911f00e2d
parent4e0f464ce2d995d9ee8466729dd5f8c2239f3bab
[fuchsia] Tune PrimaryGroupSizeLog to reduce fragmentation.

21U is the default group size, which demonstrates ~15mb reduction
in heap size for some highly fragmented heaps on Fuchsia, and
a general 5mb savings when devices are under no load.

Microbenchmarks show no performance regressions, but most of our
benchmarks perform no significant mallocs. So we are choosing the
default setting, and monitoring for potential performance
issues.

Reviewed By: Chia-hungDuan

Differential Revision: https://reviews.llvm.org/D140311
compiler-rt/lib/scudo/standalone/allocator_config.h