Project

General

Profile

Actions

Feature #63191

closed
VS ER

tools/cephfs: provide an estimate completion time for offline tools

Feature #63191: tools/cephfs: provide an estimate completion time for offline tools

Added by Venky Shankar about 3 years ago. Updated about 3 hours ago.

Status:
Closed
Priority:
High
Category:
Administration/Usability
Target version:
Due date:
% Done:

0%

Source:
Development
Backport:
squid,tentacle
Reviewed:
Affected Versions:
Component(FS):
tools
Labels (FS):
offline
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-4748-g25311b412d
Released In:
Upkeep Timestamp:
2026-12-02T13:08:25+00:00

Description

Especially, cephfs-data-scan which scales to the number of objects in the data pool - scan_{extents,inodes} step and scan_links which iterates objects in the metadata pool twice.


Related issues 2 (0 open — 2 closed)

Copied to CephFS - Backport #74347: squid: tools/cephfs: provide an estimate completion time for offline toolsRejectedEdwin Rodriguez

Actions
Copied to CephFS - Backport #74348: tentacle: tools/cephfs: provide an estimate completion time for offline toolsRejectedEdwin Rodriguez

Actions

VS Updated by Venky Shankar about 3 years ago Actions #1

  • Tracker changed from Bug to Feature

RD Updated by Rishabh Dave about 3 years ago Actions #2

  • Assignee set to Rishabh Dave

PD Updated by Patrick Donnelly over 2 years ago Actions #3

  • Target version changed from v19.0.0 to v20.0.0

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

  • Backport changed from reef,quincy to reef

VS Updated by Venky Shankar over 1 year ago Actions #5

  • Assignee changed from Rishabh Dave to Mahesh Mohan
  • Target version changed from v20.0.0 to v21.0.0
  • Source set to Development
  • Backport changed from reef to squid,tentacle

VS Updated by Venky Shankar over 1 year ago Actions #6

  • Status changed from New to In Progress

MM Updated by Mahesh Mohan over 1 year ago Actions #7

I've made some initial changes and tested them with cephfs-data-scan.

This is the sample output for a single threaded command:

[root@mahesh-centos-dev build]# ./bin/cephfs-data-scan scan_links
Processed 8700/40044 objects (21.73%), ETA: 3m32s

To test with multiple workers, I used the following script:
#!/bin/bash
M=8
BUILD_DIR=/root/dev/maheshm/ceph/build
export PATH=/root/dev/maheshm/ceph/build/bin:$PATH

cd $BUILD_DIR

for n in $(seq 0 $((M-1))); do
time $BUILD_DIR/bin/cephfs-data-scan \
scan_extents \
--worker_m $M \
--worker_n $n \
> /root/dev/scan_extents.$n.log 2>&1 &
done

wait
echo "All $M workers completed"

The output of each worker looks as such:
[root@mahesh-centos-dev dev]# tail -n 20 scan_extents.*.log
> scan_extents.0.log <
Processed 7500/500000 objects (1.50%), ETA: 118m12s
> scan_extents.1.log <
Processed 7100/500000 objects (1.42%), ETA: 124m57s
> scan_extents.2.log <
Processed 6800/500000 objects (1.36%), ETA: 130m33s
> scan_extents.3.log <
Processed 7300/500000 objects (1.46%), ETA: 122m36s
> scan_extents.4.log <
Processed 7100/500000 objects (1.42%), ETA: 124m57s
> scan_extents.5.log <
Processed 6800/500000 objects (1.36%), ETA: 130m33s
> scan_extents.6.log <
Processed 7000/500000 objects (1.40%), ETA: 126m46s
> scan_extents.7.log <
Processed 6800/500000 objects (1.36%), ETA: 129m20s

<after some time...>

