Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set JemallocAllocatorOptions::num_arenas=8
Upstream commit ID: facebook/mysql-5.6@f902321 PS-8951: Merge percona-202305 (https://jira.percona.com/browse/PS-8951) Summary: RocksDB's allocator for omitting block cache data from core dumps (`NewJemallocNodumpAllocator()`) recently added support for sharding allocation requests across multiple arenas (facebook/rocksdb#11400). Sharding can fix high contention on per-arena locks when thread caching is avoided for RocksDB blocks (e.g., when using MALLOC_CONF='tcache_max:4096' and rocksdb_block_size=16384). Sharding increases fragmentation, however. This diff hardcodes MyRocks to use eight shards when `--rocksdb_cache_dump=false`. The test plan shows the impact of this change on a workload that triggers block cache misses as fast as possible. We might consider trying more values besides one and eight, or make it configurable in the future. Differential Revision: D46786850 fbshipit-source-id: 56878aa14a4e9d95697a8af2dfa29b9d96ef6c6c
- Loading branch information