Project

General

Profile

Actions

Bug #66289

closed
TW SS

inconsistent performance loss during OSD fault using mClock scheduler

Bug #66289: inconsistent performance loss during OSD fault using mClock scheduler

Added by Tim Wilkinson over 2 years ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Category:
Performance/Resource Usage
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
quincy, reef, squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Tags (freeform):
Fixed In:
v19.3.0-5162-gaa19cd30da
Released In:
v20.2.0~1941
Upkeep Timestamp:
2026-08-28T01:38:06+00:00

Description

The storage workload DFG has been evealuating previous test data along with collecting recent reseults to confirm what we believe to be a throughput perf loss during OSD fault insertion, especially with smaller (max 256KB) obj sizes. Our tests show that smaller objs can suffer as much as a 79% loss in throughput while larger objs (max 256MB) lose upwards of 20%.


Related issues 3 (0 open — 3 closed)

Copied to RADOS - Backport #68223: squid: inconsistent performance loss during OSD fault using mClock schedulerResolvedSridhar Seshasayee

Actions
Copied to RADOS - Backport #68224: reef: inconsistent performance loss during OSD fault using mClock schedulerResolvedSridhar Seshasayee

Actions
Copied to RADOS - Backport #70499: quincy: inconsistent performance loss during OSD fault using mClock schedulerRejectedSridhar Seshasayee

Actions

TW Updated by Tim Wilkinson over 2 years ago Actions #1

  • Project changed from rgw to RADOS

TW Updated by Tim Wilkinson over 2 years ago Actions #2

  • Category set to Performance/Resource Usage

SS Updated by Sridhar Seshasayee over 2 years ago Actions #3

  • Assignee set to Sridhar Seshasayee

Taking this up for further investigation.

SS Updated by Sridhar Seshasayee over 2 years ago · Edited Actions #4

The following describes the issue and the steps that are performed as part of the test:

Cluster Info :

The DFG cluster configuration summary is shown below consisting
of 8 RGW daemons with 150 Million+ objects.

The RGW pool configuration is shown below:

pool 7 'default.rgw.buckets.data' erasure profile myprofile size 6 min_size 4 crush_rule 1 object_hash rjenkins pg_num 4096 pgp_num 4096 autoscale_mode on last_change 610 lfor 0/0/589 flags hashpspool stripe_width 16384 pg_num_min 4096 application rgw

Cluster status
  cluster:
    id:     d41b35fc-20ef-11ef-bda4-000af7995d6c
    health: HEALTH_WARN
            clock skew detected on mon.f28-h22-000-r630
            noscrub,nodeep-scrub flag(s) set

  services:
    mon: 3 daemons, quorum f28-h21-000-r630,f28-h22-000-r630,f28-h23-000-r630 (age 40m)
    mgr: f28-h23-000-r630.nbspst(active, since 6h), standbys: f28-h22-000-r630.kaarli, f28-h21-000-r630.eksini
    osd: 192 osds: 192 up (since 5h), 192 in (since 6h)
         flags noscrub,nodeep-scrub
    rgw: 8 daemons active (8 hosts, 1 zones)

  data:
    pools:   7 pools, 4769 pgs
    objects: 186.97M objects, 12 TiB
    usage:   31 TiB used, 330 TiB / 361 TiB avail
    pgs:     4769 active+clean

  io:
    client:   466 KiB/s rd, 7.1 KiB/s wr, 66 op/s rd, 14 op/s wr

Test Phases :

Phase 1:
- The 192 OSDs are distributed across 8 nodes with 24 OSDs per node.
- Around 150 million objects with small object sizes
[1KiB, 4KiB, 16KiB, 64KiB, 256KiB] are prefilled in the RGW pool.
- The client workload is initiated using the warp tool.

Phase 2: OSD node 1 failure
this state one OSD (24 OSDs) node is brought down and the cluster is
monitored along with the collection of client and recovery metrics.

Phase 3: OSD node 2 failure
After around a couple of hours, another OSD node (24 OSDs) is brought
down and the same metrics are collected as above.

Phase 4: Bring up both OSD nodes and monitor cluster.
Both the failed OSD nodes are brought up and the cluster recovery/backfill
is monitored along with the client metrics. The test doesn't wait for
the cluster to complete the recovery/backfill process fully due to the
long recovery times.

Observation :
The perceived performance loss is observed during phase 2 and 3 when degraded
recoveries are predominantly in progress. The following shows the measured
client metrics between a couple of runs:

Workload Total Read Tput MB/s objs/s Total Write Tput MB/s objs/s Avg Latency(ms) 99% Latency(ms) Warp Errors
fill 150M objs 2h30m 1120 17184 87 700 0
hybrid noFailure 506 7704 392 5993 63 255 0
hybrid OSDnode1 139 2115 107 1646 231 2083 3180
hybrid OSDnode2 177 2666 138 2075 197 1438 0
hybrid OSDrecover 409 6222 317 4841 78 314 0
fill 150M objs 2h30m 1090 16654 90 793 0
hybrid noFailure 505 7699 392 5989 63 237 0
hybrid OSDnode1 108 1660 83 1292 275 1243 2520
hybrid OSDnode2 288 4328 225 3368 135 579 1560
hybrid OSDrecover 415 6346 321 4937 77 322 0

