fragmentation stats.
The rationale is that such allocations always get single framgent.
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
void BlueStore::_collect_allocation_stats(uint64_t need, uint32_t alloc_size,
const PExtentVector& extents)
{
- alloc_stats_count++;
- alloc_stats_fragments += extents.size();
- alloc_stats_size += need;
+ if (alloc_size != min_alloc_size) {
+ alloc_stats_count++;
+ alloc_stats_fragments += extents.size();
+ alloc_stats_size += need;
+ }
for (auto& e : extents) {
logger->hinc(l_bluestore_allocate_hist, e.length, need);