Project

General

Profile

Actions

Bug #72779

closed
RD RD

mds: generating full path regardless of the length slows down FS

Bug #72779: mds: generating full path regardless of the length slows down FS

Added by Rishabh Dave over 1 year ago. Updated 30 days ago.

Status:
Backporting
Priority:
Immediate
Assignee:
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
tentacle,squid,reef
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-3421-ga8d092988f
Released In:
v21.2.0~1927
Upkeep Timestamp:
2026-11-04T01:07:10+00:00

Description

A path can be (virtually) infinitely long and therefore generating absolute path for every log entry is expensive enough to slow down the FS. Imagine path with 2000 components, printing such a long path in MDS logs is not only not useful but also reduces readability of it. Therefore limit to only 10 final components of the path.

The test takes 85 minutes to run -

2025-08-28T11:55:18.186 INFO:tasks.workunit.client.0.smithi008.stdout:../../../clone.client.0/src/test/pybind/test_cephfs.py::test_xattr PASSED [ 17%]
...
2025-08-28T13:20:19.070 INFO:tasks.workunit.client.0.smithi008.stdout:../../../clone.client.0/src/test/pybind/test_cephfs.py::test_create_and_rm_2000_subdir_levels_close2 PASSED [ 19%]

After limiting to path generation to only 10 components, it takes only 20 minutes -

2025-08-29T12:55:27.484 INFO:tasks.workunit.client.0.smithi059.stdout:../../../clone.client.0/src/test/pybind/test_cephfs.py::test_xattr PASSED [ 17%]
...
2025-08-29T13:14:41.648 INFO:tasks.workunit.client.0.smithi059.stdout:../../../clone.client.0/src/test/pybind/test_cephfs.py::test_create_and_rm_2000_subdir_levels_close2 PASSED [ 19%]

This issue was encountered when test to delete 2000 levels of nested dirs was run for ticket #71648.


Related issues 4 (1 open — 3 closed)

Related to CephFS - Bug #71648: mgr/volumes: switch to non-recursive implementation for directory tree removalBackportingRishabh Dave

Actions
Copied to CephFS - Backport #73397: reef: mds: generating full path regardless of the length slows down FSRejectedRishabh Dave

Actions
Copied to CephFS - Backport #73398: squid: mds: generating full path regardless of the length slows down FSFix Under ReviewRishabh Dave

Actions
Copied to CephFS - Backport #73399: tentacle: mds: generating full path regardless of the length slows down FSResolvedRishabh Dave

Actions

RD Updated by Rishabh Dave over 1 year ago Actions #1

  • Description updated (diff)

RD Updated by Rishabh Dave over 1 year ago Actions #2

  • Description updated (diff)

RD Updated by Rishabh Dave over 1 year ago Actions #3

  • Description updated (diff)

RD Updated by Rishabh Dave over 1 year ago Actions #4

  • Description updated (diff)

RD Updated by Rishabh Dave over 1 year ago Actions #5

  • Description updated (diff)

RD Updated by Rishabh Dave over 1 year ago Actions #6

  • Description updated (diff)

RD Updated by Rishabh Dave over 1 year ago Actions #7

  • Status changed from New to Fix Under Review
  • Pull request ID set to 63917

RD Updated by Rishabh Dave about 1 year ago Actions #8

  • Priority changed from Normal to Immediate

RD Updated by Rishabh Dave about 1 year ago Actions #9

  • Related to Bug #71648: mgr/volumes: switch to non-recursive implementation for directory tree removal added

RD Updated by Rishabh Dave about 1 year ago Actions #10

  • Description updated (diff)

RD Updated by Rishabh Dave about 1 year ago Actions #11

  • Status changed from Fix Under Review to Pending Backport

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

  • Merge Commit set to a8d092988fb1ffb354a20b66bcc89103faa94ed0
  • Fixed In set to v20.3.0-3421-ga8d092988f
  • Upkeep Timestamp set to 2025-10-07T11:29:21+00:00

RD Updated by Rishabh Dave about 1 year ago Actions #13

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

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

  • Copied to Backport #73397: reef: mds: generating full path regardless of the length slows down FS added

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

  • Copied to Backport #73398: squid: mds: generating full path regardless of the length slows down FS added

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

  • Copied to Backport #73399: tentacle: mds: generating full path regardless of the length slows down FS added

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

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #18

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-10-07T11:29:21+00:00 to 2026-08-27T18:13:06+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #19

  • Released In set to v21.2.0~1926
  • Upkeep Timestamp changed from 2026-08-27T18:13:06+00:00 to 2026-10-24T01:08:45+00:00

UB Updated by Upkeep Bot 30 days ago Actions #20

  • Released In changed from v21.2.0~1926 to v21.2.0~1927
  • Upkeep Timestamp changed from 2026-10-24T01:08:45+00:00 to 2026-11-04T01:07:10+00:00
Actions

Also available in: PDF Atom