The rows highlighted in bold between the two runs shows that both
reads and writes are not consistent.

SS Updated by Sridhar Seshasayee over 2 years ago Actions #5

High Level Sequence of Events for run w94_240608-154223_runtest-sm-reef-12

The analysis is based on the run logs, cluster logs along with the perf counters
information. The OSD logs are not helpful due to the low logging level.

Test Steps:
./RESULTS/runtest.sh-1_240608-154405.log:2024/06/08-15:45:36: Starting warp hybrid phase 1
./RESULTS/runtest.sh-1_240608-154405.log:2024/06/08-18:17:33: Completed warp hybrid phase 1
./RESULTS/runtest.sh-2_240608-154405.log:2024/06/08-18:28:47: Starting warp hybrid phase 2
./RESULTS/runtest.sh-2_240608-154405.log:2024/06/08-18:32:39: Stop all OSDs on f23-h13-000-6048r
./RESULTS/runtest.sh-2_240608-154405.log:2024/06/08-20:42:11: Completed warp hybrid phase 2
./RESULTS/runtest.sh-3_240608-154405.log:2024/06/08-20:53:31: Starting warp hybrid phase 3
./RESULTS/runtest.sh-3_240608-154405.log:2024/06/08-20:57:18: Stop all OSDs on f23-h17-000-6048r
./RESULTS/runtest.sh-3_240608-154405.log:2024/06/08-23:13:40: Completed warp hybrid phase 3
./RESULTS/runtest.sh-4_240608-154405.log:2024/06/08-23:25:11: Starting warp hybrid phase 4
./RESULTS/runtest.sh-4_240608-154405.log:2024/06/08-23:29:00: Start all OSDs on f23-h13-000-6048r and f23-h17-000-6048r
./RESULTS/runtest.sh-4_240608-154405.log:2024/06/09-01:48:01: Completed warp hybrid phase 4

Cluster status before phase 2 OSD node 1 failure:

2024/06/08-18:28:00

Cluster status
  cluster:
    id:     6c1878a6-2591-11ef-a248-000af7995d6c
    health: HEALTH_WARN
            noscrub,nodeep-scrub flag(s) set

  services:
    mon: 3 daemons, quorum f28-h21-000-r630,f28-h22-000-r630,f28-h23-000-r630 (age 6h)
    mgr: f28-h23-000-r630.fbovco(active, since 5h), standbys: f28-h21-000-r630.vnpuqi, f28-h22-000-r630.qspimz
    osd: 192 osds: 192 up (since 5h), 192 in (since 6h)
         flags noscrub,nodeep-scrub
    rgw: 8 daemons active (8 hosts, 1 zones)

  data:
    pools:   7 pools, 4769 pgs
    objects: 186.65M objects, 12 TiB
    usage:   31 TiB used, 330 TiB / 361 TiB avail
    pgs:     4769 active+clean

  io:
    client:   326 KiB/s rd, 4.7 KiB/s wr, 62 op/s rd, 9 op/s wr

Cluster status after initiating OSD node failure:

The client IO rate shown below is just around the node failure point.
This gives a reference to the baseline client IO rate.

Cluster status
  cluster:
    id:     6c1878a6-2591-11ef-a248-000af7995d6c
    health: HEALTH_WARN
            noscrub,nodeep-scrub flag(s) set
            24 osds down
            1 host (24 osds) down
            Degraded data redundancy: 144012981/1134724845 objects degraded (12.691%), 3325 pgs degraded

  services:
    mon: 3 daemons, quorum f28-h21-000-r630,f28-h22-000-r630,f28-h23-000-r630 (age 6h)
    mgr: f28-h23-000-r630.fbovco(active, since 6h), standbys: f28-h21-000-r630.vnpuqi, f28-h22-000-r630.qspimz
    osd: 192 osds: 168 up (since 42s), 192 in (since 6h)
         flags noscrub,nodeep-scrub
    rgw: 8 daemons active (8 hosts, 1 zones)

  data:
    pools:   7 pools, 4769 pgs
    objects: 189.12M objects, 12 TiB
    usage:   31 TiB used, 330 TiB / 361 TiB avail
    pgs:     144012981/1134724845 objects degraded (12.691%)
             3325 active+undersized+degraded
             1400 active+clean
             44   active+undersized

  io:
    client:   999 MiB/s rd, 724 MiB/s wr, 167.33k op/s rd, 164.91k op/s wr

Phase 2 - Client and recovery rates

