Supposing that fine-grained-cache should address the read amplification
issue. By-default disable seastore_max_data_allocation_size with
fine-grained-cache since seastore_full_integrity_check is by-default
disabled.
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
- name: seastore_max_data_allocation_size
type: size
level: advanced
- desc: Max size in bytes that an extent can be
- default: 32_K
+ desc: Max size in bytes that an extent can be, 0 to disable
+ default: 0
- name: seastore_cache_lru_size
type: size
level: advanced
for (auto &ext : addrs) {
auto left = ext.len;
while (left > 0) {
- auto len = std::min(max_data_allocation_size, left);
+ auto len = left;
+ if (max_data_allocation_size) {
+ len = std::min(max_data_allocation_size, len);
+ }
auto bp = create_extent_ptr_zero(len);
auto start = ext.start.is_delayed()
? ext.start