Skip to content

crimson/os/seastore: introduce inplace rewrite for RBM - #54525

Merged
cyx1231st merged 11 commits into
ceph:mainfrom
myoungwon:wip-delta-overwrite-inplace-replay
Jan 8, 2024
Merged

cyx1231st merged 11 commits into
ceph:mainfrom
myoungwon:wip-delta-overwrite-inplace-replay

Conversation

@myoungwon

@myoungwon myoungwon commented Nov 16, 2023 •

Copy link
Copy Markdown
Member

Follow up #50419

The goal of this PR is to perform inplace overwrite during rewriting dirty data extents.

Signed-off-by: Myoungwon Oh [email protected]

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@myoungwon
myoungwon requested a review from a team as a code owner November 16, 2023 13:57
@myoungwon myoungwon changed the title WIP:crimson/os/seastore: introduce delta in-place overwrite during rewrite_dirty WIP:crimson/os/seastore: introduce in-place delta overwrite during rewrite_dirty Nov 16, 2023
@myoungwon

Copy link
Copy Markdown
Member Author

@cyx1231st Please take a look.

@myoungwon
myoungwon force-pushed the wip-delta-overwrite-inplace-replay branch from 1d36980 to 5d5660f Compare December 5, 2023 06:48
@cyx1231st
cyx1231st self-requested a review December 6, 2023 03:03
@cyx1231st

Copy link
Copy Markdown
Member

jenkins test signed

@cyx1231st cyx1231st left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still looking.

Comment thread src/crimson/os/seastore/transaction.h Resolved
@myoungwon
myoungwon force-pushed the wip-delta-overwrite-inplace-replay branch from 5d5660f to ded97ee Compare December 6, 2023 12:30

@cyx1231st cyx1231st left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still looking

Comment thread src/crimson/os/seastore/transaction.h Resolved
Comment thread src/crimson/os/seastore/transaction.h Resolved
Comment thread src/crimson/os/seastore/cache.cc Resolved
Comment thread src/crimson/os/seastore/cache.h Resolved
@myoungwon
myoungwon force-pushed the wip-delta-overwrite-inplace-replay branch from ded97ee to f3d0921 Compare December 10, 2023 05:11

@cyx1231st cyx1231st left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still looking

Comment thread src/crimson/os/seastore/transaction.h Resolved
Comment thread src/crimson/os/seastore/transaction.h Resolved
Comment thread src/crimson/os/seastore/transaction.h Resolved
Comment thread src/crimson/os/seastore/cache.h Resolved
Comment thread src/crimson/os/seastore/cache.cc Resolved
Comment thread src/crimson/os/seastore/cache.cc Resolved
Comment thread src/crimson/os/seastore/cache.cc Resolved
@myoungwon
myoungwon force-pushed the wip-delta-overwrite-inplace-replay branch 4 times, most recently from 9732eec to 16542cd Compare December 13, 2023 02:26
Comment thread src/crimson/os/seastore/cache.cc Resolved
Comment thread src/crimson/os/seastore/cache.cc Resolved
Comment thread src/crimson/os/seastore/cache.cc Resolved
@myoungwon
myoungwon force-pushed the wip-delta-overwrite-inplace-replay branch 7 times, most recently from 43813aa to b2303bb Compare December 21, 2023 03:57

@cyx1231st cyx1231st left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to me the design is almost in shape.

There are modifications to the common seastore logic, probably worth more looks to make sure it is not breaking any critical invariants. cc @athanatos and @xxhdx1985126

Comment thread src/test/crimson/seastore/test_block.h Resolved
Comment thread src/crimson/os/seastore/cache.cc Resolved
Comment thread src/crimson/os/seastore/cache.cc Resolved
Comment thread src/crimson/os/seastore/cache.cc Resolved
Comment thread src/crimson/os/seastore/cache.cc Resolved
Comment thread src/crimson/os/seastore/cache.cc Resolved
@myoungwon
myoungwon force-pushed the wip-delta-overwrite-inplace-replay branch 2 times, most recently from 21a26b8 to 349f61f Compare December 22, 2023 00:50
@myoungwon
myoungwon force-pushed the wip-delta-overwrite-inplace-replay branch 2 times, most recently from 9bb1588 to 51f01a7 Compare December 28, 2023 05:34

@cyx1231st cyx1231st left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with some nits!

