]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson: Enable tcmalloc when using seastar 54105/head
authorMark Nelson <mnelson@redhat.com>
Wed, 27 Apr 2022 15:06:22 +0000 (15:06 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 19 Oct 2023 14:29:50 +0000 (14:29 +0000)
commit081eb45ea7a21f6f3355f419dc5339abbf18e202
tree2cb0971860ca19fcde39d8792cb3e5917270e816
parentad15db16a992e3b42326aaf7ef73277ed6e2c57d
crimson: Enable tcmalloc when using seastar

classic-osds have always caused significant memory fragmentation
when using the libc memory allocator due to the way that Ceph
tends to utilize memory.  In recent testing, crimson-osd was found
to use 25-27GB of RAM with the stock 3GB bluestore cache settings
(osd_memory_target is only used when tcmalloc is available).  Upon
further testing, it was found that the classic OSD is even worse,
using between 32-33GB of RAM after a 5 minute 4K sequential
write test when using libc malloc.

The good news is that it appears that crimson-osd is able to use
tcmalloc for alienstore without significant modification. Better
still, it drastically reduces memory usage.  In the same test that
resulted in 25GB RSS memory usage for crimson-osd with libc malloc,
a tcmalloc linked version took around 9GB (with an 8GB
osd_memory_target).  Since we do not yet (afaik) expose classic OSD
debugging in crimson it is tough to tell why we are still a little
over, but it's clear that for alienstore we are going to need to
use tcmalloc as we do in classic.

Signed-off-by: Mark Nelson <mnelson@redhat.com>
(cherry picked from commit d884a45aea8d5e0a5fa1689f2fd3167d68292893)
src/perfglue/CMakeLists.txt