Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List all block groups/chunks #559

Closed
kdave opened this issue Dec 22, 2022 · 3 comments
Closed

List all block groups/chunks #559

kdave opened this issue Dec 22, 2022 · 3 comments
Milestone

Comments

@kdave
Copy link
Owner

kdave commented Dec 22, 2022

New command has been added in v6.1 to list all block groups/chunks. Not yet finalized.

Example output:

PNumber              Type    PStart    Length      PEnd Age    LStart Usage%
------- ----------------- --------- --------- --------- --- --------- ------
      -             empty         -   1.00MiB         -   -         -      -
      1       Data/single   1.00MiB  12.00MiB  13.00MiB   3  70.39GiB  86.00
      -             empty         -   8.00MiB         -   -         -      -
      2   Metadata/DUP     21.00MiB 256.00MiB 277.00MiB  49 112.90GiB  29.84
      3   Metadata/DUP    277.00MiB 256.00MiB 533.00MiB  50 112.90GiB  29.84
      4       Data/single 533.00MiB   1.00GiB   1.52GiB  11  76.40GiB  89.43
      -             empty         -  16.00MiB         -   -         -      -
      5       Data/single   1.54GiB   1.00GiB   2.54GiB  35 100.90GiB  34.93
      6       Data/single   2.54GiB   1.00GiB   3.54GiB  34  99.90GiB  53.12
      7       Data/single   3.54GiB   1.00GiB   4.54GiB   6  71.40GiB  64.98
      8       Data/single   4.54GiB   1.00GiB   5.54GiB  33  98.90GiB  97.59
      9       Data/single   5.54GiB   1.00GiB   6.54GiB  32  97.90GiB  91.22
      -             empty         -  64.00MiB         -   -         -      -
     10       Data/single   6.60GiB 448.00MiB   7.04GiB   2  69.95GiB  99.98
     11       Data/single   7.04GiB   1.00GiB   8.04GiB  31  96.90GiB  89.36
     12     System/DUP      8.04GiB  32.00MiB   8.07GiB  47 112.87GiB   0.05
     13     System/DUP      8.07GiB  32.00MiB   8.10GiB  48 112.87GiB   0.05
      -             empty         - 448.00MiB         -   -         -      -
     14   Metadata/DUP      8.54GiB 256.00MiB   8.79GiB  41 112.12GiB  38.30
     15   Metadata/DUP      8.79GiB 256.00MiB   9.04GiB  42 112.12GiB  38.30
     16   Metadata/DUP      9.04GiB 256.00MiB   9.29GiB  43 112.37GiB  45.14
     17   Metadata/DUP      9.29GiB 256.00MiB   9.54GiB  44 112.37GiB  45.14
     18   Metadata/DUP      9.54GiB 256.00MiB   9.79GiB  51 113.15GiB  39.64
     19   Metadata/DUP      9.79GiB 256.00MiB  10.04GiB  52 113.15GiB  39.64
     20       Data/single  10.04GiB   1.00GiB  11.04GiB  30  95.90GiB  86.46
     21       Data/single  11.04GiB   1.00GiB  12.04GiB  15  80.40GiB  98.74
     22       Data/single  12.04GiB   1.00GiB  13.04GiB  29  94.90GiB  75.36
     23       Data/single  13.04GiB   1.00GiB  14.04GiB  36 102.15GiB  44.38
     24   Metadata/DUP     14.04GiB 256.00MiB  14.29GiB  45 112.62GiB  53.41
     25   Metadata/DUP     14.29GiB 256.00MiB  14.54GiB  46 112.62GiB  53.41
     26       Data/single  14.54GiB   1.00GiB  15.54GiB  28  93.90GiB  74.87
     27   Metadata/DUP     15.54GiB 256.00MiB  15.79GiB   0  45.00GiB  34.78
     28   Metadata/DUP     15.79GiB 256.00MiB  16.04GiB   1  45.00GiB  34.78
     29   Metadata/DUP     16.04GiB 256.00MiB  16.29GiB  53 113.40GiB  12.17
     30   Metadata/DUP     16.29GiB 256.00MiB  16.54GiB  54 113.40GiB  12.17
     31       Data/single  16.54GiB   1.00GiB  17.54GiB  13  78.40GiB  78.98
     32       Data/single  17.54GiB   1.00GiB  18.54GiB  27  92.65GiB  76.05
     33       Data/single  18.54GiB   1.00GiB  19.54GiB  26  91.65GiB  81.63
     34   Metadata/DUP     19.54GiB 256.00MiB  19.79GiB  57 115.65GiB  16.44
@kdave kdave added the experimental Experimental or unstable feature label Dec 22, 2022
@kdave
Copy link
Owner Author

kdave commented Oct 9, 2023

Remaining work:

  • test on mult-device filesystems, the grouping is wrong in combination with --sort
  • finish the sorting infrastructure (to allow multiple keys and direction), replace current sorting keys

@kdave
Copy link
Owner Author

kdave commented Jun 28, 2024

Now available in the experimental build, sorting a few columns work, multi device works (device id is printed in the column).

Remaining: reorder columns

Devid PNumber      Type/profile    PStart    Length      PEnd LNumber    LStart Usage%
----- ------- ----------------- --------- --------- --------- ------- --------- ------
    1       1       Data/single   1.00MiB  84.00MiB  85.00MiB      68 191.60GiB  58.93
    1       2     System/DUP     85.00MiB  32.00MiB 117.00MiB      39 140.17GiB   0.05
    1       3     System/DUP    117.00MiB  32.00MiB 149.00MiB      40 140.17GiB   0.05
    1       4   Metadata/DUP    149.00MiB 192.00MiB 341.00MiB      59 188.41GiB  71.61
    1       5   Metadata/DUP    341.00MiB 192.00MiB 533.00MiB      60 188.41GiB  71.61
    1       6       Data/single 533.00MiB   1.00GiB   1.52GiB      49 169.91GiB  72.69
    1       7       Data/single   1.52GiB  16.00MiB   1.54GiB      69 191.68GiB  79.81
    1       8       Data/single   1.54GiB   1.00GiB   2.54GiB      17 100.90GiB  48.20
...

kdave added a commit that referenced this issue Jul 17, 2024
Sync help text with current implementation (sorting, no usage nor empty
options).

Issue: #559
Signed-off-by: David Sterba <[email protected]>
@kdave
Copy link
Owner Author

kdave commented Jul 17, 2024

Documentation updated. I'll move it out of experimental in 6.10 and then reorder the columns after feedback. Eventually the list of columns can be also specified e.g. like the util-linux tools do.

kdave added a commit that referenced this issue Jul 17, 2024
The list-chunk command is deemed to be reasonably complete so make it
visible in the default build. The output can be tweaked later.

Issue: #559
Signed-off-by: David Sterba <[email protected]>
@kdave kdave removed the experimental Experimental or unstable feature label Jul 17, 2024
@kdave kdave added this to the v6.10 milestone Jul 17, 2024
kdave added a commit that referenced this issue Jul 30, 2024
Sync help text with current implementation (sorting, no usage nor empty
options).

Issue: #559
Signed-off-by: David Sterba <[email protected]>
kdave added a commit that referenced this issue Jul 30, 2024
The list-chunk command is deemed to be reasonably complete so make it
visible in the default build. The output can be tweaked later.

Issue: #559
Signed-off-by: David Sterba <[email protected]>
@kdave kdave closed this as completed Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant