[Pkg-ceph-commits] [ceph] 01/02: new (commented) patch to bump OSD's leveldb defaults

Dmitry Smirnov onlyjob at moszumanska.debian.org
Thu Mar 27 16:58:31 UTC 2014


This is an automated email from the git hooks/post-receive script.

onlyjob pushed a commit to branch experimental
in repository ceph.

commit 742af65
Author: Dmitry Smirnov <onlyjob at member.fsf.org>
Date:   Thu Mar 27 13:26:22 2014

    new (commented) patch to bump OSD's leveldb defaults
---
 debian/patches/defaults-leveldb-osd.patch | 26 ++++++++++++++++++++++++++
 debian/patches/series                     |  1 +
 2 files changed, 27 insertions(+)

diff --git a/debian/patches/defaults-leveldb-osd.patch b/debian/patches/defaults-leveldb-osd.patch
new file mode 100644
index 0000000..4ac5c6a
--- /dev/null
+++ b/debian/patches/defaults-leveldb-osd.patch
@@ -0,0 +1,26 @@
+Last-Update: 2014-03-27
+Forwarded: no
+Author: Dmitry Smirnov <onlyjob at member.fsf.org>
+Description: increase OSD's leveldb defaults
+ The OSD's leveldb currently uses libleveldb's defaults for cache and
+ write buffer size, which are both 4 MB.
+ Increase the cache size to 128MB and the write buffer to 8MB.
+
+  Similar change for filestore was introduced in
+    https://github.com/ceph/ceph/pull/1160
+
+--- a/src/common/config_opts.h
++++ b/src/common/config_opts.h
+@@ -536,10 +536,10 @@
+ OPTION(osd_op_history_duration, OPT_U32, 600) // Oldest completed op to track
+ OPTION(osd_target_transaction_size, OPT_INT, 30)     // to adjust various transactions that batch smaller items
+ OPTION(osd_failsafe_full_ratio, OPT_FLOAT, .97) // what % full makes an OSD "full" (failsafe)
+ OPTION(osd_failsafe_nearfull_ratio, OPT_FLOAT, .90) // what % full makes an OSD near full (failsafe)
+-OPTION(osd_leveldb_write_buffer_size, OPT_U64, 0) // OSD's leveldb write buffer size
+-OPTION(osd_leveldb_cache_size, OPT_U64, 0) // OSD's leveldb cache size
++OPTION(osd_leveldb_write_buffer_size, OPT_U64, 8*1024*1024) // OSD's leveldb write buffer size
++OPTION(osd_leveldb_cache_size, OPT_U64, 256*1024*1024) // OSD's leveldb cache size
+ OPTION(osd_leveldb_block_size, OPT_U64, 0) // OSD's leveldb block size
+ OPTION(osd_leveldb_bloom_size, OPT_INT, 0) // OSD's leveldb bloom bits per entry
+ OPTION(osd_leveldb_max_open_files, OPT_INT, 0) // OSD's leveldb max open files
+ OPTION(osd_leveldb_compression, OPT_BOOL, true) // OSD's leveldb uses compression
diff --git a/debian/patches/series b/debian/patches/series
index f2c3e91..511a972 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+#defaults-leveldb-osd.patch
 fix-defaultweight.patch
 gcj.patch
 init.patch

-- 
Alioth's hooks/post-receive on /srv/git.debian.org/git/pkg-ceph/ceph.git



More information about the Pkg-ceph-commits mailing list