Please make sure that:

  • This PR doesn't break ceph builds.
  • It doesn't break seastore with the segmented backend (I suppose running random writes several minutes should be OK).

Comment thread src/crimson/os/seastore/cache.cc Resolved
Comment thread src/crimson/os/seastore/cache.cc Resolved
Comment thread src/crimson/os/seastore/cache.cc Resolved
@cyx1231st cyx1231st changed the title WIP:crimson/os/seastore: introduce in-place delta overwrite during rewrite_dirty crimson/os/seastore: introduce inplace rewrite for RBM Dec 28, 2023
@myoungwon
myoungwon force-pushed the wip-delta-overwrite-inplace-replay branch from 51f01a7 to 33dae15 Compare December 28, 2023 06:41
@myoungwon

Copy link
Copy Markdown
Member Author

jenkins test api

@myoungwon

Copy link
Copy Markdown
Member Author

Is there any comments I need to address to merge this PR into the main?

@cyx1231st

cyx1231st commented Jan 5, 2024 •

Copy link
Copy Markdown
Member

@myoungwon I don't have further comments.

The only thing left towards merging was mentioned in #54525 (review), which is to double check in shaman build and validate that seastore + segment is still working with rados bench after this PR.

myoungwon and others added 8 commits January 5, 2024 15:43
… before in prepare_record

Signed-off-by: Myoungwon Oh <[email protected]>
…tent in an inplace manner

Signed-off-by: Myoungwon Oh <[email protected]>
…track of modified region

It has a limitation to keep track of the modified region using the existing
deltas because we can not get the correct region in two cases: 1) a case where replay
is done and 2) duplicate_for_write. This commit introduces modified region
to solve the problem.

Signed-off-by: Myoungwon Oh <[email protected]>
…ontents is called

set_contents causes the overflow at times because
alloc_extent is allowed to use uint32_t.

Specifically, in random_writes case, PADDING_SIZE is 256<<10,
whereas set_contents's len is uint16_t.

Signed-off-by: Myoungwon Oh <[email protected]>
@myoungwon
myoungwon force-pushed the wip-delta-overwrite-inplace-replay branch from 33dae15 to 72c9d6d Compare January 5, 2024 06:55
@myoungwon

Copy link
Copy Markdown
Member Author

@myoungwon I don't have further comments.

The only thing left towards merging was mentioned in #54525 (review), which is to double check in shaman build and validate that seastore + segment is still working with rados bench after this PR.

How can I verify that seashore + segment works with rados bench? Did you mean running crimson-rados-experimental suite?

@cyx1231st

Copy link
Copy Markdown
Member

How can I verify that seashore + segment works with rados bench? Did you mean running crimson-rados-experimental suite?

Not necessarily because there might be unrelated issues to fix there.

Not sure what's your method to validate seastore + RBM except for the existing UTs.

I usually do full-stack tests using vstart locally, for example:

MGR=0 MON=1 OSD=1 MDS=0 RGW=0 ../src/vstart.sh --no-restart -n -x --without-dashboard --nolockdep --crimson --nodaemon --redirect-output --seastore
./bin/ceph osd pool create test-pool 128 128 && ./bin/ceph osd pool set test-pool size 1 --yes-i-really-mean-it
./bin/rados bench -p test-pool 120 write -b 4096 --concurrent-ios=128 --no-cleanup

@myoungwon

myoungwon commented Jan 5, 2024 •

Copy link
Copy Markdown
Member Author

How can I verify that seashore + segment works with rados bench? Did you mean running crimson-rados-experimental suite?

Not necessarily because there might be unrelated issues to fix there.

Not sure what's your method to validate seastore + RBM except for the existing UTs.

I usually do full-stack tests using vstart locally, for example:

MGR=0 MON=1 OSD=1 MDS=0 RGW=0 ../src/vstart.sh --no-restart -n -x --without-dashboard --nolockdep --crimson --nodaemon --redirect-output --seastore
./bin/ceph osd pool create test-pool 128 128 && ./bin/ceph osd pool set test-pool size 1 --yes-i-really-mean-it
./bin/rados bench -p test-pool 120 write -b 4096 --concurrent-ios=128 --no-cleanup
  1. Build:
    The build is triggered. We can see the progress at https://shaman.ceph.com/builds/ceph/

  2. Test result:
    I ran rados bench on my local test cluster, as below, using your script.

