From: Jianpeng Ma Date: Mon, 19 Dec 2016 15:45:02 +0000 (+0800) Subject: rocksdb: add option: writable_file_max_buffer_size = 0 X-Git-Tag: v12.0.0~283^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12562%2Fhead;p=ceph.git rocksdb: add option: writable_file_max_buffer_size = 0 This reduce memcopy between rocksdb and bluefs. Signed-off-by: Jianpeng Ma --- diff --git a/src/common/config_opts.h b/src/common/config_opts.h index fb074b50f7de..29840ff53147 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -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)