[root@mahesh-centos-dev dev]# tail -n 20 scan_extents.*.log
> scan_extents.0.log <
Processed 138000/500000 objects (27.60%), ETA: 113m45s
> scan_extents.1.log <
Processed 138000/500000 objects (27.60%), ETA: 113m45s
> scan_extents.2.log <
Processed 137000/500000 objects (27.40%), ETA: 114m54s
> scan_extents.3.log <
Processed 139600/500000 objects (27.92%), ETA: 111m57s
> scan_extents.4.log <
Processed 137400/500000 objects (27.48%), ETA: 114m26s
> scan_extents.5.log <
Processed 138900/500000 objects (27.78%), ETA: 112m44s
> scan_extents.6.log <
Processed 138200/500000 objects (27.64%), ETA: 113m31s
> scan_extents.7.log <
Processed 139500/500000 objects (27.90%), ETA: 112m4s

Similar testing done for cephfs-data-scan {scan_inodes, scan_links, scan_extents, scan_frags, cleanup}.

Progress tracking not implemented for cephfs-meta-injection since it works on single objects.

For cephfs-table-tool, progress tracking is implemented if all ranks are queried or if the command is reset, since reset can take longer time.
I'm unable to test this effectively on my setup currently.

For cephfs-journal-tool, journal_inspect has progress tracking. Still working out the logic for recover_dentries.

Progress tracking is enabled by default where applicable, i.e. no separate option called "--progress" needs to be specified by the user.
If we make it option specific, then the user may miss specifying the option, having to kill the command and restart with the "--progress" option
specified to track progress. Therefore, it seems better to keep progress tracking enabled by default wherever required.

MM Updated by Mahesh Mohan over 1 year ago Actions #8

  • Pull request ID set to 64214

VS Updated by Venky Shankar over 1 year ago Actions #9

  • Status changed from In Progress to Fix Under Review

VS Updated by Venky Shankar about 1 year ago Actions #10

  • Assignee changed from Mahesh Mohan to Edwin Rodriguez
  • Pull request ID changed from 64214 to 65495

LF Updated by Laura Flores about 1 year ago Actions #11

  • Tags set to user-dev

AP Updated by Alexander Patrakov about 1 year ago Actions #12

Another subtool that needs a progress indicator is recover_dentries.

Right now, I am busy with a customer cluster where cephfs-journal-tool recover_dentries cannot replay the journal in one go because it exhausts the available 256 GB RAM + 2 TB swap. I was able to use the --range argument to split the work into multiple pieces, but I have no idea how many pieces are left - i.e., what's the total range that I need to cover. That is, which offsets correspond to the beginning of the journal and to its end, and where the current playback position is.

AP Updated by Alexander Patrakov 11 months ago Actions #13

The fix is incomplete. In the meeting, it was noted that people don't know what is safe to run (e.g., journal replay via recover_dentries) and what should only be tried in despair. The docs still don't contain this information.

AP Updated by Alexander Patrakov 11 months ago Actions #14

Sorry for the noise, the previous comment was supposed to go into a different ticket.

UB Updated by Upkeep Bot 11 months ago Actions #15

  • Status changed from Fix Under Review to Pending Backport
  • Merge Commit set to 25311b412df1e7416e03299095c544655c0914d6
  • Fixed In set to v20.3.0-4748-g25311b412d
  • Upkeep Timestamp set to 2026-01-07T10:35:43+00:00

UB Updated by Upkeep Bot 11 months ago Actions #16

  • Copied to Backport #74347: squid: tools/cephfs: provide an estimate completion time for offline tools added

UB Updated by Upkeep Bot 11 months ago Actions #17

  • Copied to Backport #74348: tentacle: tools/cephfs: provide an estimate completion time for offline tools added

UB Updated by Upkeep Bot 11 months ago Actions #18

  • Tags (freeform) set to backport_processed

VS Updated by Venky Shankar 3 months ago Actions #19

  • Status changed from Pending Backport to Closed