root@dskbd016:/home/smrc/ceph_main/ceph/build# MGR=1 MON=1 OSD=1 MDS=0 RGW=0 ../src/vstart.sh -n -x --without-dashboard --nodaemon --redirect-output --nolockdep --crimson --seastore --seastore-devs /dev/nvme23n1
root@dskbd016:/home/smrc/ceph_main/ceph/build# ./bin/ceph osd pool create test-pool 128 128 && ./bin/ceph osd pool set test-pool size 1 --yes-i-really-mean-it
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2024-01-05T17:16:40.178+0900 7f757efb8640 -1 WARNING: all dangerous and experimental features are enabled.
2024-01-05T17:16:40.190+0900 7f757efb8640 -1 WARNING: all dangerous and experimental features are enabled.
pool 'test-pool' created
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2024-01-05T17:16:41.350+0900 7fec3efb3640 -1 WARNING: all dangerous and experimental features are enabled.
2024-01-05T17:16:41.366+0900 7fec3dd51640 -1 WARNING: all dangerous and experimental features are enabled.
set pool 2 size to 1
root@dskbd016:/home/smrc/ceph_main/ceph/build# ./bin/rados bench -p test-pool 120 write -b 4096 --concurrent-ios=128 --no-cleanup

Maintaining 128 concurrent writes of 4096 bytes to objects of size 4096 for up to 120 seconds or 0 objects
Object prefix: benchmark_data_dskbd016_1432633
  sec Cur ops   started  finished  avg MB/s  cur MB/s last lat(s)  avg lat(s)
    0       0         0         0         0         0           -           0
    1     128       182        54  0.210925  0.210938    0.981283    0.622652
    2     128       278       150  0.292946     0.375     0.76623     1.01779
    3     128       402       274  0.356742  0.484375    0.568207     1.08652
    4     128       538       410  0.400358   0.53125    0.535343     1.06544
    5     128       719       591  0.461681  0.707031     0.71517    0.975715
    6     128       888       760  0.494751  0.660156    0.601163    0.933978
    7     128      1044       916  0.511119  0.609375    0.695198    0.906079
    8     128      1231      1103   0.53853  0.730469    0.592058    0.878824
    9     128      1406      1278  0.554642  0.683594    0.461015    0.857114
   10     128      1590      1462  0.571047   0.71875    0.408388    0.835857
   11     128      1766      1638  0.581628    0.6875    0.679196    0.823536
   12     128      1958      1830  0.595654      0.75     2.24333    0.811705
   13     128      2143      2015  0.605419  0.722656     1.26484    0.796852
   14     128      2338      2210  0.616578  0.761719    0.897501    0.786639
   15     128      2510      2382  0.620261  0.671875    0.692659    0.781475
   16     128      2700      2572  0.627878  0.742188    0.699825    0.773981
   17     128      2887      2759  0.633909  0.730469     1.09973    0.766995
   18     128      3057      2929  0.635581  0.664062    0.493088    0.764237
   19     128      3247      3119  0.641189  0.742188     1.89955    0.761377
2024-01-05T17:17:12.065044+0900 min lat: 0.0514108 max lat: 3.83687 avg lat: 0.760413
  sec Cur ops   started  finished  avg MB/s  cur MB/s last lat(s)  avg lat(s)
   20     128      3411      3283  0.641158  0.640625     0.60506    0.760413
   21     128      3583      3455  0.642617  0.671875    0.856301    0.760387
   22     128      3742      3614  0.641636  0.621094    0.867724    0.761591
   23     128      3887      3759  0.638364  0.566406    0.591787    0.766371
   24     128      4044      3916  0.637316  0.613281    0.935722    0.768092
   25     128      4214      4086  0.638384  0.664062     1.65706    0.768207
   26     128      4384      4256   0.63937  0.664062    0.487968    0.767324
   27     128      4552      4424  0.639993   0.65625    0.436189     0.76632
   28     128      4714      4586  0.639735  0.632812    0.568085    0.766119
   29     128      4875      4747   0.63936  0.628906     2.10199    0.767325
   30     128      5044      4916  0.640051  0.660156     0.46283    0.768225
   31     128      5204      5076  0.639564     0.625    0.427279    0.769135
   32     128      5368      5240  0.639595  0.640625    0.485489    0.769016
   33     128      5536      5408  0.640098   0.65625    0.469361    0.769208
   34     128      5687      5559  0.638619  0.589844    0.747025    0.770299
   35     128      5860      5732  0.639679  0.675781    0.464503    0.769571
   36     128      6030      5902  0.640355  0.664062     1.13753    0.768578
   37     128      6194      6066  0.640361  0.640625     1.00808     0.76966
   38     128      6360      6232  0.640572  0.648438    0.492332    0.770227
   39     128      6511      6383   0.63927  0.589844     1.09364    0.770538
