Bug 2119217 - CPU and latency spikes during periodic snaptrim operations
Summary: CPU and latency spikes during periodic snaptrim operations
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RADOS
Version: 6.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 6.1z1
Assignee: Adam Kupczyk
QA Contact: Pawan
Akash Raj
URL:
Whiteboard:
Depends On:
Blocks: 2077047 2120239 2150996 2154351 2169499 2190382 2218013 2221020
TreeView+ depends on / blocked
 
Reported: 2022-08-17 22:40 UTC by Josh Durgin
Modified: 2023-12-02 04:25 UTC (History)
32 users (show)

Fixed In Version: ceph-17.2.6-94.el9cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2218013 (view as bug list)
Environment:
Last Closed: 2023-08-03 16:45:09 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 56944 0 None None None 2022-08-17 22:40:44 UTC
Github ceph ceph pull 49837 0 None closed Improve metadata when cloning objects 2024-04-06 23:34:01 UTC
Github ceph ceph pull 52077 0 None open Quincy: bluestore & bluestore-rdr to Elastic Shared Blobs 2024-04-06 23:33:59 UTC
Red Hat Issue Tracker RHCEPH-5107 0 None None None 2022-08-17 22:44:45 UTC
Red Hat Product Errata RHBA-2023:4473 0 None None None 2023-08-03 16:46:06 UTC

Description Josh Durgin 2022-08-17 22:40:45 UTC
While testing snapshot based rbd-mirror with a random rw workload, Paul Cuzner noticed that at the start of every replication interval the ceph-osd cpu consumption spikes dramatically, and continues to grow over time. For example, at the beginning of a run the cpu spike was 60% of a core...but after 24 hours with the same randrw workload running this grows to 1.5-2 cores.

The cpu overhead appears worse for 4KB block sizes, than for IO sizes of 16KB or more.

The change rate within the snapshot is only 250MB every 5 mins - The workload is just 20 rbd images, using rate limited fio which caps each rbd image to 50 IOPS (40 read + 10 write)

If the host is not capping the OSD this issue, will likely go unnoticed but in environments like k8s where the OSD is capped this is more of a problem.

This translates to high latency for clients during these spikes, and with the growth over time, it means continual performance degradation.

Comment 44 Malay Kumar parida 2023-04-05 05:54:37 UTC
> Malay, during an upgrade, the OCS operator will update that configmap with any new settings, correct? 

Yes Travis, The changes will be picked up after the upgrade. So if some particular config is decided here,
we can put that in that configmap. But keep in mind ocs-operator will always reconcile the configmap and will always apply those 
configs. So if someone wants to remove those configs for any reason that will be impossible. So we have to be a little careful.

Comment 82 errata-xmlrpc 2023-08-03 16:45:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 6.1 Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:4473

Comment 83 Red Hat Bugzilla 2023-12-02 04:25:59 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


Note You need to log in before you can comment on or make changes to this bug.