Skip to content

crimson/os/seastore: write ool extents without padding - #58250

Merged
cyx1231st merged 3 commits into
ceph:mainfrom
cyx1231st:wip-seastore-optimize-ool-padding
Jul 15, 2024
Merged

cyx1231st merged 3 commits into
ceph:mainfrom
cyx1231st:wip-seastore-optimize-ool-padding

Conversation

@cyx1231st

@cyx1231st cyx1231st commented Jun 25, 2024 •

Copy link
Copy Markdown
Member

Follow up #57788, quote:

tier-main: iops=3969.97,depth=1.01,batch=1.32,bwMiB=29.62,sizeB=7824.19(3460.97,1448.24,2914.98)
  inline: iops=2077.98,depth=1.02,batch=1.42,bwMiB=13.24,sizeB=6682.12(2075.60,2667.54,1938.98)
  ...
  ooldata: iops=1891.98,depth=1.00,batch=1.22,bwMiB=16.38,sizeB=9078.53(4982.53,*109.08,3986.92*)
...

Under a short-time fio-rbd random write workload, the OSD log (SeaStore) roughly shows ~55% of the bandwidth comes from "ooldata", and ~45% of which comes from the unnecessary metadata+padding. This means ~25% of the bandwidth in this workload is unnecessary.


This PR tries to remove the unnecessary padding,
before this PR (the same random-write workload), e.g.:

tier-main: iops=5874.45,depth=1.01,batch=1.15,bwMiB=41.25,sizeB=7362.97(3192.01,902.86,3268.09)
  inline: iops=3281.47,depth=1.01,batch=1.16,bwMiB=19.68,sizeB=6288.48(2058.30,1532.98,2697.20)
  ...
  ooldata: iops=2592.98,depth=1.00,batch=1.13,bwMiB=21.57,sizeB=8722.76(4626.76,105.43,3990.57)
...

after this PR, e.g.:

tier-main: iops=5763.43,depth=1.28,batch=1.12,bwMiB=29.33,sizeB=5335.78(3061.96,827.21,1446.61)
  inline: iops=3065.46,depth=1.01,batch=1.23,bwMiB=18.79,sizeB=6426.93(2151.89,1555.24,2719.80)
  ...
  ooldata: iops=2697.97,depth=1.59,batch=1.00,bwMiB=10.54,sizeB=4096.00(4096.00,*0.00,0.00*)
...

The unnecessary ool paddings are proved to be removed.

Under my local test workload, although it looks to be CPU-bounded (not disk-bound), the overall performance (from fio client) increases ~5% with the disk bandwidth (from iostat) reduced by ~26%. The benefit might be better with a less performant disk or with more seastar shards.

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

In order to introduce a different type.

Signed-off-by: Yingxin Cheng <[email protected]>
And adjust size calculations for record_type_t::OOL, should be no actual
impact yet.

Signed-off-by: Yingxin Cheng <[email protected]>
@cyx1231st

Copy link
Copy Markdown
Member Author

@athanatos athanatos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@cyx1231st
cyx1231st merged commit f910e9d into ceph:main Jul 15, 2024
@cyx1231st
cyx1231st deleted the wip-seastore-optimize-ool-padding branch July 15, 2024 01:53
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