2024-01-05T17:17:32.066701+0900 min lat: 0.0514108 max lat: 3.83687 avg lat: 0.771247
  sec Cur ops   started  finished  avg MB/s  cur MB/s last lat(s)  avg lat(s)
   40     128      6674      6546  0.639205  0.636719    0.805562    0.771247
   41     128      6829      6701   0.63838  0.605469    0.442282    0.772304
   42     128      6993      6865  0.638433  0.640625    0.452828    0.772621
   43     128      7153      7025  0.638119     0.625     1.24213    0.773078
   44     128      7309      7181  0.637465  0.609375    0.523349    0.773828
   45     128      7479      7351  0.638054  0.664062     1.04775    0.774238
   46     128      7655      7527  0.639128    0.6875     1.05561    0.774372
   47     128      7805      7677  0.637995  0.585938     1.03954    0.774959
   48     128      7979      7851  0.638863  0.679688    0.423858    0.774318
   49     128      8143      8015  0.638898  0.640625    0.811426    0.774217
   50     128      8290      8162  0.637603  0.574219      3.0136    0.775214
   51     128      8445      8317  0.636972  0.605469    0.899906    0.776671
   52     128      8597      8469   0.63614   0.59375     1.39465    0.777597
   53     128      8751      8623  0.635487  0.601562    0.819854    0.778921
   54     128      8914      8786  0.635509  0.636719     1.27428    0.779452
   55     128      9059      8931  0.634251  0.566406    0.468449     0.78041
   56     128      9211      9083  0.633527   0.59375    0.993356    0.781205
   57     128      9362      9234   0.63276  0.589844     1.18083    0.782376
   58     128      9515      9387  0.632154  0.597656    0.929002    0.783383
   59     128      9652      9524  0.630509  0.535156    0.567976    0.784627
2024-01-05T17:17:52.068345+0900 min lat: 0.0514108 max lat: 4.03357 avg lat: 0.786458
  sec Cur ops   started  finished  avg MB/s  cur MB/s last lat(s)  avg lat(s)
   60     128      9792      9664  0.629115  0.546875    0.595935    0.786458
   61     128      9934      9806  0.627894  0.554688    0.568391    0.788662
   62     128     10068      9940  0.626208  0.523438    0.704171    0.790326
   63     128     10194     10066   0.62408  0.492188    0.751172     0.79285
   64     128     10327     10199  0.622446  0.519531    0.544619    0.794577
   65     128     10462     10334  0.620982  0.527344     1.06592    0.796839
   66     128     10600     10472   0.61974  0.539062    0.539585    0.798604
   67     128     10737     10609  0.618477  0.535156     2.04852    0.801032
   68     128     10878     10750  0.617481  0.550781    0.947344     0.80284
   69     128     11018     10890  0.616457  0.546875    0.842392     0.80395
   70     128     11160     11032  0.615574  0.554688     1.08565    0.805324
   71     128     11281     11153   0.61356  0.472656    0.567216    0.806959
   72     128     11414     11286  0.612254  0.519531     2.09633    0.809605
   73     128     11552     11424   0.61125  0.539062    0.600062    0.811375
   74     128     11691     11563  0.610327  0.542969     1.79624    0.812983
   75     128     11834     11706  0.609637  0.558594    0.565498    0.813857
   76     128     11964     11836  0.608296  0.507812      1.5238    0.815042
   77     128     12103     11975  0.607447  0.542969     1.56692     0.81702
   78     128     12241     12113   0.60657  0.539062     1.51812    0.818573
   79     128     12363     12235  0.604924  0.476562    0.643759    0.819476
