Skip to content

Commit

Permalink
ceph-osd: allow to use ceph_tcmalloc_max_total_thread_cache for blues…
Browse files Browse the repository at this point in the history
…tore

TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES is for both bluestore and filestore

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 41295f0)
  • Loading branch information
clwluvw authored and guits committed Apr 29, 2021
1 parent 8b284d4 commit 36dc972
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion roles/ceph-common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion roles/ceph-osd/templates/ceph-osd.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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/ \
Expand Down

0 comments on commit 36dc972

Please sign in to comment.