Project

General

Profile

Actions

Bug #65176

closed
LW LW

BlueFS: _estimate_log_size_N calculates the log size incorrectly

Bug #65176: BlueFS: _estimate_log_size_N calculates the log size incorrectly

Added by linke wang over 2 years ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Due date:
% Done:

0%

Source:
Community (user)
Backport:
squid, reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
Fixed In:
v19.3.0-1987-g1d815ceabb
Released In:
v20.2.0~2966
Upkeep Timestamp:
2026-08-28T01:38:14+00:00

Description

In BlueFS::_estimate_log_size_N, the total size of the dir was calculated incorrectly.
It should be the number of dirs multiplied by (avg_size+1).


Related issues 2 (0 open — 2 closed)

Copied to Ceph - Backport #70067: squid: BlueFS: _estimate_log_size_N calculates the log size incorrectlyResolvedKonstantin Shalygin

Actions
Copied to Ceph - Backport #70068: reef: BlueFS: _estimate_log_size_N calculates the log size incorrectlyResolvedKonstantin Shalygin

Actions

IF Updated by Igor Fedotov over 2 years ago Actions #1

  • Status changed from New to In Progress
  • Backport set to squid, reef, quincy

LW Updated by linke wang over 2 years ago Actions #2

Does avg_dir_size or avg_file_size represent the meaning of the bytes occupied by the name? Or does it have other meanings? @ Igor Fedotov

IF Updated by Igor Fedotov over 2 years ago Actions #3

linke wang wrote in #note-2:

Does avg_dir_size or avg_file_size represent the meaning of the bytes occupied by the name? Or does it have other meanings? @ Igor Fedotov

Yeah, looks like they represent bytes occupied for names. Not sure I understand why we sum avg_dir_size and avg_file_size for the following line though:
size += nodes.file_map.size() * (1 + avg_dir_size + avg_file_size);

LW Updated by linke wang over 2 years ago Actions #4

What is calculated here should be the total bytes occupied by the names of all files.@ Igor Fedotov

LW Updated by linke wang over 2 years ago Actions #5

  • % Done changed from 0 to 100

KS Updated by Konstantin Shalygin almost 2 years ago Actions #6

  • Backport changed from squid, reef, quincy to squid, reef

KS Updated by Konstantin Shalygin almost 2 years ago Actions #7

  • Status changed from In Progress to Pending Backport
  • Assignee set to linke wang
  • Target version set to v20.0.0
  • % Done changed from 100 to 0
  • Source set to Community (user)

UB Updated by Upkeep Bot almost 2 years ago Actions #8

  • Copied to Backport #70067: squid: BlueFS: _estimate_log_size_N calculates the log size incorrectly added

UB Updated by Upkeep Bot almost 2 years ago Actions #9

  • Copied to Backport #70068: reef: BlueFS: _estimate_log_size_N calculates the log size incorrectly added

UB Updated by Upkeep Bot almost 2 years ago Actions #10

  • Tags (freeform) set to backport_processed

KS Updated by Konstantin Shalygin over 1 year ago Actions #11

  • Status changed from Pending Backport to Resolved

UB Updated by Upkeep Bot over 1 year ago Actions #12

  • Merge Commit set to 1d815ceabb47f66b7ffcffd2e7bff487b4bab808
  • Fixed In set to v19.3.0-1987-g1d815ceabb4
  • Upkeep Timestamp set to 2025-07-11T13:50:38+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #13

  • Fixed In changed from v19.3.0-1987-g1d815ceabb4 to v19.3.0-1987-g1d815ceabb
  • Upkeep Timestamp changed from 2025-07-11T13:50:38+00:00 to 2025-07-14T23:09:54+00:00

UB Updated by Upkeep Bot about 1 year ago Actions #14

  • Released In set to v20.2.0~2966
  • Upkeep Timestamp changed from 2025-07-14T23:09:54+00:00 to 2025-11-01T01:33:58+00:00

UB Updated by Upkeep Bot 3 months ago Actions #15

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-11-01T01:33:58+00:00 to 2026-08-28T01:38:14+00:00
Actions

Also available in: PDF Atom