]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec: install /etc/sysconfig/ceph
authorSage Weil <sage@redhat.com>
Fri, 4 Sep 2015 02:21:38 +0000 (22:21 -0400)
committerSage Weil <sage@redhat.com>
Fri, 11 Sep 2015 15:38:26 +0000 (11:38 -0400)
Make it easy to enable jemalloc, too.

Signed-off-by: Sage Weil <sage@redhat.com>
ceph.spec.in
etc/sysconfig/ceph [new file with mode: 0644]

index 0eb8a4801819c60b295055a3b331a2adc80f7e46..62e9e8ac6531d0396e4617b7f19022ee39084f1b 100644 (file)
@@ -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 (file)
index 0000000..19584db
--- /dev/null
@@ -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