Once the recovery/backfilling starts on multiple PGs, the recovery rate climbs with a corresponding
decrease in the client IO rate shown below at different points:

  io:
    client:   155 MiB/s rd, 107 MiB/s wr, 25.03k op/s rd, 24.10k op/s wr
    recovery: 190 MiB/s, 2.89k objects/s

  io:
    client:   113 MiB/s rd, 79 MiB/s wr, 18.12k op/s rd, 17.59k op/s wr
    recovery: 175 MiB/s, 2.66k objects/s

  io:
    client:   29 MiB/s rd, 19 MiB/s wr, 5.02k op/s rd, 4.63k op/s wr
    recovery: 116 MiB/s, 1.80k objects/s

  io:
    client:   55 MiB/s rd, 40 MiB/s wr, 9.62k op/s rd, 9.37k op/s wr
    recovery: 196 MiB/s, 2.97k objects/s

  io:
    client:   281 MiB/s rd, 196 MiB/s wr, 45.65k op/s rd, 44.73k op/s wr
    recovery: 108 MiB/s, 1.65k objects/s

Some additional client and recovery rates during the middle of phase 2 is shown
below:

2024-06-08T20:04:02.613936+0000 mgr.f28-h23-000-r630.fbovco (mgr.14240) 13720 : cluster 0 pgmap v14394: 4769 pgs: 75 active+undersized+degraded+remapped+backfilling, 2917 active+undersized+degraded+remapped+backfill_wait, 1777 active+clean; 13 TiB       data, 28 TiB used, 288 TiB / 316 TiB avail; 282 MiB/s rd, 199 MiB/s wr, 89.96k op/s; 139043061/1189968219 objects degraded (11.685%); 28215751/1189968219 objects misplaced (2.371%); 146 MiB/s, 2.22k objects/s recovering
 2024-06-08T20:04:04.621492+0000 mgr.f28-h23-000-r630.fbovco (mgr.14240) 13721 : cluster 0 pgmap v14395: 4769 pgs: 75 active+undersized+degraded+remapped+backfilling, 2917 active+undersized+degraded+remapped+backfill_wait, 1777 active+clean; 13 TiB       data, 28 TiB used, 288 TiB / 316 TiB avail; 211 MiB/s rd, 149 MiB/s wr, 67.54k op/s; 139042797/1189972449 objects degraded (11.685%); 28215857/1189972449 objects misplaced (2.371%); 104 MiB/s, 1.58k objects/s recovering
 2024-06-08T20:04:06.656214+0000 mgr.f28-h23-000-r630.fbovco (mgr.14240) 13722 : cluster 0 pgmap v14396: 4769 pgs: 75 active+undersized+degraded+remapped+backfilling, 2917 active+undersized+degraded+remapped+backfill_wait, 1777 active+clean; 13 TiB       data, 28 TiB used, 288 TiB / 316 TiB avail; 303 MiB/s rd, 217 MiB/s wr, 97.62k op/s; 139043263/1190036247 objects degraded (11.684%); 28216518/1190036247 objects misplaced (2.371%); 138 MiB/s, 2.10k objects/s recovering
 2024-06-08T20:04:08.667333+0000 mgr.f28-h23-000-r630.fbovco (mgr.14240) 13723 : cluster 0 pgmap v14397: 4769 pgs: 75 active+undersized+degraded+remapped+backfilling, 2917 active+undersized+degraded+remapped+backfill_wait, 1777 active+clean; 13 TiB       data, 28 TiB used, 288 TiB / 316 TiB avail; 237 MiB/s rd, 170 MiB/s wr, 76.02k op/s; 139043141/1190047635 objects degraded (11.684%); 28216742/1190047635 objects misplaced (2.371%); 107 MiB/s, 1.60k objects/s recovering
 2024-06-08T20:04:10.695111+0000 mgr.f28-h23-000-r630.fbovco (mgr.14240) 13724 : cluster 0 pgmap v14398: 4769 pgs: 75 active+undersized+degraded+remapped+backfilling, 2917 active+undersized+degraded+remapped+backfill_wait, 1777 active+clean; 13 TiB       data, 28 TiB used, 288 TiB / 316 TiB avail; 282 MiB/s rd, 202 MiB/s wr, 91.41k op/s; 139043673/1190087295 objects degraded (11.683%); 28217492/1190087295 objects misplaced (2.371%); 122 MiB/s, 1.83k objects/s recovering
 2024-06-08T20:04:12.713886+0000 mgr.f28-h23-000-r630.fbovco (mgr.14240) 13725 : cluster 0 pgmap v14399: 4769 pgs: 75 active+undersized+degraded+remapped+backfilling, 2917 active+undersized+degraded+remapped+backfill_wait, 1777 active+clean; 13 TiB       data, 28 TiB used, 288 TiB / 316 TiB avail; 267 MiB/s rd, 191 MiB/s wr, 86.93k op/s; 139042252/1190111403 objects degraded (11.683%); 28217347/1190111403 objects misplaced (2.371%); 124 MiB/s, 1.85k objects/s recovering
 2024-06-08T20:04:14.721332+0000 mgr.f28-h23-000-r630.fbovco (mgr.14240) 13726 : cluster 0 pgmap v14400: 4769 pgs: 75 active+undersized+degraded+remapped+backfilling, 2917 active+undersized+degraded+remapped+backfill_wait, 1777 active+clean; 13 TiB       data, 28 TiB used, 288 TiB / 316 TiB avail; 227 MiB/s rd, 164 MiB/s wr, 74.41k op/s; 139041904/1190115279 objects degraded (11.683%); 28217441/1190115279 objects misplaced (2.371%); 102 MiB/s, 1.52k objects/s recovering
 2024-06-08T20:04:16.756616+0000 mgr.f28-h23-000-r630.fbovco (mgr.14240) 13727 : cluster 0 pgmap v14401: 4769 pgs: 75 active+undersized+degraded+remapped+backfilling, 2917 active+undersized+degraded+remapped+backfill_wait, 1777 active+clean; 13 TiB       data, 28 TiB used, 288 TiB / 316 TiB avail; 307 MiB/s rd, 220 MiB/s wr, 100.40k op/s; 139040940/1190171097 objects degraded (11.682%); 28217821/1190171097 objects misplaced (2.371%); 138 MiB/s, 2.07k objects/s recovering

During the end of phase2 at around 2024/06/08-20:17:58 mark, slow ops are reported on multiple OSDs and at the same time the
client IO rate drops steeply and doesn't remain at a consistent rate. Note that the recovery rate is quite high at
around 3K objects/sec:

  io:
    client:   34 MiB/s rd, 25 MiB/s wr, 6.30k op/s rd, 6.06k op/s wr
    recovery: 204 MiB/s, 3.05k objects/s

  93 slow ops, oldest one blocked for 370 sec, daemons [osd.3,osd.61] have slow ops
  io:
    client:   244 KiB/s rd, 209 B/s wr, 259 op/s rd, 0 op/s wr
    recovery: 190 MiB/s, 2.85k objects/s

  4 slow ops, oldest one blocked for 637 sec, osd.3 has slow ops
  io:
    client:   974 KiB/s rd, 134 KiB/s wr, 528 op/s rd, 58 op/s wr
    recovery: 208 MiB/s, 3.14k objects/s

Snippet of slow ops reported during this phase:

All slow ops reported are due to 'queued_for_pg' which means that the op is sitting in
in the scheduler queue.

2024-06-08T18:53:58.487844+0000 mon.f28-h21-000-r630 (mon.0) 46779 : cluster 3 Health check update: 2 slow ops, oldest one blocked for 44 sec, osd.146 has slow ops (SLOW_OPS)

...

2024-06-08T19:04:59.184161+0000 mon.f28-h21-000-r630 (mon.0) 47237 : cluster 3 Health check update: 38 slow ops, oldest one blocked for 68 sec, daemons [osd.142,osd.146,osd.179] have slow ops. (SLOW_OPS)$
2024-06-08T19:04:59.848871+0000 osd.142 (osd.142) 73 : cluster 3 2 slow requests (by type [ 'queued for pg' : 2 ] most affected pool [ 'default.rgw.buckets.data' : 2 ])$
2024-06-08T19:04:59.710832+0000 osd.179 (osd.179) 50 : cluster 3 2 slow requests (by type [ 'queued for pg' : 2 ] most affected pool [ 'default.rgw.buckets.data' : 2 ])$
2024-06-08T19:04:59.746819+0000 osd.146 (osd.146) 908 : cluster 3 8 slow requests (by type [ 'queued for pg' : 8 ] most affected pool [ 'default.rgw.buckets.data' : 8 ])

...

2024-06-08T19:08:39.746686+0000 mon.f28-h21-000-r630 (mon.0) 47393 : cluster 3 Health check update: 88 slow ops, oldest one blocked for 274 sec, daemons [osd.142,osd.146] have slow ops. (SLOW_OPS)
2024-06-08T19:08:40.561435+0000 osd.146 (osd.146) 1129 : cluster 3 9 slow requests (by type [ 'queued for pg' : 9 ] most affected pool [ 'default.rgw.buckets.data' : 9 ])
2024-06-08T19:08:40.452042+0000 osd.142 (osd.142) 293 : cluster 3 6 slow requests (by type [ 'queued for pg' : 6 ] most affected pool [ 'default.rgw.buckets.data' : 6 ])
2024-06-08T19:08:41.574310+0000 osd.146 (osd.146) 1130 : cluster 3 24 slow requests (by type [ 'queued for pg' : 24 ] most affected pool [ 'default.rgw.buckets.data' : 24 ])
2024-06-08T19:08:41.476640+0000 osd.142 (osd.142) 294 : cluster 3 77 slow requests (by type [ 'queued for pg' : 77 ] most affected pool [ 'default.rgw.buckets.data' : 77 ])
2024-06-08T19:08:42.485096+0000 osd.142 (osd.142) 295 : cluster 3 6 slow requests (by type [ 'queued for pg' : 6 ] most affected pool [ 'default.rgw.buckets.data' : 6 ])
2024-06-08T19:08:42.599315+0000 osd.146 (osd.146) 1131 : cluster 3 24 slow requests (by type [ 'queued for pg' : 24 ] most affected pool [ 'default.rgw.buckets.data' : 24 ])
2024-06-08T19:08:43.465706+0000 osd.142 (osd.142) 296 : cluster 3 34 slow requests (by type [ 'queued for pg' : 34 ] most affected pool [ 'default.rgw.buckets.data' : 34 ])
2024-06-08T19:08:43.611621+0000 osd.146 (osd.146) 1132 : cluster 3 6 slow requests (by type [ 'queued for pg' : 6 ] most affected pool [ 'default.rgw.buckets.data' : 6 ])
2024-06-08T19:08:44.484268+0000 osd.142 (osd.142) 297 : cluster 3 94 slow requests (by type [ 'queued for pg' : 94 ] most affected pool [ 'default.rgw.buckets.data' : 94 ])
2024-06-08T19:08:44.649160+0000 osd.146 (osd.146) 1133 : cluster 3 24 slow requests (by type [ 'queued for pg' : 24 ] most affected pool [ 'default.rgw.buckets.data' : 24 ])

Phase 3 - Client and recovery rates

During phase 3 (2nd OSD node failure), more slow ops are reported along with client ops
hovering close to or below 50% of the initial rate before the failures
(i.e. Read: ~1000 MiB/s, 167K IOPS Write: 724 MiB/s 164K IOPS).

From time 2024/06/08-21:24:36 the client and recovery rates are shown below with multiple OSDs
reporting slow ops:

  io:
    client:   431 MiB/s rd, 306 MiB/s wr, 72.12k op/s rd, 70.61k op/s wr
    recovery: 60 MiB/s, 896 objects/s

  io:
    client:   441 MiB/s rd, 312 MiB/s wr, 72.63k op/s rd, 71.28k op/s wr
    recovery: 35 MiB/s, 538 objects/s

  io:
    client:   325 MiB/s rd, 227 MiB/s wr, 53.24k op/s rd, 52.09k op/s wr
    recovery: 31 MiB/s, 466 objects/s

  io:
    client:   332 MiB/s rd, 232 MiB/s wr, 54.68k op/s rd, 53.45k op/s wr
    recovery: 27 MiB/s, 419 objects/s

  io:
    client:   342 MiB/s rd, 237 MiB/s wr, 55.57k op/s rd, 54.49k op/s wr
    recovery: 33 MiB/s, 493 objects/s

  io:
    client:   407 MiB/s rd, 289 MiB/s wr, 67.75k op/s rd, 66.07k op/s wr
    recovery: 39 MiB/s, 597 objects/s

Slow ops continue to be reported on multiple OSDs through the course of phase 3:

2024-06-08T22:55:19.927448+0000 mon.f28-h21-000-r630 (mon.0) 55719 : cluster 3 Health check update: 28 slow ops, oldest one blocked for 172 sec, daemons [osd.131,osd.152] have slow ops. (SLOW_OPS)
2024-06-08T22:55:19.862165+0000 osd.131 (osd.131) 181 : cluster 3 4 slow requests (by type [ 'queued for pg' : 4 ] most affected pool [ 'default.rgw.buckets.data' : 3 ])
2024-06-08T22:55:20.832460+0000 osd.131 (osd.131) 182 : cluster 3 1 slow requests (by type [ 'queued for pg' : 1 ] most affected pool [ 'default.rgw.buckets.data' : 1 ])
2024-06-08T22:55:21.823814+0000 osd.131 (osd.131) 183 : cluster 3 2 slow requests (by type [ 'queued for pg' : 2 ] most affected pool [ 'default.rgw.buckets.data' : 2 ])
2024-06-08T22:55:22.840131+0000 osd.131 (osd.131) 184 : cluster 3 3 slow requests (by type [ 'queued for pg' : 3 ] most affected pool [ 'default.rgw.buckets.data' : 2 ])
2024-06-08T22:55:23.810337+0000 osd.131 (osd.131) 185 : cluster 3 3 slow requests (by type [ 'queued for pg' : 3 ] most affected pool [ 'default.rgw.buckets.data' : 2 ])

The slow ops stop getting reported at the start of phase 4 as shown below when all OSDs are brought back up:

2024-06-08T23:29:55.059800+0000 mon.f28-h21-000-r630 (mon.0) 56950 : cluster 1 Health check cleared: SLOW_OPS (was: 24 slow ops, oldest one blocked for 172 sec, osd.152 has slow ops)

During phase 3, the effect of the number of PGs in recovery on the client IO is shown below:

 2024-06-08T21:06:48.134826+0000 mgr.f28-h23-000-r630.fbovco (mgr.14240) 15597 : cluster 0 pgmap v16647: 4769 pgs: 1724 active+undersized+degraded, 89 active+undersized+degraded+remapped+backfilling, 63 active+undersized, 2346 active+undersized+deg      raded+remapped+backfill_wait, 547 active+clean; 13 TiB data, 28 TiB used, 287 TiB / 316 TiB avail; 1.8 KiB/s rd, 1.4 KiB/s wr, 1 op/s; 279927278/1193987463 objects degraded (23.445%); 23416767/1193987463 objects misplaced (1.961%); 197 MiB/s, 2.96      k objects/s recovering

 ...

 2024-06-08T21:32:02.206537+0000 mgr.f28-h23-000-r630.fbovco (mgr.14240) 16353 : cluster 0 pgmap v17413: 4769 pgs: 39 active+undersized+degraded+remapped+backfilling, 4005 active+undersized+degraded+remapped+backfill_wait, 725 active+clean; 13 TiB       data, 25 TiB used, 246 TiB / 271 TiB avail; 506 MiB/s rd, 354 MiB/s wr, 165.18k op/s; 285787734/1230065037 objects degraded (23.234%); 53216172/1230065037 objects misplaced (4.326%); 63 MiB/s, 932 objects/s recovering

Analysis & Next Steps:

As already mentioned in the tracker description, the client IO takes the biggest hit
during phase 2 when there are a large number of ongoing background recoveries. The impact
on client IO (due to slow ops) during phase 2 and 3 can be directly attributed to the
total number of PGs in recovering/backfilling state as shown above. The higher the number
of PGs in recovery, the larger the impact to client IO. In the 'balanced' profile, there
is no limit allocated to both client and background recovery class of operations.
Therefore, during the OSD failure phase, both client IO and recovery ops are in direct
competition to utilize the bandwidth of OSDs. Therefore, there is no predictability on
which class of operation gets to utilize the max allocated limit.

Although both classes of operation are guaranteed 50% of an OSD's bandwidth, it can be
observed that client ops rarely get close to 50% of the original rate during both phase
2 and phase 3. It's only during the latter stages of phase 3 when client IO gets close
to 50% of the original reported rate.

There is no issue with the code changes made around the mClock scheduler and the recovery
machinery. One obvious solution is to modify the recovery tuning for both 'balanced' and
'high_client' profiles. The proposal is to reduce the limit for background_recovery from
0 (max or unlimited) to 0.9 for 'balanced' profile and 0.8 for 'high_client' profile.
With this change, the tradeoff is longer background recovery times with improved client
IO rates and response times.

The above change can be made by switching to the 'custom' profile and run the test.

SS Updated by Sridhar Seshasayee over 2 years ago · Edited Actions #6

Based on the findings and further discussions with @Samuel Just the first step is
to understand if the current profile allocations are causing the drop and
inconsistency in client performance. The idea is run additional tests with
modified profile allocations mentioned below:

Test 1:

Switch to 'custom' mClock profile and make the following change
before running the test (osd_mclock_scheduler_background_recovery_lim 0 -> 0.8):

osd_mclock_scheduler_client_res = 0.5
osd_mclock_scheduler_client_wgt = 1
osd_mclock_scheduler_client_lim = 0.0

osd_mclock_scheduler_background_recovery_res = 0.5
osd_mclock_scheduler_background_recovery_wgt = 1
osd_mclock_scheduler_background_recovery_lim = 0.8

osd_mclock_scheduler_background_best_effort_res = 0.0
osd_mclock_scheduler_background_best_effort_wgt = 1
osd_mclock_scheduler_background_best_effort_lim = 0.9

Test 2:

Switch to 'custom' mClock profile and make the following change
before running the test (osd_mclock_scheduler_client_res 0.5 -> 0.7, osd_mclock_scheduler_background_recovery_res 0.5 -> 0.3):

osd_mclock_scheduler_client_res = 0.7
osd_mclock_scheduler_client_wgt = 1
osd_mclock_scheduler_client_lim = 0.0

osd_mclock_scheduler_background_recovery_res = 0.3
osd_mclock_scheduler_background_recovery_wgt = 1
osd_mclock_scheduler_background_recovery_lim = 0.0

osd_mclock_scheduler_background_best_effort_res = 0.0
osd_mclock_scheduler_background_best_effort_wgt = 1
osd_mclock_scheduler_background_best_effort_lim = 0.9

Test 3:

1. Switch back to 'balanced' mClock profile, and,
2. Set osd_op_num_shards_hdd = 1 for all OSDs in the cluster.
This can be set in the ceph.conf file before running the test.

SJ Updated by Samuel Just over 2 years ago Actions #7

That looks good to me -- I added a note to Test 1 and Test 2 clarifying which of 9 configs actually change for each test.

TW Updated by Tim Wilkinson over 2 years ago Actions #8

  • Subject changed from perceived performance loss during OSD fault using mClock scheduler to inconsistent performance loss during OSD fault using mClock scheduler