UB Updated by Upkeep Bot 3 months ago Actions #20

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-01-07T10:35:43+00:00 to 2026-08-28T01:39:01+00:00

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

  • Upkeep Timestamp changed from 2026-08-28T01:39:01+00:00 to 2026-10-24T02:00:06+00:00

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

  • Upkeep Timestamp changed from 2026-10-24T02:00:06+00:00 to 2026-10-24T13:20:16+00:00

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

  • Upkeep Timestamp changed from 2026-10-24T13:20:16+00:00 to 2026-10-25T01:53:10+00:00

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

  • Upkeep Timestamp changed from 2026-10-25T01:53:10+00:00 to 2026-10-25T13:10:00+00:00

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

  • Upkeep Timestamp changed from 2026-10-25T13:10:00+00:00 to 2026-10-26T01:32:28+00:00

UB Updated by Upkeep Bot 29 days ago Actions #26

  • Upkeep Timestamp changed from 2026-10-26T01:32:28+00:00 to 2026-11-04T01:36:13+00:00

UB Updated by Upkeep Bot 28 days ago Actions #27

  • Upkeep Timestamp changed from 2026-11-04T01:36:13+00:00 to 2026-11-04T13:02:14+00:00

UB Updated by Upkeep Bot 28 days ago Actions #28

  • Upkeep Timestamp changed from 2026-11-04T13:02:14+00:00 to 2026-11-05T01:30:21+00:00

UB Updated by Upkeep Bot 27 days ago Actions #29

  • Upkeep Timestamp changed from 2026-11-05T01:30:21+00:00 to 2026-11-05T13:06:08+00:00

UB Updated by Upkeep Bot 27 days ago Actions #30

  • Upkeep Timestamp changed from 2026-11-05T13:06:08+00:00 to 2026-11-06T01:38:11+00:00

UB Updated by Upkeep Bot 26 days ago Actions #31

  • Upkeep Timestamp changed from 2026-11-06T01:38:11+00:00 to 2026-11-06T14:55:39+00:00

UB Updated by Upkeep Bot 26 days ago Actions #32

  • Upkeep Timestamp changed from 2026-11-06T14:55:39+00:00 to 2026-11-07T01:27:21+00:00

UB Updated by Upkeep Bot 25 days ago Actions #33

  • Upkeep Timestamp changed from 2026-11-07T01:27:21+00:00 to 2026-11-07T13:02:17+00:00

UB Updated by Upkeep Bot 25 days ago Actions #34

  • Upkeep Timestamp changed from 2026-11-07T13:02:17+00:00 to 2026-11-08T01:15:29+00:00

UB Updated by Upkeep Bot 24 days ago Actions #35

  • Upkeep Timestamp changed from 2026-11-08T01:15:29+00:00 to 2026-11-08T13:23:57+00:00

UB Updated by Upkeep Bot 24 days ago Actions #36

  • Upkeep Timestamp changed from 2026-11-08T13:23:57+00:00 to 2026-11-09T01:28:55+00:00

UB Updated by Upkeep Bot 23 days ago Actions #37

  • Upkeep Timestamp changed from 2026-11-09T01:28:55+00:00 to 2026-11-09T13:07:06+00:00

UB Updated by Upkeep Bot 23 days ago Actions #38

  • Upkeep Timestamp changed from 2026-11-09T13:07:06+00:00 to 2026-11-10T01:27:19+00:00

UB Updated by Upkeep Bot 22 days ago Actions #39

  • Upkeep Timestamp changed from 2026-11-10T01:27:19+00:00 to 2026-11-10T13:02:14+00:00

UB Updated by Upkeep Bot 22 days ago Actions #40

  • Upkeep Timestamp changed from 2026-11-10T13:02:14+00:00 to 2026-11-11T01:07:35+00:00

UB Updated by Upkeep Bot 21 days ago Actions #41

  • Upkeep Timestamp changed from 2026-11-11T01:07:35+00:00 to 2026-11-11T13:00:40+00:00

