daos icon indicating copy to clipboard operation
daos copied to clipboard

DAOS-11406 rdb: Use VOS local TXs

Open liw opened this issue 2 years ago • 27 comments

Every RDB (update) TX invokes multiple VOS writes, each of which performs a WAL commit. This patch reduces those WAL commits to one per RDB TX by utilizing the new VOS local TXs to group all VOS writes of one RDB TX into one VOS local TX.

  • An rdb_vos_tx_t handle is introduced to hide the vos/dtx details from the rest of rdb.

  • Some rdb_lc_discard calls are no longer necessary, for the VOS local TX mechanism will discard uncommited writes more efficiently.

  • Some "nvops" ("number of VOS TX operations") functions are added to provide dtx_begin with an upper bound of the number of VOS TX operations that will be invoked using a VOS TX handle. Hopefully this will become unnecessary in the future.

  • The rdb_tx_hdr decoding in rdb_tx_apply should use the actual length of the data, rather than the expected length.

  • Two places related to rdb_tx_hdr need to be refactored a bit in order to avoid compiler warnings along the line of "hdr may be used uninitialized". It's unclear why the compiler warnings suddenly come up.

Before requesting gatekeeper:

  • [ ] Two review approvals and any prior change requests have been resolved.
  • [ ] Testing is complete and all tests passed or there is a reason documented in the PR why it should be force landed and forced-landing tag is set.
  • [ ] Features: (or Test-tag*) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.
  • [ ] Commit messages follows the guidelines outlined here.
  • [ ] Any tests skipped by the ticket being addressed have been run and passed in the PR.

Gatekeeper:

  • [ ] You are the appropriate gatekeeper to be landing the patch.
  • [ ] The PR has 2 reviews by people familiar with the code, including appropriate watchers.
  • [ ] Githooks were used. If not, request that user install them and check copyright dates.
  • [ ] Checkpatch issues are resolved. Pay particular attention to ones that will show up on future PRs.
  • [ ] All builds have passed. Check non-required builds for any new compiler warnings.
  • [ ] Sufficient testing is done. Check feature pragmas and test tags and that tests skipped for the ticket are run and now pass with the changes.
  • [ ] If applicable, the PR has addressed any potential version compatibility issues.
  • [ ] Check the target branch. If it is master branch, should the PR go to a feature branch? If it is a release branch, does it have merge approval in the JIRA ticket.
  • [ ] Extra checks if forced landing is requested
    • [ ] Review comments are sufficiently resolved, particularly by prior reviewers that requested changes.
    • [ ] No new NLT or valgrind warnings. Check the classic view.
    • [ ] Quick-build or Quick-functional is not used.
  • [ ] Fix the commit message upon landing. Check the standard here. Edit it to create a single commit. If necessary, ask submitter for a new summary.

liw avatar Jun 09 '23 08:06 liw

Bug-tracker data: Ticket title is 'Change RDB to use new extended VOS API' Status is 'In Progress' Labels: 'md_on_ssd' https://daosio.atlassian.net/browse/DAOS-11406

github-actions[bot] avatar Jun 09 '23 08:06 github-actions[bot]

Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12330/2/execution/node/145/log

daosbuild1 avatar Jun 13 '23 06:06 daosbuild1

@jolivier23, @kccain, just in case you are interested, I requested draft reviews to make this PR easier for you to find.

liw avatar Jun 13 '23 06:06 liw

Test stage Functional Hardware Medium Verbs Provider completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12330/2/execution/node/1242/log

daosbuild1 avatar Jun 14 '23 04:06 daosbuild1

Test stage Build on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12330/5/execution/node/396/log

daosbuild1 avatar Dec 05 '23 07:12 daosbuild1

Test stage Build RPM on EL 9 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12330/5/execution/node/362/log

daosbuild1 avatar Dec 05 '23 07:12 daosbuild1

Test stage Build RPM on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12330/5/execution/node/372/log

daosbuild1 avatar Dec 05 '23 07:12 daosbuild1

Test stage Build RPM on Leap 15.4 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12330/5/execution/node/306/log

daosbuild1 avatar Dec 05 '23 07:12 daosbuild1

Test stage Build on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12330/6/execution/node/388/log

daosbuild1 avatar Dec 05 '23 07:12 daosbuild1

Test stage Build RPM on EL 9 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12330/6/execution/node/337/log

daosbuild1 avatar Dec 05 '23 07:12 daosbuild1

Test stage Build RPM on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12330/6/execution/node/364/log

daosbuild1 avatar Dec 05 '23 07:12 daosbuild1

@kccain, @jolivier23, could we do an initial round of review before the VOS part is ready? I have done some basic testing with one of @janekmi's WIP commit, but the full CI testing cannot start before the VOS part is ready.

liw avatar Dec 05 '23 11:12 liw

It sounds like this patch is going to be waiting for some vos implementation to land first, so there should be some more time for that?

Yes. Absolutely. Thanks for starting the review.

liw avatar Dec 07 '23 00:12 liw

Test stage Build RPM on EL 9 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12330/9/execution/node/377/log

daosbuild1 avatar Dec 14 '23 06:12 daosbuild1

Test stage Build RPM on Leap 15.5 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12330/9/execution/node/323/log

daosbuild1 avatar Dec 14 '23 06:12 daosbuild1

Test stage Build RPM on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12330/9/execution/node/380/log

daosbuild1 avatar Dec 14 '23 06:12 daosbuild1

Test stage Build DEB on Ubuntu 20.04 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12330/9/execution/node/363/log

daosbuild1 avatar Dec 14 '23 06:12 daosbuild1

Test stage Build RPM on EL 9 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12330/10/execution/node/276/log

daosbuild1 avatar Dec 15 '23 02:12 daosbuild1

Test stage Build RPM on Leap 15.5 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12330/10/execution/node/273/log

daosbuild1 avatar Dec 15 '23 02:12 daosbuild1

Test stage Build RPM on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12330/10/execution/node/279/log

daosbuild1 avatar Dec 15 '23 02:12 daosbuild1

Test stage Build DEB on Ubuntu 20.04 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12330/10/execution/node/303/log

daosbuild1 avatar Dec 15 '23 02:12 daosbuild1

Rebased without changes to the update janekmi/local_tx2 branch.

liw avatar Jan 09 '24 01:01 liw

Test stage Unit Test on EL 8.8 completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-12330/15/testReport/

daosbuild1 avatar Jan 30 '24 09:01 daosbuild1

Test stage Unit Test with memcheck on EL 8.8 completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-12330/15/testReport/

daosbuild1 avatar Jan 30 '24 09:01 daosbuild1

Ticket title is 'Change RDB to use new extended VOS API' Status is 'In Review' Labels: 'md_on_ssd' https://daosio.atlassian.net/browse/DAOS-11406

github-actions[bot] avatar Mar 05 '24 07:03 github-actions[bot]

Test stage Functional Hardware Medium Verbs Provider completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12330/18/execution/node/1451/log

daosbuild1 avatar Mar 17 '24 14:03 daosbuild1

daos_test/suite.py: drain_simple: Wolf IB network problem

liw avatar Mar 18 '24 01:03 liw

Rebased back to master.

liw avatar Mar 21 '24 14:03 liw

Rebased to liw/fix-dth_deferred so that testing can continue.

liw avatar Mar 26 '24 00:03 liw

Per request, starting the review process before getting the latest CI result.

liw avatar Mar 26 '24 06:03 liw