SS Updated by Sridhar Seshasayee over 2 years ago Actions #9

Samuel Just wrote in #note-7:

That looks good to me -- I added a note to Test 1 and Test 2 clarifying which of 9 configs actually change for each test.

@Samuel Just Shouldn't test 1 be run with just osd_mclock_scheduler_background_recovery_lim 0 -> 0.8?

SS Updated by Sridhar Seshasayee over 2 years ago Actions #10

Sridhar Seshasayee wrote in #note-9:

Samuel Just wrote in #note-7:

That looks good to me -- I added a note to Test 1 and Test 2 clarifying which of 9 configs actually change for each test.

@Samuel Just Shouldn't test 1 be run with just osd_mclock_scheduler_background_recovery_lim 0 -> 0.8?

Changed it to reflect the correct option.

LF Updated by Laura Flores over 2 years ago Actions #11

Note from bug scrub: Actively being worked on; will check back later.

VU Updated by Vikhyat Umrao over 2 years ago Actions #12

The Test 3 should be:

1. Switch back to 'balanced' mClock profile, and,
2. Set osd_op_num_shards_hdd = 1 and osd_op_num_threads_per_shard_hdd = 5 for all OSDs in the cluster.

RZ Updated by Radoslaw Zarzynski over 2 years ago Actions #13

  • Status changed from New to In Progress

scrub note: WIP.

LF Updated by Laura Flores over 2 years ago Actions #14

Radoslaw Zarzynski wrote in #note-13:

scrub note: WIP.

Same applies

RZ Updated by Radoslaw Zarzynski over 2 years ago Actions #15

@Sridhar Seshasayee: would you mind providing an update also in the tracker?

SS Updated by Sridhar Seshasayee over 2 years ago Actions #16

Test 1 Outcome:

With osd_mclock_scheduler_background_recovery_lim = 0.8, while the client throughput
improved significantly, the average recovery rate reduced by more than 50% as
shown below. See #note-4 for comparison.

Workload Total Read Tput MB/s objs/s Total Write Tput MB/s objs/s Avg Latency(ms) 99% Latency(ms) Avg Recovery (MB/s)
hybrid OSDnode1 336 5122 261 3985 91 649 82
hybrid OSDnode2 381 5786 295 4501 82 387 36

The impact to the degraded recovery rate is quite significant and is probably
related to the way mClock works with multiple OSD shards. This is under
investigation. Due to the impact to the recovery rate, this option is not
considered.

Test 2 Outcome:

Test was run with changes to the following parameters in the 'balanced'
profile:
- osd_mclock_scheduler_client_res = 0.7 and
- osd_mclock_scheduler_background_recovery_res = 0.3

The results did not look too different from the results original 'balanced'
profile and with lots of slow ops reported. Therefore, this option too is
not considered.

Test 3 Outcome:

As updated in #note-12, test3 was executed again with the following config parameters
and with the original 'balanced' profile (no change):

- osd_op_num_shards_hdd = 1
- osd_op_num_threads_per_shard_hdd = 5

The following are the results of the tests from 2 runs:

Workload Total Read Tput MB/s objs/s Total Write Tput MB/s objs/s Avg Latency(ms) 99% Latency(ms) Avg Recovery (MB/s)
fill 150M objs 2h30m 1033 15823 95 657
hybrid noFailure 543 8266 421 6430 57 252 NA
hybrid OSDnode1 294 4481 229 3487 102 788 135
hybrid OSDnode2 317 4818 247 3749 95 810 59
hybrid OSDrecover 448 6819 347 5305 69 305 7
fill 150M objs 2h30m 1056 16138 93 918
hybrid noFailure 543 8268 421 6432 58 264 NA
hybrid OSDnode1 287 4387 224 3413 105 909 123
hybrid OSDnode2 355 5401 276 4202 84 533 59
hybrid OSDrecover 447 6808 347 5296 69 307 7

The results from both the runs show significantly better client and
recovery throughput. The difference in the client and recovery
throughput in each phase between the two runs ranges from 2%- 11%.

The above results show that mClock is able to perform much better with
a single OSD shard and with multiple worker threads per shard.

Outcome & Next Steps

Based on the results, test 3 configuration is the most favorable.
Therefore, for HDD based clusters running with mClock scheduler, the default
OSD shard/thread configuration is proposed to be changed as follows:

- osd_op_num_shards_hdd = 1
- osd_op_num_threads_per_shard_hdd = 5

In addition to the above,
- Modify both upstream & downstream documentation and
- Add to troubleshooting documentation

A PR will be raised to reflect the above.

SS Updated by Sridhar Seshasayee over 2 years ago Actions #17

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 58509

LF Updated by Laura Flores over 2 years ago Actions #18

Note from bug scrub: PR is in progress getting reviewed.

LF Updated by Laura Flores over 2 years ago Actions #19

