From 06817433910f20ab95e01b14b0a1cce12c4e2781 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Tue, 27 Jun 2017 08:15:47 -0500 Subject: [PATCH] common/config_opts: favor bluestore kv cache before meta until max. Signed-off-by: Mark Nelson --- src/common/config_opts.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/config_opts.h b/src/common/config_opts.h index aa303ab810fb8..a742e36d14010 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -1163,8 +1163,8 @@ OPTION(bluestore_cache_type, OPT_STR, "2q") // lru, 2q OPTION(bluestore_2q_cache_kin_ratio, OPT_DOUBLE, .5) // kin page slot size / max page slot size OPTION(bluestore_2q_cache_kout_ratio, OPT_DOUBLE, .5) // number of kout page slot / total number of page slot OPTION(bluestore_cache_size, OPT_U64, 3*1024*1024*1024) -OPTION(bluestore_cache_meta_ratio, OPT_DOUBLE, .7) -OPTION(bluestore_cache_kv_ratio, OPT_DOUBLE, .2) +OPTION(bluestore_cache_meta_ratio, OPT_DOUBLE, .01) +OPTION(bluestore_cache_kv_ratio, OPT_DOUBLE, .99) OPTION(bluestore_cache_kv_max, OPT_U64, 512*1024*1024) // limit the maximum amont of cache for the kv store OPTION(bluestore_kvbackend, OPT_STR, "rocksdb") OPTION(bluestore_allocator, OPT_STR, "bitmap") // stupid | bitmap -- 2.39.5