UB Updated by Upkeep Bot 21 days ago Actions #42

  • Upkeep Timestamp changed from 2026-11-11T13:00:40+00:00 to 2026-11-12T01:46:19+00:00

UB Updated by Upkeep Bot 20 days ago Actions #43

  • Upkeep Timestamp changed from 2026-11-12T01:46:19+00:00 to 2026-11-12T13:01:37+00:00

UB Updated by Upkeep Bot 20 days ago Actions #44

  • Upkeep Timestamp changed from 2026-11-12T13:01:37+00:00 to 2026-11-13T01:38:18+00:00

UB Updated by Upkeep Bot 19 days ago Actions #45

  • Upkeep Timestamp changed from 2026-11-13T01:38:18+00:00 to 2026-11-13T12:58:46+00:00

UB Updated by Upkeep Bot 19 days ago Actions #46

  • Upkeep Timestamp changed from 2026-11-13T12:58:46+00:00 to 2026-11-14T01:16:13+00:00

UB Updated by Upkeep Bot 18 days ago Actions #47

  • Upkeep Timestamp changed from 2026-11-14T01:16:13+00:00 to 2026-11-14T12:55:19+00:00

UB Updated by Upkeep Bot 18 days ago Actions #48

  • Upkeep Timestamp changed from 2026-11-14T12:55:19+00:00 to 2026-11-15T01:20:53+00:00

UB Updated by Upkeep Bot 17 days ago Actions #49

  • Upkeep Timestamp changed from 2026-11-15T01:20:53+00:00 to 2026-11-15T13:00:05+00:00

UB Updated by Upkeep Bot 17 days ago Actions #50

  • Upkeep Timestamp changed from 2026-11-15T13:00:05+00:00 to 2026-11-16T01:22:02+00:00

UB Updated by Upkeep Bot 16 days ago Actions #51

  • Upkeep Timestamp changed from 2026-11-16T01:22:02+00:00 to 2026-11-16T13:36:16+00:00

UB Updated by Upkeep Bot 16 days ago Actions #52

  • Upkeep Timestamp changed from 2026-11-16T13:36:16+00:00 to 2026-11-17T01:23:24+00:00

UB Updated by Upkeep Bot 15 days ago Actions #53

  • Upkeep Timestamp changed from 2026-11-17T01:23:24+00:00 to 2026-11-17T13:17:06+00:00

UB Updated by Upkeep Bot 15 days ago Actions #54

  • Upkeep Timestamp changed from 2026-11-17T13:17:06+00:00 to 2026-11-18T01:29:24+00:00

UB Updated by Upkeep Bot 14 days ago Actions #55

  • Upkeep Timestamp changed from 2026-11-18T01:29:24+00:00 to 2026-11-18T12:57:40+00:00

UB Updated by Upkeep Bot 14 days ago Actions #56

  • Upkeep Timestamp changed from 2026-11-18T12:57:40+00:00 to 2026-11-19T01:19:07+00:00

UB Updated by Upkeep Bot 13 days ago Actions #57

  • Upkeep Timestamp changed from 2026-11-19T01:19:07+00:00 to 2026-11-19T13:12:13+00:00

UB Updated by Upkeep Bot 13 days ago Actions #58

  • Upkeep Timestamp changed from 2026-11-19T13:12:13+00:00 to 2026-11-20T01:08:22+00:00

UB Updated by Upkeep Bot 11 days ago Actions #59

  • Upkeep Timestamp changed from 2026-11-20T01:08:22+00:00 to 2026-11-21T13:00:41+00:00

UB Updated by Upkeep Bot 11 days ago Actions #60

  • Upkeep Timestamp changed from 2026-11-21T13:00:41+00:00 to 2026-11-22T01:55:55+00:00

UB Updated by Upkeep Bot 10 days ago Actions #61

  • Upkeep Timestamp changed from 2026-11-22T01:55:55+00:00 to 2026-11-22T13:14:26+00:00

