jemalloc option in addition to tcmalloc

Bug #1712522 reported by Nobuto Murata
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceph OSD Charm
Triaged
Wishlist
Unassigned

Bug Description

Ceph package has an option to use jemalloc through /etc/default/ceph. It would be nice if ceph-osd charm exposes the option through charm config.

Basically, install libjemalloc1 package, rewrite /etc/default/ceph and restart OSD are requried.

[/etc/default/ceph]
# /etc/default/ceph
#
# Environment file for ceph daemon systemd unit files.
#

# Increase tcmalloc cache size
TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES=134217728

## use jemalloc instead of tcmalloc
#
# jemalloc is generally faster for small IO workloads and when
# ceph-osd is backed by SSDs. However, memory usage is usually
# higher by 200-300mb.
#
#LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1

Tags: cpe-onsite
James Page (james-page)
Changed in charm-ceph-osd:
status: New → Triaged
importance: Undecided → Wishlist
Nobuto Murata (nobuto)
tags: added: cpe-onsite
Revision history for this message
Diko Parvanov (dparv) wrote :

This bug is dependent on https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1702777

The ceph-osd is not build with the --with-jemalloc option, so adding the above option to /etc/ceph/default has no effect.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.