From 9263613a634ff02dce1db21554b0848e5a5a4d87 Mon Sep 17 00:00:00 2001 From: Jianpeng Ma Date: Mon, 19 Dec 2016 23:45:02 +0800 Subject: [PATCH] rocksdb: add option: writable_file_max_buffer_size = 0 This reduce memcopy between rocksdb and bluefs. Signed-off-by: Jianpeng Ma --- src/common/config_opts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3