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
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):
Merge Commit:
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.
RD Updated by Rishabh Dave over 1 year ago
- Description updated (diff)
RD Updated by Rishabh Dave over 1 year ago
- Description updated (diff)
RD Updated by Rishabh Dave over 1 year ago
- Description updated (diff)
RD Updated by Rishabh Dave over 1 year ago
- Description updated (diff)
RD Updated by Rishabh Dave over 1 year ago
- Description updated (diff)
RD Updated by Rishabh Dave over 1 year ago
- Description updated (diff)
RD Updated by Rishabh Dave over 1 year ago
- Status changed from New to Fix Under Review
- Pull request ID set to 63917
RD Updated by Rishabh Dave about 1 year ago
- Priority changed from Normal to Immediate
RD Updated by Rishabh Dave about 1 year ago
- 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
- Description updated (diff)
RD Updated by Rishabh Dave about 1 year ago
- Status changed from Fix Under Review to Pending Backport
UB Updated by Upkeep Bot about 1 year ago
- 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
- Backport changed from tentacle,squid to tentacle,squid,reef
UB Updated by Upkeep Bot about 1 year ago
- 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
- 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
- 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
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 3 months ago
- 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
- 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
- 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