2024-01-05T17:18:12.070081+0900 min lat: 0.0514108 max lat: 4.03357 avg lat: 0.821016
  sec Cur ops   started  finished  avg MB/s  cur MB/s last lat(s)  avg lat(s)
   80     128     12498     12370  0.603953  0.527344       1.802    0.821016
   81     128     12635     12507  0.603103  0.535156     1.45507    0.822887
   82     128     12769     12641  0.602131  0.523438    0.590936     0.82426
   83     128     12906     12778  0.601324  0.535156    0.510295    0.825252
   84     128     13028     12900  0.599838  0.476562    0.587887    0.826839
   85     128     13167     13039  0.599168  0.542969    0.557924    0.828114
   86     128     13303     13175  0.598378   0.53125    0.559091    0.829338
   87     128     13423     13295  0.596888   0.46875    0.689364     0.83145
   88     128     13547     13419  0.595609  0.484375    0.697633    0.832989
   89     128     13680     13552  0.594753  0.519531    0.702336    0.834315
   90     128     13813     13685  0.593917  0.519531     0.95043    0.835101
   91     128     13939     13811  0.592799  0.492188    0.619601    0.836681
   92     128     14077     13949  0.592214  0.539062    0.559971    0.838112
   93     128     14218     14090  0.591768  0.550781     3.69518    0.839178
   94     128     14358     14230   0.59129  0.546875    0.652954    0.839952
   95     128     14477     14349  0.589959  0.464844    0.602224    0.841226
   96     128     14603     14475   0.58894  0.492188    0.654663    0.842925
   97     128     14732     14604  0.588063  0.503906    0.594913    0.844108
   98     128     14860     14732  0.587164       0.5    0.629503    0.845476
   99     128     14991     14863  0.586402  0.511719      1.6576    0.846848
2024-01-05T17:18:32.071720+0900 min lat: 0.0514108 max lat: 5.78323 avg lat: 0.848703
  sec Cur ops   started  finished  avg MB/s  cur MB/s last lat(s)  avg lat(s)
  100     128     15114     14986  0.585342  0.480469     1.30073    0.848703
  101     128     15247     15119   0.58469  0.519531    0.560873    0.850193
  102     128     15379     15251  0.584012  0.515625     0.58459    0.851119
  103     128     15498     15370  0.582855  0.464844    0.612987    0.852387
  104     128     15632     15504  0.582283  0.523438     1.06055    0.853593
  105     128     15766     15638  0.581722  0.523438     1.02474    0.854334
  106     128     15902     15774  0.581246   0.53125    0.588089    0.855393
  107     128     16031     15903  0.580522  0.503906     1.06853      0.8565
  108     128     16165     16037  0.579994  0.523438    0.995374    0.857257
  109     128     16298     16170  0.579438  0.519531     1.05498    0.858027
  110     128     16433     16305  0.578964  0.527344     1.55799    0.859085
  111     128     16558     16430  0.578147  0.488281     1.16873    0.860088
  112     128     16684     16556  0.577379  0.492188    0.603001    0.860815
  113     128     16817     16689  0.576867  0.519531     1.27076    0.861661
  114     128     16954     16826  0.576501  0.535156     1.29796    0.862545
  115     128     17087     16959  0.576005  0.519531      1.0715    0.863208
  116     128     17218     17090  0.575451  0.511719    0.585203    0.864137
  117     128     17357     17229  0.575173  0.542969    0.833544    0.864892
  118     128     17494     17366  0.574833  0.535156    0.593791    0.865472
  119     128     17619     17491  0.574105  0.488281     1.01064    0.866218
2024-01-05T17:18:52.073336+0900 min lat: 0.0514108 max lat: 5.78323 avg lat: 0.867204
  sec Cur ops   started  finished  avg MB/s  cur MB/s last lat(s)  avg lat(s)
  120     126     17744     17618  0.573455  0.496094     1.27501    0.867204
Total time run:         120.764
Total writes made:      17744
Write size:             4096
Object size:            4096
Bandwidth (MB/sec):     0.57395
Stddev Bandwidth:       0.0844094
Max bandwidth (MB/sec): 0.761719
Min bandwidth (MB/sec): 0.210938
Average IOPS:           146
Stddev IOPS:            21.6088
Max IOPS:               195
Min IOPS:               54
Average Latency(s):     0.868629
Stddev Latency(s):      0.509574
Max latency(s):         5.78323
Min latency(s):         0.0514108

@cyx1231st
cyx1231st merged commit 60c4b64 into ceph:main Jan 8, 2024
@myoungwon

Copy link
Copy Markdown
Member Author

