diff --git a/ceph.spec.in b/ceph.spec.in index 0eb8a4801819c..62e9e8ac6531d 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -593,6 +593,7 @@ find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' install -D src/rbdmap $RPM_BUILD_ROOT%{_sysconfdir}/ceph/rbdmap install -D src/init-rbdmap $RPM_BUILD_ROOT%{_initrddir}/rbdmap install -D etc/ceph.limits.d $RPM_BUILD_ROOT%{_sysconfdir}/security/limits.d/ceph.conf +install -m 0644 -D etc/sysconfig/ceph $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ceph %if 0%{?_with_systemd} install -m 0644 -D systemd/ceph.tmpfiles.d $RPM_BUILD_ROOT%{_tmpfilesdir}/%{name}.conf install -m 0644 -D systemd/ceph-rgw.tmpfiles.d $RPM_BUILD_ROOT%{_tmpfilesdir}/%{name}-rgw.conf diff --git a/etc/sysconfig/ceph b/etc/sysconfig/ceph new file mode 100644 index 0000000000000..19584dbbbee3a --- /dev/null +++ b/etc/sysconfig/ceph @@ -0,0 +1,12 @@ +# /etc/sysconfig/ceph +# +# Environment file for ceph daemon systemd unit files. +# + +## 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/lib64/libjemalloc.so.1