UB Updated by Upkeep Bot 10 days ago Actions #62

  • Upkeep Timestamp changed from 2026-11-22T13:14:26+00:00 to 2026-11-23T01:45:02+00:00

UB Updated by Upkeep Bot 9 days ago Actions #63

  • Upkeep Timestamp changed from 2026-11-23T01:45:02+00:00 to 2026-11-23T13:22:33+00:00

UB Updated by Upkeep Bot 9 days ago Actions #64

  • Upkeep Timestamp changed from 2026-11-23T13:22:33+00:00 to 2026-11-24T01:13:33+00:00

UB Updated by Upkeep Bot 8 days ago Actions #65

  • Upkeep Timestamp changed from 2026-11-24T01:13:33+00:00 to 2026-11-24T13:49:13+00:00

UB Updated by Upkeep Bot 8 days ago Actions #66

  • Upkeep Timestamp changed from 2026-11-24T13:49:13+00:00 to 2026-11-25T01:13:27+00:00

UB Updated by Upkeep Bot 7 days ago Actions #67

  • Upkeep Timestamp changed from 2026-11-25T01:13:27+00:00 to 2026-11-25T13:34:59+00:00

UB Updated by Upkeep Bot 7 days ago Actions #68

  • Upkeep Timestamp changed from 2026-11-25T13:34:59+00:00 to 2026-11-26T01:13:57+00:00

UB Updated by Upkeep Bot 6 days ago Actions #69

  • Upkeep Timestamp changed from 2026-11-26T01:13:57+00:00 to 2026-11-26T13:12:10+00:00

UB Updated by Upkeep Bot 6 days ago Actions #70

  • Upkeep Timestamp changed from 2026-11-26T13:12:10+00:00 to 2026-11-27T01:47:30+00:00

UB Updated by Upkeep Bot 5 days ago Actions #71

  • Upkeep Timestamp changed from 2026-11-27T01:47:30+00:00 to 2026-11-27T13:15:54+00:00

UB Updated by Upkeep Bot 5 days ago Actions #72

  • Upkeep Timestamp changed from 2026-11-27T13:15:54+00:00 to 2026-11-28T01:31:19+00:00

UB Updated by Upkeep Bot 4 days ago Actions #73

  • Upkeep Timestamp changed from 2026-11-28T01:31:19+00:00 to 2026-11-28T13:15:21+00:00

UB Updated by Upkeep Bot 4 days ago Actions #74

  • Upkeep Timestamp changed from 2026-11-28T13:15:21+00:00 to 2026-11-29T01:21:32+00:00

UB Updated by Upkeep Bot 3 days ago Actions #75

  • Upkeep Timestamp changed from 2026-11-29T01:21:32+00:00 to 2026-11-29T12:58:47+00:00

UB Updated by Upkeep Bot 3 days ago Actions #76

  • Upkeep Timestamp changed from 2026-11-29T12:58:47+00:00 to 2026-11-30T01:38:04+00:00

UB Updated by Upkeep Bot 2 days ago Actions #77

  • Upkeep Timestamp changed from 2026-11-30T01:38:04+00:00 to 2026-11-30T13:12:41+00:00

UB Updated by Upkeep Bot 1 day ago Actions #78

  • Upkeep Timestamp changed from 2026-11-30T13:12:41+00:00 to 2026-12-01T13:05:35+00:00

UB Updated by Upkeep Bot about 15 hours ago Actions #79

  • Upkeep Timestamp changed from 2026-12-01T13:05:35+00:00 to 2026-12-02T01:19:30+00:00

UB Updated by Upkeep Bot about 3 hours ago Actions #80

  • Upkeep Timestamp changed from 2026-12-02T01:19:30+00:00 to 2026-12-02T13:08:25+00:00
Actions

Also available in: PDF Atom