]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
os/bluestore: set bluestore_cache_kv_ratio to configure rocksdb cache size
authorSage Weil <sage@redhat.com>
Thu, 8 Jun 2017 16:40:11 +0000 (12:40 -0400)
committerSage Weil <sage@redhat.com>
Fri, 9 Jun 2017 14:50:56 +0000 (10:50 -0400)
commita42327067462ec4ab6152f1489768f181353b9e5
tree6d70e348ffbdc069de10a90b74c79047712fbfc2
parent3990137bf98ef5c658805bba6a5ae18366d5128d
os/bluestore: set bluestore_cache_kv_ratio to configure rocksdb cache size

Devote 40% to kv (rocksdb), 50% to metadata (onodes etc), 10% to data.

Note that if we don't consume the data portion (e.g., no cache hints) that
the onode metadata will "borrow" that space.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/config_opts.h
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h