Skip to content

crimson/os/seastore: track transactions/conflicts/outstanding periodically - #58467

Merged
cyx1231st merged 6 commits into
ceph:mainfrom
cyx1231st:wip-seastore-track-outstanding
Jul 15, 2024
Merged

cyx1231st merged 6 commits into
ceph:mainfrom
cyx1231st:wip-seastore-track-outstanding

Conversation

@cyx1231st

@cyx1231st cyx1231st commented Jul 9, 2024 •

Copy link
Copy Markdown
Member

Also minor improvements to the original stats to make them clear.

Now the report looks like (included #58250, fio random writes):

INFO  2024-07-09 10:40:21,725 [shard  0:main] seastore_epm - ExtentPlacementManager::get_device_stats:
tier-main: iops=5734.93,depth=1.25,batch=1.11,bwMiB=29.04,sizeB=5309.09(3009.69,828.42,1470.98)
  inline: iops=3097.46,depth=1.01,batch=1.21,bwMiB=18.73,sizeB=6342.02(2084.70,1533.81,2723.52)
  oolmdat: iops=0.00,depth=-nan,batch=-nan,bwMiB=0.00,sizeB=-nan(-nan,-nan,-nan)
  ooldata: iops=2637.47,depth=1.54,batch=1.00,bwMiB=10.30,sizeB=4096.00(4096.00,0.00,0.00)
  mainmdat: iops=0.00,depth=-nan,batch=-nan,bwMiB=0.00,sizeB=-nan(-nan,-nan,-nan)
  maindata: iops=0.00,depth=-nan,batch=-nan,bwMiB=0.00,sizeB=-nan(-nan,-nan,-nan)
MUTATE: rps=5226.44,bwMiB=19.87,sizeB=3987.40(3210.42,776.98)
  inline: rps=2588.97,bwMiB=9.57,sizeB=3876.76(2308.25,1568.51)
  ooldata: rps=2637.47,bwMiB=10.30,sizeB=4096.00(4096.00,0.00)
TRIM_DIRTY: rps=0.00,bwMiB=0.00,sizeB=-nan(-nan,-nan)
TRIM_ALLOC: rps=1149.49,bwMiB=0.95,sizeB=862.76(418.69,444.07)
  inline: rps=1149.49,bwMiB=0.95,sizeB=862.76(418.69,444.07)
CLEANER_MAIN: rps=0.00,bwMiB=0.00,sizeB=-nan(-nan,-nan)
CLEANER_COLD: rps=0.00,bwMiB=0.00,sizeB=-nan(-nan,-nan)
INFO  2024-07-09 10:40:21,725 [shard  0:main] seastore - SeaStore::get_io_stats: iops=2579.97,0.00,1149.49(1149.49,0.00,0.00,0.00),0.00 conflicts=0.03,-nan,0.00(0.00,-nan,-nan,-nan) outstanding=11(0,5,0,3,3),0,0,0
INFO  2024-07-09 10:40:21,727 [shard  0:main] osd - OSD::start: reactor_utilizations: 89(88,88,94,91,99,95,89,84,89,93,83,92,88,88,91,83,89,85,84,84,89,93,90,91,82,96,87,88,90,89,85,99,)
INFO  2024-07-09 10:40:21,727 [shard  0:main] seastore - SeaStore: device IOPS: 180000.34 5625.01(5734.85,5639.85,5282.86,5533.36,5268.36,5515.86,5432.86,5629.85,5842.35,5746.35,5667.35,5623.35,5603.35,5782.85,5698.85,5777.85,5780.35,5677.35,5504.86,5534.86,5660.35,5859.35,5920.35,5849.85,5637.85,5123.37,5769.35,5828.35,5741.85,5659.85,5726.85,4945.37,)
INFO  2024-07-09 10:40:21,727 [shard  0:main] seastore - SeaStore: device bandwidth(MiB): 928.13 29.00(29.04,28.75,27.59,28.69,28.47,28.76,27.82,28.60,30.33,29.81,28.80,29.49,28.86,29.75,29.50,29.37,29.63,29.11,27.91,27.91,29.15,30.07,30.27,30.37,28.53,27.39,29.74,29.70,29.52,29.34,29.33,26.53,)
INFO  2024-07-09 10:40:21,727 [shard  0:main] seastore - SeaStore: device per-writer depth: 1.31
INFO  2024-07-09 10:40:21,727 [shard  0:main] seastore - SeaStore: device IO size(B): 5406.73
INFO  2024-07-09 10:40:21,727 [shard  0:main] seastore - SeaStore: trans IOPS: 84300.82,0.00,33984.62,0.00 per-shard: 2634.40,0.00,1062.02,0.00
INFO  2024-07-09 10:40:21,727 [shard  0:main] seastore - SeaStore: trans conflicts: 0.07,-nan,0.00
INFO  2024-07-09 10:40:21,727 [shard  0:main] seastore - SeaStore: trans outstanding: 3263,0,15,0 per-shard: 101.97,0.00,0.47,0.00
INFO  2024-07-09 10:40:21,727 [shard  0:main] seastore - SeaStore: details: 11(0,5,0,3,3) 8(0,4,0,3,1) 15(0,9,0,4,2) 49(0,41,0,4,4) 272(0,265,0,4,3) 26(0,22,0,3,1) 18(0,11,0,4,3) 0(0,0,0,0,0) 10(0,5,0,4,1) 64(0,57,0,4,3) 12(0,7,0,3,2) 3(0,0,0,2,1) 13(0,7,0,3,3) 1(0,0,0,1,0) 9(0,4,0,4,1) 32(0,26,0,4,2) 0(0,0,0,0,0) 1(0,0,0,1,0) 1(0,0,0,1,0) 19(0,14,0,4,1) 9(0,4,0,4,1) 21(0,15,0,4,2) 0(0,0,0,0,0) 0(0,0,0,0,0) 13(0,7,0,3,3) 21(0,14,0,4,3) 7(0,3,0,3,1) 7(0,2,0,3,2) 0(0,0,0,0,0) 3(0,0,0,2,1) 18(0,11,0,4,3) 2600(0,2595,0,4,1)

I think it reveals an opportunity to optimize the collection lock, because there are quite a lot of waiters. I'm working on a solution.

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

@cyx1231st

Copy link
Copy Markdown
Member Author

jenkins retest this please

@cyx1231st

Copy link
Copy Markdown
Member Author

Make check compile failure:

/home/jenkins-build/build/workspace/ceph-pull-requests/src/test/librbd/exclusive_lock/test_mock_PreAcquireRequest.cc:47:26: error: unused variable 'TEST_COOKIE' [-Werror,-Wunused-const-variable]
static const std::string TEST_COOKIE("auto 123");

Should be unrelated.

@cyx1231st

Copy link
Copy Markdown
Member Author

jenkins test make check

Comment thread src/crimson/os/seastore/seastore.cc Resolved
@cyx1231st
cyx1231st force-pushed the wip-seastore-track-outstanding branch from ba7adac to 6e6284e Compare July 11, 2024 03:38
Calculate average values and remove verbose per-shard data.

Signed-off-by: Yingxin Cheng <[email protected]>
@cyx1231st
cyx1231st force-pushed the wip-seastore-track-outstanding branch from 6e6284e to 0c4d6ae Compare July 11, 2024 03:43
@cyx1231st

Copy link
Copy Markdown
Member Author

@cyx1231st

Copy link
Copy Markdown
Member Author
/home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos9/DIST/centos9/MACHINE_SIZE/gigantic/release/19.0.0-4756-g956d44d8/rpm/el9/BUILD/ceph-19.0.0-4756-g956d44d8/src/crimson/tools/store_nbd/tm_driver.h:44:3: error: ‘shard_stats_t’ does not name a type; did you mean ‘store_statfs_t’?
   44 |   shard_stats_t shard_stats;
      |   ^~~~~~~~~~~~~
      |   store_statfs_t

Including background transactions.

Signed-off-by: Yingxin Cheng <[email protected]>
Also report details in shard 0.

Signed-off-by: Yingxin Cheng <[email protected]>
Detailed outstanding ios might reflect some issues, remove if it is no
longer a problem.

Signed-off-by: Yingxin Cheng <[email protected]>
@cyx1231st
cyx1231st force-pushed the wip-seastore-track-outstanding branch from 0c4d6ae to 736512a Compare July 12, 2024 01:53
@cyx1231st
cyx1231st merged commit 365d689 into ceph:main Jul 15, 2024
@cyx1231st
cyx1231st deleted the wip-seastore-track-outstanding branch July 15, 2024 01:54
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.

3 participants