@cyx1231st I have a question about the dynamic partition we had discussed before (#51770 (comment)). Could you let me know when the dynamic partition is triggered?

@cyx1231st

Copy link
Copy Markdown
Member

@cyx1231st I have a question about the dynamic partition we had discussed before (#51770 (comment)). Could you let me know when the dynamic partition is triggered?

Currently this feature is absent -- with multiple shards, seastore with segmented/zoned/RB backends are statically partitioned upon mkfs.

SeaStore common logic still needs optimizations and stablizations, and the existing static partitioning is sufficient for these goals I suppose.

However, to proceed the design of dynamic partitioning, I suppose it will become part of the AsyncCleaner to rebalance free space among all shards of a specific device.

My rough understanding is that similar to the existing trimming and cleaning design, AsyncCleaner should not do rebalancing too eagerly when situation is good enough and the I/O is busy. And I/O should be blocked when the situation is dire -- e.g. one shard is almost filled, it should be able to wait for rebalancing instead of proceeding the allocations and returning errors.

@myoungwon

myoungwon commented Jan 16, 2024 •

Copy link
Copy Markdown
Member Author

Ok. Let me clarify this.
@cyx1231st @athanatos
The following items are currently what I am working on or planning to.
makes sense to you?

  1. Partial-overwrite
  1. Dynamic partition
  • discussed briefly above conversation
  1. SSD discard command support
  2. Extend test coverage
  • The first step is probably adding seastore support to ceph_objectstore_tool, including relevant tests?
  1. FDP (flexible data placement) support
  • FDP is a new standard to minimize WAF in the device level. We can exploit this feature by allocating separated domains to RBM (journal and rbm) or segmented partition.
  1. Block allocator improvement
  • Introduce enhanced block allocator with locality and adopt other block allocators from bluestore
  1. Defragmentation module
  • Minimizing fragmentation on RBM (optional)
  1. Performance (optional)

@cyx1231st

Copy link
Copy Markdown
Member
  1. Partial-overwrite
    b. Support EXIST_MUTATION_PENDING (crimson/os/seastore: introduce delta-based overwrite #50419 (comment))

I'm trying to recall this. I suppose this is related the following separate supports:

  • Delta-based overwrite to the cloned data extent;
  • Remap the cloned data extent;
  • Delta-based overwrite to the remapping data extent (whether it is a clone or not);

And I think we probably need to firstly understand why/how the invarients implemented in #54326 break the unit tests.

  1. Extend test coverage
    The first step is probably adding seastore support to ceph_objectstore_tool, including relevant tests?

I'm not familiar with the tool yet, which test infrastructure will use/call ceph_objectstore_tool?

  1. Performance (optional)

I would suggest to prioritize this effort above the optimizations. If one optimization turns out to be complicated, it might need to be postponed until it is proved to be really performance benefitial.

@myoungwon

myoungwon commented Jan 18, 2024 •

Copy link
Copy Markdown
Member Author
  1. Partial-overwrite
    b. Support EXIST_MUTATION_PENDING (crimson/os/seastore: introduce delta-based overwrite #50419 (comment))

I'm trying to recall this. I suppose this is related the following separate supports:

  • Delta-based overwrite to the cloned data extent;
  • Remap the cloned data extent;
  • Delta-based overwrite to the remapping data extent (whether it is a clone or not);

And I think we probably need to firstly understand why/how the invarients implemented in #54326 break the unit tests.

OK.

  1. Extend test coverage
    The first step is probably adding seastore support to ceph_objectstore_tool, including relevant tests?

I'm not familiar with the tool yet, which test infrastructure will use/call ceph_objectstore_tool?

I found that several tests using this tool. For instance:
./qa/standalone/osd/pg-split-merge.sh
./qa/standalone/scrub/osd-scrub-snaps.sh
./qa/standalone/osd/osd-bluefs-volume-ops.sh
./qa/standalone/special/ceph_objectstore_tool.py
./qa/suites/rados/objectstore/backends/ceph_objectstore_tool.yaml
./qa/standalone/osd-backfill/osd-backfill-space.sh
./qa/tasks/repair_test.py
./qa/standalone/scrub/osd-scrub-repair.sh

It looks like the purpose of this tool is to inject ops to check the objectstore works correctly
(teuthology uses this tool through /qa/tasks/ceph_objectstore_tool.py).

  1. Performance (optional)

I would suggest to prioritize this effort above the optimizations. If one optimization turns out to be complicated, it might need to be postponed until it is proved to be really performance benefitial.

Ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants