ceph-osd: allow to use ceph_tcmalloc_max_total_thread_cache for bluestore
authorSeena Fallah <seenafallah@gmail.com>
Wed, 14 Oct 2020 13:00:57 +0000 (16:30 +0330)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 28 Apr 2021 18:03:46 +0000 (20:03 +0200)
TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES is for both bluestore and filestore

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
roles/ceph-common/tasks/main.yml
roles/ceph-osd/templates/ceph-osd.service.j2

index 7f2bbb55feb6363470694db3e638f6027899f922..648eee117d78172363e8c8d3d559e431cea801e7 100644 (file)
@@ -55,7 +55,6 @@
   include_tasks: configure_memory_allocator.yml
   when:
     - (ceph_tcmalloc_max_total_thread_cache | int) > 0
-    - osd_objectstore == 'filestore'
     - (ceph_origin == 'repository' or ceph_origin == 'distro')
 
 - name: include selinux.yml
index f7afa803aeefe86db8f94de08481a16fb982282d..8d06dce34d028ceed209fc4ec01e724dcd065f26 100644 (file)
@@ -54,7 +54,7 @@ numactl \
   {% endif -%}
   {{ container_env_args }} \
   -e CLUSTER={{ cluster }} \
-  {% if (ceph_tcmalloc_max_total_thread_cache | int) > 0 and osd_objectstore == 'filestore' -%}
+  {% if (ceph_tcmalloc_max_total_thread_cache | int) > 0 -%}
   -e TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES={{ ceph_tcmalloc_max_total_thread_cache }} \
   {% endif -%}
   -v /run/lvm/:/run/lvm/ \