]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rocksdb: add option: writable_file_max_buffer_size = 0 12562/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Mon, 19 Dec 2016 15:45:02 +0000 (23:45 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Mon, 19 Dec 2016 15:45:02 +0000 (23:45 +0800)
This reduce memcopy between rocksdb and bluefs.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/common/config_opts.h

index fb074b50f7def0c37612e3c9e0ed1a7e0d86a147..29840ff53147f1bbe0a7cb135222a38523adbff3 100644 (file)
@@ -1043,7 +1043,7 @@ OPTION(bluestore_freelist_type, OPT_STR, "bitmap") // extent | bitmap
 OPTION(bluestore_freelist_blocks_per_key, OPT_INT, 128)
 OPTION(bluestore_bitmapallocator_blocks_per_zone, OPT_INT, 1024) // must be power of 2 aligned, e.g., 512, 1024, 2048...
 OPTION(bluestore_bitmapallocator_span_size, OPT_INT, 1024) // must be power of 2 aligned, e.g., 512, 1024, 2048...
-OPTION(bluestore_rocksdb_options, OPT_STR, "compression=kNoCompression,max_write_buffer_number=4,min_write_buffer_number_to_merge=1,recycle_log_file_num=4,write_buffer_size=268435456")
+OPTION(bluestore_rocksdb_options, OPT_STR, "compression=kNoCompression,max_write_buffer_number=4,min_write_buffer_number_to_merge=1,recycle_log_file_num=4,write_buffer_size=268435456,writable_file_max_buffer_size=0")
 OPTION(bluestore_fsck_on_mount, OPT_BOOL, false)
 OPTION(bluestore_fsck_on_mount_deep, OPT_BOOL, true)
 OPTION(bluestore_fsck_on_umount, OPT_BOOL, false)