Laura Flores wrote in #note-18:

Note from bug scrub: PR is in progress getting reviewed.

Same as here, still getting reviewed.

SS Updated by Sridhar Seshasayee over 2 years ago Actions #20

@Laura Flores As discussed, once the report/blog is ready, I will provide the link to
it in the associated PR. As highlighted already, the test report would
very much help getting the PR reviewed and merged sooner.

LF Updated by Laura Flores over 2 years ago Actions #21

Note from scrub: waiting on report

RZ Updated by Radoslaw Zarzynski over 2 years ago Actions #22

scrub note: work in progress, the discussion on PR is ongoing.

LF Updated by Laura Flores over 2 years ago Actions #23

The PR is ready for more reviews. A doc was written up to summarize the problem and all the DFG tests that were run. That was a blocker for the PR to be merged, so those who requested the doc should review it and provide their feedback.

https://gist.github.com/ljflores/4fbfa479cb2f01e4f23e8dbb9f413f50

LF Updated by Laura Flores over 2 years ago Actions #24

Bump up

SS Updated by Sridhar Seshasayee over 2 years ago Actions #25

  • Status changed from Fix Under Review to Need More Info

As per comment https://github.com/ceph/ceph/pull/58509#issuecomment-2275967833 there's
an ask to to perform additional throughput and latency focused tests. The test
instead of comparing between Reef and Squid should focus on a release and perform
comparison between the old and the new shard configuration.

The idea is to show that the improved performance we are observing is due to the
new shard configuration and not due to changes/perf improvement in other areas of
the code between releases.

Therefore, we need to perform some additional throughput and latency focused tests
on both RGW and RBD images. The performance team would need to be engaged again
to complete this.

SS Updated by Sridhar Seshasayee about 2 years ago Actions #26

Following up from #note-25: The scaled cluster was not available for running
the additional tests. The tests were instead performed on a single node with
7 HDD based OSDs and results are discussed as part of comment mentioned below:
https://github.com/ceph/ceph/pull/58509#issuecomment-2325666122.

SS Updated by Sridhar Seshasayee about 2 years ago Actions #27

  • Status changed from Need More Info to In Progress

Update:
PR is reviewed and will go through teuthology testing.

RZ Updated by Radoslaw Zarzynski about 2 years ago Actions #28

scrub note: in QA.

SS Updated by Sridhar Seshasayee about 2 years ago Actions #29

  • Status changed from In Progress to Pending Backport
  • Backport set to reef, squid

UB Updated by Upkeep Bot about 2 years ago Actions #30

  • Copied to Backport #68223: squid: inconsistent performance loss during OSD fault using mClock scheduler added

UB Updated by Upkeep Bot about 2 years ago Actions #31

  • Copied to Backport #68224: reef: inconsistent performance loss during OSD fault using mClock scheduler added

UB Updated by Upkeep Bot about 2 years ago Actions #32

  • Tags (freeform) set to backport_processed

SS Updated by Sridhar Seshasayee almost 2 years ago Actions #33

  • Status changed from Pending Backport to Resolved

SS Updated by Sridhar Seshasayee almost 2 years ago Actions #34

  • Backport changed from reef, squid to quincy, reef, squid

Add quincy backport.

SS Updated by Sridhar Seshasayee over 1 year ago Actions #35

  • Status changed from Resolved to Pending Backport

Moving back to "pending backport" in order to make the fix available in quincy.

SS Updated by Sridhar Seshasayee over 1 year ago Actions #36

  • Tags (freeform) deleted (backport_processed)

UB Updated by Upkeep Bot over 1 year ago Actions #37

  • Copied to Backport #70499: quincy: inconsistent performance loss during OSD fault using mClock scheduler added

UB Updated by Upkeep Bot over 1 year ago Actions #38

  • Tags (freeform) set to backport_processed

SS Updated by Sridhar Seshasayee over 1 year ago Actions #39

  • Status changed from Pending Backport to Resolved

UB Updated by Upkeep Bot over 1 year ago Actions #40

  • Merge Commit set to aa19cd30dafd587e9bde4f85d2178eef4e44e9e4
  • Fixed In set to v19.3.0-5162-gaa19cd30daf
  • Upkeep Timestamp set to 2025-07-11T08:43:17+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #41

  • Fixed In changed from v19.3.0-5162-gaa19cd30daf to v19.3.0-5162-gaa19cd30da
  • Upkeep Timestamp changed from 2025-07-11T08:43:17+00:00 to 2025-07-14T22:43:34+00:00

UB Updated by Upkeep Bot about 1 year ago Actions #42

  • Released In set to v20.2.0~1941
  • Upkeep Timestamp changed from 2025-07-14T22:43:34+00:00 to 2025-11-01T01:33:31+00:00

UB Updated by Upkeep Bot 3 months ago Actions #43

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-11-01T01:33:31+00:00 to 2026-08-28T01:38:06+00:00
Actions

Also available in: PDF Atom