Skip to content

Commit e544beb

Browse files
authored
Merge pull request ceph#51784 from muahdib69/rsachere_cache_ratios
osd: make _set_cache_sizes ratio aware of cache_kv_onode_ratio Reviewed-by: Laura Flores <[email protected]> Reviewed-by: Igor Fedotov <[email protected]>
2 parents 7188d8c + 8d32e58 commit e544beb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/os/bluestore/BlueStore.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5983,10 +5983,11 @@ int BlueStore::_set_cache_sizes()
59835983
return -EINVAL;
59845984
}
59855985

5986-
if (cache_meta_ratio + cache_kv_ratio > 1.0) {
5986+
if (cache_meta_ratio + cache_kv_ratio + cache_kv_onode_ratio > 1.0) {
59875987
derr << __func__ << " bluestore_cache_meta_ratio (" << cache_meta_ratio
59885988
<< ") + bluestore_cache_kv_ratio (" << cache_kv_ratio
5989-
<< ") = " << cache_meta_ratio + cache_kv_ratio << "; must be <= 1.0"
5989+
<< ") + bluestore_cache_kv_onode_ratio (" << cache_kv_onode_ratio
5990+
<< ") = " << cache_meta_ratio + cache_kv_ratio + cache_kv_onode_ratio << "; must be <= 1.0"
59905991
<< dendl;
59915992
return -EINVAL;
59925993
}
@@ -6003,6 +6004,7 @@ int BlueStore::_set_cache_sizes()
60036004
dout(1) << __func__ << " cache_size " << cache_size
60046005
<< " meta " << cache_meta_ratio
60056006
<< " kv " << cache_kv_ratio
6007+
<< " kv_onode " << cache_kv_onode_ratio
60066008
<< " data " << cache_data_ratio
60076009
<< dendl;
60086010
return 0;

0 commit comments

Comments
 (0)