Skip to content

crimson/os/seastore: implement disk and writer level stats reporting - #57788

Merged
Matan-B merged 11 commits into
ceph:mainfrom
cyx1231st:wip-seastore-report-disk
Jun 9, 2024
Merged

Matan-B merged 11 commits into
ceph:mainfrom
cyx1231st:wip-seastore-report-disk

Conversation

@cyx1231st

@cyx1231st cyx1231st commented May 30, 2024 •

Copy link
Copy Markdown
Member

At SeaStore level, to understand the device balances:

  • IOPS
  • per-writer depth
  • bandwidth
  • IO size

Picking a particular SeaStore shard, to understand:

  • Per device tier write status
  • Per writer status in a device tier
  • Per transaction type status
  • How each type of transactions write through the writers

Signed-off-by: Yingxin Cheng [email protected]

Output example:

INFO  2024-05-27 13:40:37,588 [shard  0:main] seastore_epm - ExtentPlacementManager::get_device_stats:
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)
  oolmdat: iops=0.00,depth=-nan,batch=-nan,bwMiB=0.00,sizeB=-nan(-nan,-nan,-nan)
  ooldata: iops=1891.98,depth=1.00,batch=1.22,bwMiB=16.38,sizeB=9078.53(4982.53,109.08,3986.92)
  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=4469.96,bwMiB=17.69,sizeB=4150.40(2993.20,1157.20)
  inline: rps=2168.98,bwMiB=8.61,sizeB=4162.61(1822.33,2340.27)
  ooldata: rps=2300.98,bwMiB=9.08,sizeB=4138.89(4096.89,42.00)
TRIM_DIRTY: rps=0.00,bwMiB=0.00,sizeB=-nan(-nan,-nan)
TRIM_ALLOC: rps=774.49,bwMiB=0.67,sizeB=912.88(465.39,447.48)
  inline: rps=774.49,bwMiB=0.67,sizeB=912.88(465.39,447.48)
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-05-27 13:40:37,590 [shard  0:main] seastore - SeaStore: device IOPS:144270.90(3969.12,4451.01,4702.95,4584.48,4533.49,4286.55,4554.99,4560.49,4644.97,4620.47,4594.48,4640.47,4054.10,4666.96,4590.98,4169.07,4414.02,4684.46,4438.51,4538.99,4470.01,4655.46,4323.04,4690.96,4644.47,4485.50,4680.96,4671.96,4629.97,4282.55,4558.99,4476.50,)
INFO  2024-05-27 13:40:37,590 [shard  0:main] seastore - SeaStore: device per-writer depth:1.01(1.01,1.01,1.01,1.01,1.00,1.01,1.00,1.00,1.00,1.01,1.01,1.00,1.01,1.00,1.00,1.01,1.00,1.00,1.01,1.00,1.01,1.00,1.01,1.00,1.01,1.00,1.01,1.00,1.01,1.01,1.00,1.01,)
INFO  2024-05-27 13:40:37,590 [shard  0:main] seastore - SeaStore: device bandwidth(MiB):981.40(29.62,30.85,32.26,30.50,30.77,30.42,30.87,29.03,30.47,30.85,30.99,30.22,30.15,31.31,30.26,31.16,29.81,30.75,31.30,29.17,31.30,31.52,31.26,30.53,30.94,30.02,31.71,30.98,30.62,31.49,29.63,30.65,)
INFO  2024-05-27 13:40:37,590 [shard  0:main] seastore - SeaStore: device IO size(B):7132.91(7824.19,7267.82,7191.95,6976.29,7117.98,7441.58,7105.52,6674.46,6879.27,7000.82,7072.96,6827.70,7797.05,7035.50,6910.66,7836.92,7081.02,6882.47,7394.39,6739.00,7341.38,7099.94,7581.48,6824.92,6985.38,7017.02,7103.70,6952.16,6935.16,7711.50,6815.44,7180.24,)

Only the last 3 commits are the main implementations, the others are related cleanups.

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 added 10 commits May 30, 2024 16:43
To report stats after the store is initialized.

Signed-off-by: Yingxin Cheng <[email protected]>
…pe_t

Replace by backend_type_t.

Signed-off-by: Yingxin Cheng <[email protected]>
The original "record group num" is identical to "io num".

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

Copy link
Copy Markdown
Member Author

INFO 2024-05-27 13:40:37,590 [shard 0:main] seastore - SeaStore: device depth:1.01(1.01,1.01,1.01,1.01,1.00,1.01,1.00,1.00,1.00,1.01,1.01,1.00,1.01,1.00,1.00,1.01,1.00,1.00,1.01,1.00,1.01,1.00,1.01,1.00,1.01,1.00,1.01,1.00,1.01,1.01,1.00,1.01,)

"device depth" is misleading, will change to "device per-writer depth"

At SeaStore level, to understand the device balances:
* IOPS
* per-writer depth
* bandwidth
* IO size

Picking a particular SeaStore shard, to understand:
* Per device tier write status
* Per writer status in a device tier
* Per transaction type status
* How each type of transactions write through the writers

Signed-off-by: Yingxin Cheng <[email protected]>
@cyx1231st
cyx1231st force-pushed the wip-seastore-report-disk branch from 923ce11 to 8f67346 Compare June 3, 2024 08:48
@cyx1231st

Copy link
Copy Markdown
Member Author

Changeset: fixed^.

@cyx1231st

Copy link
Copy Markdown
Member Author

jenkins test make check

@cyx1231st

Copy link
Copy Markdown
Member Author

jenkins test windows

@cyx1231st

Copy link
Copy Markdown
Member Author

@cyx1231st

Copy link
Copy Markdown
Member Author

^ Seems the build is failed, but the error looks unrelated:

/usr/lib64/python3.9/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/19.0.0-4015-g8f673460/rpm/el9/BUILD/ceph-19.0.0-4015-g8f673460/src/pybind/rados/rados.pxd
  tree = Parsing.p_module(s, pxd, full_module_name)

Error compiling Cython file:
------------------------------------------------------------
...
#
# Shared object for librbdpy
#
# Copyright 2016 Mehdi Abaakouk <[email protected]>

IF BUILD_DOC:
  ^
------------------------------------------------------------

rados.pxd:7:3: Compile-time name 'BUILD_DOC' not defined


Error compiling Cython file:
------------------------------------------------------------
...
from cpython cimport PyObject, ref
from cpython.pycapsule cimport *
from libc cimport errno
from libc.stdint cimport *
from libc.stdlib cimport malloc, realloc, free
IF BUILD_DOC:
  ^
------------------------------------------------------------

rados.pyx:21:3: Compile-time name 'BUILD_DOC' not defined

@cyx1231st

Copy link
Copy Markdown
Member Author

@cyx1231st

Copy link
Copy Markdown
Member Author

jenkins test make check

@cyx1231st

Copy link
Copy Markdown
Member Author

@cyx1231st

Copy link
Copy Markdown
Member Author

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.

4 participants